/*
Theme Name: Kitty Child
Theme URI: https://wdtkitty.wpengine.com/
Description: Kitty Child Theme
Author: the WeDesignTech team
Author URI: https://wedesignthemes.com/
Template: kitty
Version: 1.0.0
Text Domain: kitty-child
*/

/* ------------------- PRODUCT PAGE FIXES -------------------- */

/* Hide wishlist tooltip text only below the product */
.woocommerce ul.products li.product tooltip.tooltip {
    display: none !important;
}

/* Hide compare button below product, keep hover compare icon */
.woocommerce ul.products li.product a.compare.button:not(.yith-woocompare-button) {
    display: none !important;
}

/* ------------------- MOBILE FOOTER MENU -------------------- */
@media (max-width: 768px) {
    .goal-footer-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #ddd;
        z-index: 9999;
        box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
    }

    .footer-menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 6px 12px; /* ⬅️ added left & right space */
        list-style: none;
    }
/* Also ensure items don't stick to edges */
    .footer-menu li:first-child {
        margin-left: 6px;  /* space before Home */
    }

    .footer-menu li:last-child {
        margin-right: 6px; /* space after Account */
    }
    /* Normalize all footer menu items */
    .footer-menu li {
        display: flex;
        align-items: center;      /* vertical alignment */
        justify-content: center;
    }

    /* Normalize all footer menu items */
    .footer-menu a {
        display: flex;
        flex-direction: column;   /* icon on top, text below */
        align-items: center;
        justify-content: center;
        line-height: 1.2 !important;
    }

    .footer-menu a:hover,
    .footer-menu a:focus {
        color: #000;
    }

    .footer-menu a.active {
        color: #000;
        font-weight: 700;
    }

    /* General icon settings */
    .footer-menu i {
        font-size: 16px !important;
        line-height: 1 !important;
        margin: 0 !important;
        display: block;
    }

    .footer-cart-item .cart-count {
        position: absolute;
        top: 2px;
        right: 30%;
        background: #e53935;
        color: #fff;
        border-radius: 50%;
        padding: 2px 5px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        min-width: 16px;
        text-align: center;
    }

    /* Make Account item (icon + text) smaller and shift it up */
    .footer-account {
        transform: translateY(-2px) scale(0.9); /* move up + shrink */
        transform-origin: center;               /* keep centered while scaling */
    }

    .footer-account i {
        font-size: 14px !important;  /* slightly smaller icon */
        line-height: 1 !important;
    }

    .footer-account a {
        font-size: 12px !important;  /* smaller text */
        line-height: 1.2 !important;
    }

   /* Popup hidden by default */
    .footer-search-popup {
        position: fixed;
        bottom: 70px; /* just above the footer bar */
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
        z-index: 10001; /* above footer */
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .footer-search-popup.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
         display: block;
    }

    .footer-search-close {
        position: absolute;
        top: 8px;
        right: 12px;
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }

    .footer-search-box {
        display: flex;
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 0;
        overflow: hidden;
        align-items: center;
    }

    .footer-search-input {
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        border: none;
        outline: none;
        color: #333;
    }

    .footer-search-btn {
        width: 50px;
        background: #222;
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease;
        font-size: 18px;
        line-height: 1;
    }

   /* Change to a lighter gray when clicked */
.footer-search-btn:active {
    background: #888 !important;  /* Lighter Gray */
}

/* Optional: Add hover effect for the search icon button */
.footer-search-btn:hover {
    background: #666 !important;  /* Slightly lighter dark gray */
}
  
  /* Make footer search input black background */
.footer-search-input {
    background: #000 !important;
    color: #fff !important;
}


    body {
        padding-bottom: 70px;
    }
}

/* ------------------- HIDE FOOTER ON DESKTOP -------------------- */
@media (min-width: 769px) {
    .goal-footer-mobile {
        display: none !important;
    }
}

/* ------------------- MOBILE FILTERS -------------------- */
@media (max-width: 768px) {
    /* Original sidebar hidden */
    .wdt-sidebar-wrapper {
        display: none !important;
    }

    /* But inside drawer, make sure it is visible */
    .filter-drawer .wdt-sidebar-wrapper {
        display: block !important;
    }
}

/* Filter drawer */
.filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    padding: 20px;
}

.filter-drawer.active {
    right: 0;
}

/* Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
}

.filter-overlay.active {
    display: block;
}

/* Filter button wrapper */
.mobile-filter-btn-wrapper {
    text-align: right;
    margin: 10px 0 15px;
}

/* Filter button */
.mobile-filter-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s ease;
}

/* When button is active (clicked) */
.goal-footer-mobile .mobile-filter-btn:active {
    background: #888 !important; /* gray when clicked */
}

/* Optional: hover state too */
.goal-footer-mobile .mobile-filter-btn:hover {
    background: #666 !important; /* slightly lighter gray on hover */
}






/* Hide filter button on desktop */
@media (min-width: 769px) {
    .mobile-filter-btn-wrapper {
        display: none !important;
    }
}




/* Hide only mobile hamburger menu */
@media (max-width: 768px) {
    .menu-trigger,
    .mobile-nav-container {
        display: none !important;
    }
}


@media (max-width: 768px) {
  .variations_form .variable-items-wrapper .variable-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;       /* make parent height flexible */
    min-height: unset !important;
    margin-bottom: 10px !important;
  }

  .variations_form .variable-items-wrapper .variable-item .variable-item-contents {
    display: block !important;     /* stop flex from cutting text */
    height: auto !important;
    text-align: center !important;
    padding: 14px 12px !important;
    white-space: normal !important;
  }

  .variations_form .variable-items-wrapper .variable-item .variable-item-span-button {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
}

