/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/
<?php
/**
 * Change mini cart item text color to black
 */
function my_child_theme_mini_cart_text_color() {
    $custom_css = "
        .woocommerce-mini-cart-item,
        .mini_cart_item {
            color: #000 !important; /* Force black text */
        }
        
        .woocommerce-mini-cart-item a,
        .mini_cart_item a {
            color: #000 !important; /* Make product links black too */
        }
    ";

    // Attach after Shoptimizer’s main stylesheet
    wp_add_inline_style( 'shoptimizer-style', $custom_css );
}
add_action( 'wp_enqueue_scripts', 'my_child_theme_mini_cart_text_color' );


/* Make all skip links visible in Shoptimizer */
.skip-link {
    position: fixed;        /* stay visible on scroll */
    top: 10px;              /* distance from top */
    left: 10px;             /* distance from left */
    z-index: 9999;          /* on top of everything */
    padding: 8px 12px;      /* nice clickable area */
    background-color: #000; /* black background */
    color: #fff;            /* white text */
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    clip: auto !important;        /* undo hiding */
    overflow: visible !important; /* undo hiding */
}

/* Optional: hover effect for skip links */
.skip-link:hover {
    background-color: #222;
    color: #ff0;
}
