/*
Theme Name: Barkat Store
Theme URI: https://barkatstore.com
Author: Barkat Luxury Studio
Author URI: https://barkatstore.com
Description: Luxury eCommerce Theme for Barkat Store - Specializing in Artificial & Fashion Jewelry and Designer Bags.
Version: 2.0.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flipkart-lite
*/

:root {
    /* Font Family: Luxury Editorial Pairing */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Core Palette: Matched directly to the Barkat Tree Emblem */
    --primary-color: #0b4233;       /* Royal Deep Emerald Green */
    --primary-hover: #072e23;
    --primary-light: rgba(11, 66, 51, 0.08);
    --secondary-color: #c89658;     /* Warm Antique Gold / Copper */
    --secondary-hover: #b07e43;
    --accent-emerald: #0f766e;
    --success-color: #10b981;
    --danger-color: #e11d48;
    --warning-color: #f59e0b;

    /* Light Theme Surfaces */
    --bg-body: #fafaf9;
    --bg-card: #ffffff;
    --bg-input: #f4f4f5;
    --text-main: #18181b;
    --text-muted: #71717a;
    --border-color: #e4e4e7;
    --border-focus: rgba(11, 66, 51, 0.25);

    /* Modern Soft Shadows */
    --shadow-2xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px -2px rgba(11, 66, 51, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 28px -4px rgba(11, 66, 51, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.05);

    /* Spacing & Sizes */
    --container-width: 1240px;
    --header-height: 72px;

    /* Fallbacks */
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text, .section-header h2, .cart-empty-card h2 {
    font-family: var(--font-heading);
    letter-spacing: -0.2px;
}


/* --- GLOBAL HERO SLIDER --- */
.hero-slider-section {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.hero-slider-container::-webkit-scrollbar {
    display: none;
}

.hero-slide {
    min-width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.hero-slide img {
    width: 100%;
    display: block;
    height: 550px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-slide-btn,
.hero-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    z-index: 25;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
}

.hero-slide-btn:hover,
.hero-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(200, 150, 88, 0.4) !important;
    background-color: #b88244 !important;
    border-color: #b88244 !important;
    color: #ffffff !important;
}

.hero-slide-caption {
    pointer-events: none;
}
.hero-slide-caption * {
    pointer-events: auto;
}

.hero-slider-section .slider-arrow {
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s, transform 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-slider-section:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow.prev-hero {
    left: 20px;
}

.slider-arrow.next-hero {
    right: 20px;
}

.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

.container-xl-custom {
    max-width: 96%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities (Bootstrap overrides or additions) */
/* .container and .btn are handled by Bootstrap now */

/* Custom Button Enhancement */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}


.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-style: italic;
}

.site-logo span {
    color: var(--secondary-color);
    font-style: normal;
}

.header-search {
    flex: 1;
    margin: 0 2rem;
    max-width: 600px;
    display: flex;
}

.header-search input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 2px 0 0 2px;
    font-size: 0.95rem;
}

.header-search button {
    background-color: var(--white);
    /* Or a highlight color */
    border: none;
    padding: 0 1rem;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    color: var(--primary-color);
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: var(--white);
    font-weight: 500;
}

/* Product Grid (Flipkart-lite) */
/* Product Grid (Flipkart-lite) - Enforce Grid over Flex */
.woocommerce ul.products.product-grid,
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem 0;
    margin: 0 !important;
}

.woocommerce ul.products.product-grid li.product,
.product-grid li.product {
    width: auto !important;
    /* Reset WC width */
    margin: 0 !important;
    /* Reset WC margins */
    /* Reset floats */
}

/* Fix: Remove WC clearfix pseudo-elements from Grid Layout */
.woocommerce ul.products.product-grid::before,
.woocommerce ul.products.product-grid::after,
.product-grid::before,
.product-grid::after {
    content: none !important;
    display: none !important;
}

/* WooCommerce Overrides (Minimal) */
.woocommerce ul.products li.product {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    transition: box-shadow 0.2s;
    text-align: center;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product img {
    margin-bottom: 1rem;
    height: 200px !important;
    /* Fixed height for alignment */
    width: 100%;
    /* Full width */
    object-fit: contain;
    /* Prevent stretching */
}

/* Fix: Flex Layout for Product Card to align buttons - Global apply */
ul.products li.product .product-inner,
.woocommerce ul.products li.product .product-inner {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem !important;
    /* Added spacing between image and title */
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em !important;
    /* Slightly increased to prevent clipping */
    line-height: 1.4 !important;
    text-overflow: ellipsis;
}

ul.products li.product .price,
.woocommerce ul.products li.product .price {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex !important;
    flex-wrap: nowrap !important;
    /* Force single line */
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Proper gap */
    margin-bottom: 0.5rem;
    line-height: 1.2;
    min-height: 1.5em;
}

ul.products li.product .price del,
.woocommerce ul.products li.product .price del {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.9em;
    display: inline-block !important;
    /* Force display */
    width: auto !important;
    /* Prevent full width */
    text-decoration: line-through;
    color: #6b7280 !important;
    /* Visible gray */
    margin: 0 !important;
    /* Reset margins */
    visibility: visible !important;
    /* Extra force */
}

ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins {
    background: none;
    text-decoration: none;
    display: inline-block !important;
    width: auto !important;
    /* Prevent full width */
    color: var(--text-main);
    font-weight: 700;
    margin: 0 !important;
    /* Reset margins */
}

/* Product loop button reset - preserve modern action buttons */
ul.products li.product .button.hover-cart-btn {
    margin-top: auto !important;
    width: 100%;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
    display: inline-block;
}

/* Promo Banner Details */
.promo-item {
    position: relative;
}

.promo-btn {
    position: absolute;
    bottom: 15px;
    /* Position at bottom left */
    left: 15px;
    padding: 8px 16px;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: all 0.3s;
    z-index: 5;
}

.promo-item:hover .promo-btn {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile Responsiveness - Header & Grid */
@media (max-width: 768px) {
    /* Header Styles are now consolidated in the bottom media query block for cleaner management */

    /* Grid Adjustments */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .woocommerce ul.products li.product {
        padding: 0.5rem;
    }

    .category-slider-section {
        margin-top: -1px;
    }

    /* Scrollable Menu */
    .primary-menu-ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        width: 100%;
    }
}

/* Hero slider duplicate properties removed */

/* Professional Product Slider */
.product-slider-wrapper {
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    /* Padding for shadow breathing room */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    -webkit-overflow-scrolling: touch;
}

ul.products.product-slider {
    display: flex !important;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

ul.products.product-slider li.product {
    min-width: 240px;
    /* Widened to match typical grid card better */
    max-width: 240px;

    /* Inherit Visuals from global .woocommerce ul.products li.product */
    /* background, border, radius handled globally now */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    /* No overflow hidden here to allow shadow/lift effect to show */
    margin-right: 15px;
    /* Spacing between slides */
    padding: 0 !important;
}

/* Ensure images fit well in the slider card */
ul.products.product-slider li.product img {
    height: 200px;
    /* Fixed height for alignment */
    width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* --- Global Product Card Styling & Animation --- */
ul.products li.product,
.product-slider li.product,
#wishlist-container ul.products li.product {
    padding: 0 !important;
    /* Reset outer padding, use .product-inner for spacing */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    list-style: none !important;
}

/* The actual "Card" wrapper */
ul.products li.product .product-inner,
.product-inner {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
}

/* Consistent Hover Effect for ALL products */
.woocommerce ul.products li.product:hover .product-inner,
li.product:hover .product-inner {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #e5e7eb !important;
    z-index: 5;
}

/* Image Zoom (Global) */
ul.products li.product .product-image-wrapper img,
.product-image-wrapper img {
    transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover .product-image-wrapper img,
li.product:hover .product-image-wrapper img {
    transform: scale(1.08);
}

/* --- Add to Cart Bar Style (Global - Normal Flow) --- */
.hover-cart-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 4px !important;
    /* Slight radius for better look outside image */
    background-color: var(--primary-color) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px 0 !important;
    /* Space between image and title */
    z-index: 5 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease;
}

.hover-cart-btn:hover {
    background-color: #013323 !important;
}

.hover-cart-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #ffffff !important;
    fill: none !important;
}


/* --- Arrow Visibility Fix --- */
.slider-arrow {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    z-index: 50;
    /* Ensure visible */
    opacity: 0.9;
}

.cat-slider-wrapper {
    position: relative;
    /* Context for arrows */
}

/* Promo Banner Hover */
.hover-scale {
    overflow: hidden;
    border-radius: 8px;
    /* Ensure rounded corners */
}

.hover-scale img {
    transition: transform 0.3s ease;
    height: 180px;
    /* Reduced fixed height for professional look */
    width: 100%;
    object-fit: cover;
    /* Crop to fit */
}

.hover-scale:hover img {
    transform: scale(1.03);
    /* Subtle zoom effect */
}

/* Title Styling */
ul.products.product-slider li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 8px;

    /* Line Clamp 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    /* Force height for alignment */
    text-overflow: ellipsis;
}

/* Price Styling */
ul.products.product-slider li.product .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-top: auto;
    /* Push to bottom */
}

ul.products.product-slider li.product .price del {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 5px;
}

/* Button/Add to Cart Styling (If visible) */
ul.products.product-slider li.product .button {
    margin-top: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s;
}

ul.products.product-slider li.product .button:hover {
    background: #1d4ed8;
}

/* Mobile Adjustments */
@media (max-width: 991px) {

    /* Tablet Layout Adjustments */
    :root {
        --container-width: 100%;
        --header-height: auto;
    }

    .site-header .container {
        padding: 0.5rem 1rem;
    }

    .hero-slide img {
        height: 350px !important;
        /* Intermediate height for tablets */
    }
}

@media (max-width: 768px) {

    /* 1. Header & Layout */
    .site-header {
        height: auto;
        padding: 0.5rem 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .site-logo {
        font-size: 1.25rem;
        /* Smaller logo on mobile */
    }

    /* Search bar takes full width on new line */
    .header-search {
        width: 100%;
        margin: 0.5rem 0;
        order: 3;
        flex-basis: 100%;
    }

    /* User actions (Cart, Login) align to right */
    .header-nav {
        order: 2;
        margin-left: auto;
    }

    /* 2. Slider Cards Mobile */
    ul.products.product-slider li.product {
        min-width: 150px;
        max-width: 150px;
        width: 45vw;
        /* Responsive half-screen approx */
        padding: 8px !important;
    }

    ul.products.product-slider li.product img {
        height: 140px;
    }

    ul.products.product-slider li.product .woocommerce-loop-product__title {
        font-size: 0.85rem;
        height: 2.4em;
        /* compressed height */
    }

    ul.products.product-slider li.product .price {
        font-size: 0.95rem;
    }

    /* Hero Slider Mobile Responsive */
    .hero-slide img {
        height: 360px !important;
    }

    .hero-slide-caption {
        padding: 1.25rem !important;
    }

    .hero-slide-caption h2 {
        font-size: 1.3rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-slide-btn,
    .hero-btn {
        padding: 8px 18px !important;
        font-size: 0.8rem !important;
    }

    /* 3. Slider Arrows on Mobile */
    .slider-arrow {
        display: flex !important;
        /* Force Show */
        width: 30px;
        height: 30px;
        font-size: 1rem;
        opacity: 0.8;
    }

    .slider-arrow.prev {
        left: -5px;
    }

    .slider-arrow.next {
        right: -5px;
    }

    /* Category specific arrows mobile placement */
    .slider-arrow.prev-cat {
        left: -5px;
    }

    .slider-arrow.next-cat {
        right: -5px;
    }

    /* 4. General Spacing */
    .container-xl-custom {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* --- Professional Trust Section --- */
.trust-section {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-item {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #374151;
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.trust-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

/* --- Slider Arrows --- */
.slider-container-relative {
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    font-size: 1.2rem;
    line-height: 1;
    color: #374151;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.slider-arrow.prev {
    left: -15px;
}

.slider-arrow.next {
    right: -15px;
}

.slider-arrow.prev-cat {
    left: -10px;
}

.slider-arrow.next-cat {
    right: -10px;
}

/* Hide scrollbar but allow scroll */
.product-slider-wrapper {
    scrollbar-width: none !important;
}

.product-slider-wrapper::-webkit-scrollbar {
    display: none !important;
}

/* --- Category Slider Native Scrolling --- */
.category-slider-wrapper {
    width: 100% !important;
    overflow: visible !important;
    /* Allow the inner scroll to handle everything */
}

.category-slider-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    /* Vital for iOS */
    touch-action: pan-x !important;
    /* Essential for touch devices */
    gap: 15px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.category-slider-container::-webkit-scrollbar {
    display: none !important;
}

.cat-item-wrapper {
    flex: 0 0 auto !important;
    min-width: 80px !important;
    /* Force overflow */
    max-width: 110px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}


/* ====================================================
   LUXURY BARKAT MY ACCOUNT STYLING & SIDEBAR
   ==================================================== */
.woocommerce-account .woocommerce {
    width: 100% !important;
    display: block !important;
}

/* Neutralize WooCommerce layout.css float & 30%/68% width bottlenecks */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .barkat-myaccount-layout .woocommerce-MyAccount-navigation,
.barkat-myaccount-layout .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .barkat-myaccount-layout .woocommerce-MyAccount-content,
.barkat-myaccount-layout .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    clear: both !important;
}

.barkat-myaccount-layout {
    width: 100% !important;
}

.barkat-account-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {
    .barkat-account-sidebar {
        position: sticky;
        top: 90px;
        z-index: 10;
    }
}

.account-profile-header {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.user-avatar-circle {
    box-shadow: 0 4px 10px rgba(11, 66, 51, 0.2);
}

.barkat-account-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.barkat-account-nav-item {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.barkat-account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.7rem 0.95rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
}

.barkat-account-nav-link .nav-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.2s ease;
}

.barkat-account-nav-link .nav-label-text {
    flex-grow: 1;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.barkat-account-nav-link:hover {
    background: rgba(11, 66, 51, 0.06);
    color: var(--primary-color, #0b4233);
    transform: translateX(4px);
}

.barkat-account-nav-link:hover .nav-icon-wrap {
    color: var(--primary-color, #0b4233);
}

.barkat-account-nav-link.active,
.barkat-account-nav-item.is-active .barkat-account-nav-link {
    background: var(--primary-color, #0b4233) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(11, 66, 51, 0.25);
    font-weight: 600;
}

.barkat-account-nav-link.active .nav-icon-wrap,
.barkat-account-nav-item.is-active .barkat-account-nav-link .nav-icon-wrap {
    color: #c89658 !important;
}

.barkat-account-nav-link.active .active-dot,
.barkat-account-nav-item.is-active .barkat-account-nav-link .active-dot {
    background: #c89658 !important;
}

/* My Account Content Box */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #ffffff;
    padding: 2.25rem 2.5rem;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Responsive navigation on smaller screens */
@media (max-width: 991px) {
    .barkat-account-sidebar {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    .barkat-account-nav-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .barkat-account-nav-list::-webkit-scrollbar {
        display: none;
    }
    .barkat-account-nav-item {
        flex-shrink: 0;
        width: auto !important;
    }
    .barkat-account-nav-link {
        padding: 0.55rem 0.95rem;
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        font-size: 0.85rem;
    }
    .barkat-account-nav-link:hover {
        transform: none;
    }
    .account-profile-header {
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 0.75rem !important;
        padding: 0.75rem !important;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 1.5rem 1.25rem;
    }
}

/* Account Headings */
.woocommerce-account h2,
.woocommerce-account .woocommerce-MyAccount-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #1e293b;
}

/* Forms (Edit Account, Edit Address, etc.) */
.woocommerce-EditAccountForm fieldset,
.woocommerce-address-fields__field-wrapper {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.woocommerce-EditAccountForm legend {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: block;
    width: 100%;
}

.woocommerce-account .woocommerce-form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-account .woocommerce-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.woocommerce-account .woocommerce-form-row input.input-text,
.woocommerce-account .woocommerce-form-row select,
.woocommerce-account .woocommerce-form-row textarea {
    width: 100%;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    color: #1e293b;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.woocommerce-account .woocommerce-form-row input.input-text:focus,
.woocommerce-account .woocommerce-form-row select:focus,
.woocommerce-account .woocommerce-form-row textarea:focus {
    border-color: var(--primary-color, #0b4233);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(11, 66, 51, 0.12);
}

.woocommerce-account .woocommerce-Button.button,
.woocommerce-account button[type="submit"] {
    background-color: var(--primary-color, #0b4233);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(11, 66, 51, 0.2);
}

.woocommerce-account .woocommerce-Button.button:hover,
.woocommerce-account button[type="submit"]:hover {
    background-color: #06261d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 66, 51, 0.3);
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    list-style: none;
}

.woocommerce-message {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.woocommerce-info {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.woocommerce-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}


/* --- FINAL FIXES V1.4.4 --- */

/* 1. Category Slider Arrow Positioning */
.slider-arrow.prev-cat {
    left: -10px;
    /* Slight overlap */
    top: 50%;
    transform: translateY(-50%);
}

.slider-arrow.next-cat {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 2. FORCE Sale Badge to Top Left relative to Card */
/* Ensure the card is relative positioning context */
ul.products li.product,
.woocommerce ul.products li.product,
ul.products.product-slider li.product {
    position: relative !important;
    overflow: visible !important;
    /* Allow badge to sit on edge if needed */
}

/* The Badge Itself */
span.onsale,
.woocommerce span.onsale,
ul.products.product-slider li.product .onsale {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    position: absolute !important;

    /* Design */
    background: #26a541 !important;
    /* Green */
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 4px 0 8px 0 !important;
    z-index: 99 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    line-height: 1 !important;
    min-height: auto !important;
    width: auto !important;
    display: block !important;
}


/* --- PROFESSIONAL CART & CHECKOUT STYLES (V1.4.7) --- */

/* --- 1. Cart Page Styling --- */
/* Increase Width for Cart Page */
.woocommerce-cart .container {
    max-width: 95% !important;
}

.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Cart Table Container */
.woocommerce-cart .woocommerce-cart-form {
    flex: 1 1 65%;
    /* Take up 65% width */
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #e5e7eb;
}

/* Cart Tabular Data */
.shop_table.cart {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 1rem;
    /* Spacing between rows */
}

.shop_table.cart thead {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.shop_table.cart th {
    padding: 1rem !important;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: none;
}

.shop_table.cart tbody tr {
    /* Row styling usually tricky in tables, but we can style cells */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    background: #fff;
}

.shop_table.cart td {
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 1.5rem 1rem !important;
    vertical-align: middle;
}

.shop_table.cart td:first-child {
    border-left: 1px solid #f3f4f6;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.shop_table.cart td:last-child {
    border-right: 1px solid #f3f4f6;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Product Thumb in Cart */
.shop_table.cart img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 6px;
    object-fit: cover;
}

/* Coupon & Update Cart */
.actions {
    padding: 1.5rem 0 !important;
    background: transparent !important;
    border: none !important;
}

.coupon {
    display: flex;
    gap: 10px;
}

.coupon input {
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 200px;
}

/* Cart Totals (Sidebar) */
.cart-collaterals {
    flex: 1 1 30%;
    /* 30% width */
    width: 100%;
}

.cart_totals {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    width: 100% !important;
    float: none !important;
}

.cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 1.5rem;
    border: none !important;
}

.cart_totals th,
.cart_totals td {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Checkout Button - Theme Aware */
.wc-proceed-to-checkout a.checkout-button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    /* Larger touch target */
    border: none !important;
    border-radius: 4px !important;
    width: 100%;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #1d4ed8 !important;
    /* Slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Specific Adjustments for Button */
.dark-mode .wc-proceed-to-checkout a.checkout-button {
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.05);
    /* Softer shadow in dark */
}

.dark-mode .wc-proceed-to-checkout a.checkout-button:hover {
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1);
}

/* --- WooCommerce BLOCKS Cart Button (User Request) --- */
.wc-block-components-button.wc-block-cart__submit-button {
    background-color: #000000 !important;
    /* Black in Light Mode */
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 4px !important;
    transition: all 0.2s ease;
}

.wc-block-components-button.wc-block-cart__submit-button:hover {
    background-color: #333333 !important;
    /* Dark Gray Hover */
    opacity: 1 !important;
}

/* Dark Mode Override for Blocks Button */
.dark-mode .wc-block-components-button.wc-block-cart__submit-button {
    background-color: var(--primary-color) !important;
    /* Blue in Dark Mode */
    color: #ffffff !important;
}

.dark-mode .wc-block-components-button.wc-block-cart__submit-button:hover {
    background-color: #1d4ed8 !important;
    /* Darker Blue Hover */
}

/* My Account - Container Width Increase */
@media (min-width: 992px) {
    .woocommerce-account .container {
        max-width: 90% !important;
    }
}


/* My Account - Mobile Menu (Hamburger Style) */
.account-mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}

.account-mobile-menu-toggle:after {
    content: '\2630';
    /* Hamburger Icon */
    font-size: 1.2rem;
}

/* Mobile Account Navigation is handled via responsive chip list */


/* --- 2. Checkout Page Styling --- */
.woocommerce-checkout .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Column: Billing & Shipping */
#customer_details {
    flex: 1 1 60%;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#customer_details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Form Fields */
.woocommerce-input-wrapper {
    display: block;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    transition: all 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

/* Right Column: Order Review */
#order_review_heading {
    display: none;
    /* Hide default heading, we wrap it in box */
}

#order_review {
    flex: 1 1 35%;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 100px;
    /* Sticky sidebar */
}

#order_review table.shop_table {
    border: none;
    margin-bottom: 2rem;
}

#order_review th,
#order_review td {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

#order_review tfoot th {
    color: #4b5563;
}

#order_review .order-total th,
#order_review .order-total td {
    border-top: 2px solid #e5e7eb;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

/* Payment Methods */
#payment {
    background: #f9fafb !important;
    border-radius: 4px;
    padding: 1rem;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

#payment div.payment_box {
    background: #fff !important;
    font-size: 0.9rem;
    padding: 1rem !important;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-top: 10px;
}

#place_order {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 1.2rem !important;
    width: 100%;
    border-radius: 4px !important;
    margin-top: 1rem;
    transition: background 0.2s;
}

#place_order:hover {
    background: #1d4ed8 !important;
}

/* Mobile Adjustments for Checkout */
@media (max-width: 992px) {

    .woocommerce-cart .woocommerce-cart-form,
    .cart-collaterals,
    #customer_details,
    #order_review {
        flex: 1 1 100%;
        max-width: 100%;
        position: static;
        /* No sticky on mobile */
    }

    .shop_table.cart {
        display: block;
        overflow-x: auto;
    }
}


/* --- Address Book Buttons (Add/Edit) --- */
.woocommerce-Address-title .edit,
header.title .edit,
.woocommerce-address-fields .button {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    border: none !important;
}

.woocommerce-Address-title .edit:hover,
header.title .edit:hover,
.woocommerce-address-fields .button:hover {
    background-color: #013323 !important;
    /* Darker Green shade manually or via opacity */
    opacity: 0.9;
    color: #fff !important;
    text-decoration: none;
}

/* --- Side Panel Mini Cart Styling --- */
.side-cart-body .widget_shopping_cart_content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.side-cart-body .woocommerce-mini-cart {
    flex-grow: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-cart-body .woocommerce-mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    align-items: flex-start;
}

/* Remove Item Icon */
.side-cart-body .woocommerce-mini-cart-item a.remove {
    position: absolute;
    top: 10px;
    right: 0;
    background: #fee2e2;
    color: #ef4444 !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    z-index: 10;
}

.side-cart-body .woocommerce-mini-cart-item a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

/* Image */
.side-cart-body .woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Title & Meta */
/* Title & Meta */
.side-cart-body .woocommerce-mini-cart-item a:not(.remove) {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    display: flex !important;
    /* Align Image and Text side-by-side */
    align-items: center;
    gap: 12px;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    padding-right: 20px;
    /* Space for remove icon */
    font-size: 0.95rem;
    width: 100%;
}

.side-cart-body .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Footer Section (Total + Buttons) */
.side-cart-body .woocommerce-mini-cart__total {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.side-cart-body .woocommerce-mini-cart__buttons {
    display: grid;
    gap: 10px;
    margin: 0;
}

.side-cart-body .woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    display: block;
}

.side-cart-body .woocommerce-mini-cart__buttons .button.checkout {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.side-cart-body .woocommerce-mini-cart__buttons .button.checkout:hover {
    background-color: #013323 !important;
}

.side-cart-body .woocommerce-mini-cart__buttons .button:not(.checkout) {
    background-color: #f3f4f6 !important;
    color: #111 !important;
}

.side-cart-body .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background-color: #e5e7eb !important;
}

/* --- Global Product Card Styling & Animation --- */

/* Link covering image */
.woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Mobile & Tablet Optimizations (Touch Devices) --- */
@media (max-width: 1024px) {


    /* MOBILE IMAGE FIX: Flex Centered Square with Safe Zone */
    .woocommerce ul.products li.product img,
    ul.products.product-slider li.product img,
    .product-slider li.product img,
    .recent-drops ul.products li.product img {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        /* Safe zone */
        max-height: 90% !important;
        /* Safe zone */
        object-fit: contain !important;
        margin: 0 auto !important;
        display: block !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        /* Let wrapper handle ratio */
    }

    /* Apply Square Aspect Ratio to Wrapper, not Image */
    ul.products li.product .product-image-wrapper,
    .product_slider li.product .product-image-wrapper,
    .product-image-wrapper {
        width: 100% !important;
        aspect-ratio: 1/1 !important;

        /* Force Square Box */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* Generic Grid Item Constraint on Mobile */
    /* HARD CLIP: Product Inner Constraint */
    ul.products li.product .product-inner,
    .product-inner {
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        box-sizing: border-box !important;
        height: auto !important;
        /* Allow natural height, don't stretch */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .woocommerce-loop-product__title {
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
        height: 2.4em !important;
        /* Force 2 lines max height for alignment */
        overflow: hidden !important;
        margin-bottom: 0.5rem !important;
    }

    .price {
        font-size: 0.9rem !important;
        margin-top: 0 !important;
    }

    /* Ensure inner wrapper doesn't push out */
    .woocommerce ul.products li.product .product-image-wrapper,
    .product-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Fix Slider Overflow on Mobile */
    ul.products.product-slider li.product,
    .product-slider li.product {
        width: 160px !important;
        /* Force narrower width on mobile */
        min-width: 160px !important;
        /* Override desktop 240px min-width */
        max-width: 160px !important;
        margin-right: 10px !important;
        padding: 0.25rem !important;
        overflow: hidden !important;
        /* Force Clip */
        box-sizing: border-box !important;
    }

    /* Constrain Wrapper */
    ul.products.product-slider li.product .product-image-wrapper,
    .product-slider li.product .product-image-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}


/* Prevent Price Overflow on Mobile/Tablet */
ul.products li.product .price,
.woocommerce ul.products li.product .price {
    flex-wrap: wrap !important;
    font-size: 0.9rem !important;
    gap: 4px !important;
    white-space: normal !important;
    justify-content: center !important;
    margin-bottom: 0.5rem !important;
    min-height: auto !important;
    /* Allow it to adjust height */
}

/* Tooltip Styling (Title Link) */
.woocommerce-loop-product__title a {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.2s;
}

.woocommerce-loop-product__title a:hover {
    color: var(--primary-color);
}

/* Ensure Checkmark shows on success if standard WC script runs */
.woocommerce ul.products li.product .button.added::before {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat center;
}

.search-result-item:hover {
    background-color: #f9fafb !important;
}

/* --- WISHLIST BUTTON STYLING --- */
.wishlist-btn {
    position: relative;
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    padding: 0;
}

.wishlist-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    background: #ffffff;
}

.wishlist-btn svg {
    width: 17px;
    height: 17px;
    transition: fill 0.2s ease, stroke 0.2s ease, transform 0.2s ease;
}

.wishlist-btn.active svg {
    fill: #e11d48 !important;
    stroke: #e11d48 !important;
    transform: scale(1.05);
}



/* 2. Force Buttons to Primary Color */
.single_add_to_cart_button,
.woocommerce ul.products li.product .button:not(.buy-now-btn),
ul.products.product-slider li.product .button:not(.buy-now-btn),
ul.products li.product .add_to_cart_button,
a.button.add_to_cart_button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
}

.single_add_to_cart_button:hover,
.woocommerce ul.products li.product .button:not(.buy-now-btn):hover,
ul.products.product-slider li.product .button:not(.buy-now-btn):hover,
ul.products li.product .add_to_cart_button:hover,
a.button.add_to_cart_button:hover {
    background-color: #013323 !important;
    /* Darker Green */
    color: #ffffff !important;
}

/* --- MOBILE HEADER & MENU TOGGLE --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
        order: 1;
    }

    .site-logo {
        order: 2;
        margin-right: 0 !important;
        flex-grow: 1 !important;
        justify-content: center;
        text-align: center;
        max-width: 60%;
        /* Prevent logo from pushing icons out */
    }

    /* Header Icon Logic for Mobile/Tablet */
    .header-nav {
        display: block !important;
        visibility: visible !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
        order: 3;
    }

    .user-actions-ul {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* SPECIFICALLY show SHOP icon in mobile header */
    .user-actions-ul li:first-child {
        display: block !important;
        visibility: visible !important;
    }

    .user-actions-ul li:first-child a {
        color: var(--primary-color) !important;
        display: flex !important;
        align-items: center !important;
    }

    .user-actions-ul li:first-child svg {
        width: 24px !important;
        height: 24px !important;
        stroke: var(--primary-color) !important;
        display: block !important;
    }

    /* Hide others in top header */
    .user-actions-ul li:not(:first-child) {
        display: none !important;
    }

    /* PRODUCT IMAGE FIXES FOR MOBILE */
    ul.products li.product .product-image-wrapper,
    .product-slider li.product .product-image-wrapper {
        aspect-ratio: 1/1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        position: relative;
        overflow: hidden;
    }

    ul.products li.product .product-image-wrapper img,
    .product-slider li.product .product-image-wrapper img {
        max-height: 85% !important;
        max-width: 85% !important;
        object-fit: contain !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
    }



    /* Mobile Side Menu (Overlay) - Mobile/Tablet only */
    .mobile-side-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 10000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
    }

    .mobile-side-menu.active {
        left: 0;
    }

    .mobile-side-menu-header {
        background: var(--primary-color);
        padding: 1.5rem 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-side-menu-body {
        padding: 1rem;
        flex-grow: 1;
        overflow-y: auto;
    }

    .mobile-side-menu-body ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-side-menu-body ul li {
        border-bottom: 1px solid #f3f4f6;
    }

    .mobile-side-menu-body ul li a {
        display: block;
        padding: 1rem 0;
        color: #374151;
        font-weight: 500;
        text-decoration: none;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}

/* HARD DESKTOP ISOLATION: Mobile Menus & Drawers NEVER render on Desktop / Laptop (>= 992px) */
@media (min-width: 992px) {
    .mobile-side-menu,
    .mobile-menu-overlay,
    .mobile-collections-drawer,
    #mobile-collections-drawer,
    .collections-overlay,
    #collections-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: fixed !important;
        left: -99999px !important;
        top: -99999px !important;
        width: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
}

/* 3. Header Styling: WHITE Background for Dark Logo */

.site-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border-bottom: 1px solid #e5e7eb;
}

/* --- SHOP SIDEBAR OPTIMIZATIONS --- */
@media (max-width: 991px) {
    .shop-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
        background: #f8f9fa;
        padding: 1.5rem 1rem;
        border-radius: 12px;
        border: 1px solid #eee;
    }

    .shop-sidebar::before {
        content: "Filters & Sort";
        width: 100%;
        display: block;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

    .shop-sidebar .widget {
        flex: 1 1 200px;
        /* Allow widgets to sit side-by-side if room */
        margin-bottom: 0 !important;
        background: #fff !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    }
}

@media (min-width: 992px) {
    .shop-sidebar .widget {
        margin-bottom: 1.5rem;
    }
}

/* Category Hidden */
.product_meta .posted_in {
    display: none !important;
}

/* Tags Hidden */
.product_meta .tagged_as {
    display: none !important;
}

/* Ratings Hidden on Cards */
.woocommerce ul.products li.product .star-rating,
ul.products.product-slider li.product .star-rating {
    display: none !important;
}

/* Product Gallery: Grid Layout (Force Thumbs Left) */
.woocommerce div.product div.images.woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: 18% 80% !important;
    gap: 2% !important;
    align-items: start !important;
    /* Reset any flex interference */
    flex-wrap: nowrap !important;
}

/* Thumbs (Source Order 2) -> Grid Column 1 (Left) */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: 600px !important;
    overflow-y: auto !important;
    /* Scroll if too many */
    overflow-x: hidden !important;
}

/* Main Image (Source Order 1) -> Grid Column 2 (Right) */
/* Target wrapper AND the JS-injected viewport */
.woocommerce div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* FIXED: Force Active Image Visibility (Disable Slider Translate) */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper {
    grid-column: auto !important;
    width: 100% !important;
    transform: none !important;
    /* STOP SLIDING OFF SCREEN */
    display: block !important;
    position: relative !important;
    height: auto !important;
}

/* Hide all slides - Restored Logic */
.woocommerce-product-gallery__image {
    display: none !important;
}

/* Show ONLY the active slide */
.woocommerce-product-gallery__image.flex-active-slide {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    margin-bottom: 10px !important;
    float: none !important;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 50px;
}

/* Ensure Image inside thumb is visible */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li img {
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Custom Magnifying Glass Icon Overlay (Visual Cue for Click-to-Zoom) */
.woocommerce div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    position: relative !important;
}

.woocommerce div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__wrapper::after {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* Simple Search/Zoom SVG */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
    pointer-events: none !important;
    /* Allow click to pass through to image */
    opacity: 1 !important;
    transition: transform 0.2s ease, opacity 0.2s;
}

.woocommerce div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__wrapper:hover::after {
    transform: scale(1.1);
    background-color: #fff !important;
}

/* Text & Links -> Primary Green */
.site-header a,
.site-header .site-logo,
.header-nav a,
.user-actions-ul li a,
.site-logo span {
    color: var(--primary-color) !important;
}

/* Keep "store" text Gold if desired, or let it inherit primary. */
.site-logo .text-warning {
    color: var(--secondary-color) !important;
}

/* Search Bar: Light Input, Green Button */
.header-search input {
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    color: #111 !important;
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Icons Hover Effect */
.user-actions-ul li a:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Color */
.entry-content .account-mobile-menu-toggle {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- Mobile/Tablet Responsive Gallery --- */
@media (max-width: 991px) {
    .woocommerce div.product div.images.woocommerce-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 10px !important;
    }

    /* 1. Main Image on TOP */
    .woocommerce div.product div.images.woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    .woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport {
        order: 1 !important;
        width: 100% !important;
    }

    /* 2. Thumbs on BOTTOM (Horizontal Scroll) */
    .woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
        order: 2 !important;
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-height: none !important;

        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px !important;
        padding-bottom: 5px !important;
        /* Scrollbar space */
        white-space: nowrap !important;
    }

    .woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li {
        width: 60px !important;
        /* Fixed modest width */
        min-width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* --- Auth Pages (Login/Signup) --- */
.auth-page-container {
    background: #f3f4f6;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.auth-card input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    transition: border-color 0.2s;
}

.auth-card input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-card .error-msg {
    background: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-card .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.container-xl-custom {
    max-width: 96%;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* --- AJAX Search Results --- */
#barkat-search-results {
    top: 100%;
    left: 0;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
}

/* --- Logo Styling --- */
.site-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* --- Buy Now Button --- */
.buy-now-btn {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}

.buy-now-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff !important;
}

/* --- Mobile Sticky Footer --- */
.mobile-sticky-footer .small.fw-bold {
    font-size: 10px !important;
}

.mobile-sticky-footer .badge {
    font-size: 9px !important;
    padding: 2px 4px !important;
}

.mobile-sticky-footer a {
    color: var(--text-muted);
}

.mobile-sticky-footer a.active {
    color: var(--primary-color);
}

/* --- HEADER FIXES (FORCED) --- */
.site-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.site-logo,
.site-logo span,
.site-logo a {
    color: var(--primary-color) !important;
    font-style: normal !important;
}

.site-logo-img {
    height: 48px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.header-search input {
    background-color: #f1f3f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px 0 0 4px !important;
}

.header-search button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 0 4px 4px 0 !important;
}

.header-nav a,
.user-actions-ul li a {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.btn-primary.text-white {
    color: #ffffff !important;
}

/* Ensure Login button looks correct */
.site-header .btn-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* FINAL HEADER POLISH */
.site-header {
    background: #fff !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #eee !important;
}

.site-logo-img {
    height: 38px !important;
    width: auto !important;
    margin-right: -5px !important;
}

.site-logo {
    color: var(--primary-color) !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.02em;
}

.header-search input {
    background: #f1f3f6 !important;
    border-radius: 4px 0 0 4px !important;
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
}

.header-search button {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 0 1.25rem !important;
}

/* Fix for the truncated/bad looking Login button in header */
.site-header .btn-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 6px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
}

.user-actions-ul a {
    color: var(--primary-color) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.user-actions-ul svg {
    stroke: var(--primary-color) !important;
}

/* Standardize Header Actions */
.user-actions-ul li {
    display: flex;
    align-items: center;
}

.user-actions-ul .btn-primary {
    min-width: 80px !important;
    white-space: nowrap !important;
}

/* Ensure the text is visible */
.site-header .text-white {
    color: #ffffff !important;
}

/* Mobile Adjustments for Header */
@media (max-width: 768px) {
    .site-logo-img {
        height: 32px !important;
    }

    .site-logo {
        font-size: 1.1rem !important;
    }

    .header-inner {
        min-height: 60px !important;
    }
}

/* FINAL FINAL HEADER POLISH */
#barkat-search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: #e5e7eb !important;
}

.site-logo {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
}

.site-logo-img {
    height: 42px !important;
    margin-right: 4px !important;
}

.site-header .container {
    max-width: 98% !important;
}

/* --- Cart Page Enhancements --- */
.cart-empty-title {
    color: var(--primary-color) !important;
}

.cart-empty-icon {
    stroke: var(--primary-color) !important;
}

.section-label {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-weight: 700 !important;
}

/* --- Global WooCommerce Theme Overrides --- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart-empty .btn-primary,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.woocommerce-page #respond input#submit,
.woocommerce .return-to-shop a.button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 25px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce-page a.button:hover {
    background-color: #013323 !important;
    color: #ffffff !important;
}

/* Target the specific products in the empty cart section */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    margin-top: 10px !important;
}

/* Force the section label on empty cart page */
h2.section-label {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 10px 30px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 30px !important;
}

.cart-empty-title {
    color: var(--primary-color) !important;
    font-size: 2.5rem !important;
}

.cart-empty-icon {
    color: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

/* --- FORCE THEME COLORS ON CART PAGE --- */
.woocommerce-cart .cart-empty h1,
.woocommerce-cart .cart-empty h2,
.woocommerce-cart .cart-empty .section-label {
    color: var(--primary-color) !important;
}

/* Ensure the label has the background as requested */
.woocommerce-cart .section-label {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 10px rgba(2, 71, 49, 0.2) !important;
}

/* Fix product buttons in the 'New in store' section */
.woocommerce-cart .products .product .button,
.woocommerce-cart .products .product .add_to_cart_button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 150px !important;
}

.woocommerce-cart .products .product .button:hover {
    background-color: #013323 !important;
    color: #ffffff !important;
}

/* SVG icons on cart page */
.woocommerce-cart .cart-empty svg {
    stroke: var(--primary-color) !important;
}

/* --- Wishlist Button Styling --- */
.product-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
}

.aspect-ratio-box {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ========================================================
   MODERN UI REDESIGN COMPONENTS
   ======================================================== */

/* --- Utilities --- */
.shadow-2xs { box-shadow: var(--shadow-2xs) !important; }
.shadow-xs  { box-shadow: var(--shadow-xs) !important; }
.rounded-4  { border-radius: 16px !important; }
.whitespace-nowrap { white-space: nowrap !important; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.hover-lift:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* --- Brand Header Polish --- */
.brand-badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #065f46 100%);
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.brand-text {
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Modern Pill Search */
.search-form-pill {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    transition: all 0.2s ease;
}
.search-form-pill:focus-within {
    background-color: #ffffff;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(2, 71, 49, 0.12) !important;
}

.search-input {
    font-size: 0.875rem;
    color: var(--text-main);
}
.search-input::placeholder {
    color: #94a3b8;
}

.btn-nav-item {
    color: var(--primary-color);
    transition: all 0.2s ease;
}
.btn-nav-item:hover {
    color: var(--primary-hover);
    background-color: rgba(2, 71, 49, 0.06);
}

.btn-cart-nav {
    background-color: var(--primary-color);
    transition: all 0.2s ease;
}
.btn-cart-nav:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* --- Category Pill Navigation --- */
.category-slider-wrapper {
    border: 1px solid #e2e8f0;
}

.cat-pill-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.cat-pill-item:hover {
    color: var(--primary-color) !important;
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-xs);
    transform: translateY(-2px);
}

/* --- Modern Product Cards --- */
ul.products li.product {
    margin-bottom: 1.5rem;
}

.product-inner.card {
    border: 1px solid #e2e8f0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}
.product-inner.card:hover {
    border-color: rgba(2, 71, 49, 0.25) !important;
}

.product-img-modern {
    transition: transform 0.4s ease;
}
.product-inner:hover .product-img-modern {
    transform: scale(1.06);
}

.badge-save {
    background: linear-gradient(135deg, #e11d48, #be123c);
    letter-spacing: 0.3px;
}

.product-card-title {
    font-size: 0.925rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-title a {
    color: var(--text-main);
    transition: color 0.15s ease;
}
.product-card-title a:hover {
    color: var(--primary-color);
}

/* --- Modern Add to Bag Loop Button --- */
ul.products li.product .btn-modern-cart,
.woocommerce ul.products li.product .btn-modern-cart,
.btn-modern-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
    height: auto !important;
    min-height: 32px !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    background-color: var(--primary-color, #0b4233) !important;
    color: #ffffff !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(11, 66, 51, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

ul.products li.product .btn-modern-cart:hover,
.woocommerce ul.products li.product .btn-modern-cart:hover,
.btn-modern-cart:hover {
    background-color: var(--primary-hover, #013323) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(11, 66, 51, 0.3) !important;
}

ul.products li.product .btn-modern-cart:active,
.woocommerce ul.products li.product .btn-modern-cart:active,
.btn-modern-cart:active {
    transform: scale(0.96) !important;
}

.btn-modern-cart.loading {
    opacity: 0.75 !important;
    pointer-events: none;
}
.btn-modern-cart.loading svg {
    animation: btnSpin 0.75s linear infinite;
}
@keyframes btnSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-modern-cart.added {
    background-color: #065f46 !important;
}

.btn-modern-cart::after {
    display: none !important;
}

/* Position and alignment of WooCommerce AJAX Added to Cart notice */
.product-action-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.product-action-wrap .added_to_cart {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: var(--primary-color, #0b4233) !important;
    text-decoration: underline !important;
    white-space: nowrap;
    display: inline-block !important;
}

/* Price Styling */
.product-price-wrap .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 !important;
}
.product-price-wrap .price del {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 400;
    margin-right: 4px;
}
.product-price-wrap .price ins {
    text-decoration: none;
    font-weight: 800;
    color: var(--primary-color);
}

/* --- Luxury Trust Strip (Handcrafted in Jaipur, Light Weight, Skin Friendly, Brass Jewellery) --- */
.barkat-trust-section {
    position: relative;
    width: 100%;
}
.barkat-trust-strip {
    background-color: #FAF4EF;
    border: 1px solid #EFE5DC;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.trust-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    padding: 4px 12px;
    transition: transform 0.2s ease;
}
.trust-strip-item:hover {
    transform: translateY(-1px);
}
.trust-strip-divider {
    width: 1px;
    height: 44px;
    background-color: #DED5CB;
    flex-shrink: 0;
}
.trust-strip-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #262220;
    transition: transform 0.25s ease;
}
.trust-strip-icon svg {
    display: block;
    width: 46px;
    height: 46px;
}
.trust-strip-item:hover .trust-strip-icon {
    transform: scale(1.06);
}
.trust-strip-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}
.trust-strip-title,
.trust-strip-desc {
    font-size: 0.94rem;
    font-weight: 600;
    color: #262220;
    letter-spacing: 0.15px;
    margin: 0;
    white-space: nowrap;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 991.98px) {
    .barkat-trust-strip {
        padding: 16px 10px;
    }
    .trust-strip-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 14px;
        column-gap: 0;
        position: relative;
    }
    .trust-strip-divider {
        display: none;
    }
    .trust-strip-item {
        justify-content: center;
        padding: 6px 6px;
        gap: 10px;
    }
    .trust-strip-item:nth-child(1),
    .trust-strip-item:nth-child(5) {
        border-right: 1px solid #EFE5DC;
    }
    .trust-strip-inner::after {
        content: "";
        position: absolute;
        left: 4%;
        right: 4%;
        top: 50%;
        height: 1px;
        background-color: #EFE5DC;
    }
    .trust-strip-icon {
        width: 38px;
        height: 38px;
    }
    .trust-strip-icon svg {
        width: 38px;
        height: 38px;
    }
    .trust-strip-title,
    .trust-strip-desc {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .trust-strip-item {
        gap: 8px;
        padding: 4px 2px;
    }
    .trust-strip-icon {
        width: 34px;
        height: 34px;
    }
    .trust-strip-icon svg {
        width: 34px;
        height: 34px;
    }
    .trust-strip-title,
    .trust-strip-desc {
        font-size: 0.78rem;
    }
}


/* --- Mobile Bottom Nav Polish --- */
.mobile-sticky-footer {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.94) !important;
}

/* --- High-Impact Category Story Circle Showcase (Flipkart / Luxury Style) --- */
.category-slider-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.85);
}
.cat-circle-item {
    width: 84px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2px 0;
}
.cat-circle-item:hover {
    transform: translateY(-3px);
}
.cat-avatar-wrap {
    width: 64px;
    height: 64px;
    border: 2px solid rgba(200, 150, 88, 0.45);
    background: #fdfbf7;
    transition: all 0.25s ease;
}
.cat-circle-item:hover .cat-avatar-wrap {
    border-color: #c89658;
    box-shadow: 0 4px 14px rgba(200, 150, 88, 0.35);
    transform: scale(1.05);
}
.cat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cat-circle-item:hover .cat-avatar-img {
    transform: scale(1.08);
}
.cat-circle-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    max-width: 82px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    transition: color 0.2s ease;
}
.cat-circle-item:hover .cat-circle-title {
    color: var(--primary-color, #0b4233);
}

.cat-circle-item.active-cat .cat-avatar-wrap,
.cat-avatar-wrap.active-wrap {
    border-color: #c89658 !important;
    box-shadow: 0 0 0 3px rgba(200, 150, 88, 0.40), 0 4px 12px rgba(200, 150, 88, 0.25) !important;
    transform: scale(1.05);
}
.cat-circle-item.active-cat .cat-circle-title {
    color: var(--primary-color, #0b4233) !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .cat-circle-item {
        width: 68px;
    }
    .cat-avatar-wrap {
        width: 52px;
        height: 52px;
    }
    .cat-circle-title {
        font-size: 0.7rem;
        max-width: 68px;
    }
}

/* --- Dedicated Shop By Category Visual Cards Grid --- */
.category-card-item {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.category-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(11, 66, 51, 0.20) !important;
}
.category-card-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card-item:hover .category-card-img {
    transform: scale(1.08);
}
.category-card-item .cta-arrow {
    transition: transform 0.2s ease;
}
.category-card-item:hover .cta-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   MASTER MOBILE & TABLET RESPONSIVENESS SUITE (BARKAT STORE v2.0.0)
   ========================================================================== */

/* 1. Global Viewport & Reset */
@media (max-width: 991.98px) {
    /* Prevent sticky bottom nav from covering content */
    body:not(.woocommerce-checkout) {
        padding-bottom: 72px !important;
    }
}

/* iOS Safari Zoom Prevention: Ensure all form inputs have at least 16px font-size */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 2. Mobile Sticky Bottom Nav */
.mobile-sticky-footer {
    height: 60px;
    z-index: 9990 !important;
    border-top: 1px solid rgba(200, 150, 88, 0.25) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.96) !important;
}
.mobile-sticky-footer a {
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none !important;
}
.mobile-sticky-footer a:active {
    transform: scale(0.92);
}
.mobile-sticky-footer a:hover,
.mobile-sticky-footer a.text-primary {
    color: var(--primary-color, #0b4233) !important;
}

/* 3. Header & Search Bar on Mobile & Tablet */
@media (max-width: 768px) {
    .site-header {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .site-logo-img {
        height: 42px !important;
        width: 42px !important;
    }
    .brand-text {
        font-size: 1.25rem !important;
    }
    .header-search {
        margin-top: 8px !important;
    }
    .search-form-pill {
        padding: 4px 12px !important;
    }
    .search-form-pill input {
        font-size: 0.85rem !important;
    }
    .search-form-pill button {
        padding: 4px 14px !important;
        font-size: 0.78rem !important;
    }
}

/* 4. Category Story Bar Mobile & Tablet Responsiveness */
.category-slider-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}
.cat-circle-item {
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    /* Hide desktop navigation arrows on touch screens so fingers can swipe freely */
    .slider-arrow.prev-cat,
    .slider-arrow.next-cat {
        display: none !important;
    }
    .category-slider-wrapper {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }
    .category-slider-container {
        gap: 12px !important;
    }
    .cat-circle-item {
        width: 64px !important;
    }
    .cat-avatar-wrap {
        width: 52px !important;
        height: 52px !important;
    }
    .cat-circle-title {
        font-size: 0.7rem !important;
        max-width: 64px !important;
        line-height: 1.2 !important;
    }
}
@media (min-width: 769px) and (max-width: 991.98px) {
    .cat-circle-item {
        width: 74px !important;
    }
    .cat-avatar-wrap {
        width: 58px !important;
        height: 58px !important;
    }
}

/* 5. Hero Slider on Mobile & Tablet */
@media (max-width: 576px) {
    .hero-slider-section {
        border-radius: 12px !important;
        margin-bottom: 1.5rem !important;
    }
    .hero-slide img {
        height: 290px !important;
    }
    .hero-slide-caption {
        padding: 1rem !important;
    }
    .hero-slide-caption h2 {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.35rem !important;
    }
    .hero-slide-caption p {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.75rem !important;
    }
    .hero-slide-btn {
        padding: 6px 16px !important;
        font-size: 0.78rem !important;
    }
    .hero-slider-section .slider-arrow {
        display: none !important; /* Swipe gesture works natively */
    }
}
@media (min-width: 577px) and (max-width: 991.98px) {
    .hero-slide img {
        height: 380px !important;
    }
    .hero-slide-caption h2 {
        font-size: 1.6rem !important;
    }
}

/* 6. Product Cards Grid Mobile Polish */
@media (max-width: 576px) {
    /* Compact gutters and card padding for 2-column mobile layout */
    ul.products.row {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.75rem !important;
    }
    .product-inner .card-body {
        padding: 8px 10px 10px 10px !important;
    }
    .product-card-title {
        font-size: 0.82rem !important;
        line-height: 1.3 !important;
        min-height: 2.6em !important;
        margin-bottom: 4px !important;
    }
    .product-price-wrap .price {
        font-size: 0.88rem !important;
    }
    .product-price-wrap .price del {
        font-size: 0.72rem !important;
    }
    .product-action-wrap .btn-modern-cart {
        padding: 4px 8px !important;
    }
    .product-action-wrap .btn-cart-text {
        font-size: 0.65rem !important;
    }
    .stock-status-indicator {
        font-size: 0.65rem !important;
    }
    .product-card-category {
        font-size: 0.68rem !important;
        max-width: 80px !important;
    }
}
@media (min-width: 577px) and (max-width: 991.98px) {
    .product-card-title {
        font-size: 0.88rem !important;
    }
}

/* 7. Promotional Banners on Mobile */
@media (max-width: 768px) {
    .promo-section .promo-item img {
        height: 160px !important;
    }
    .promo-btn {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
        margin: 0.75rem !important;
    }
}

/* 8. Auth Pages (Login & Signup) Responsive Polish */
.otp-input-field {
    font-size: 1.6rem;
    letter-spacing: 8px;
    font-family: 'Courier New', Courier, monospace;
}
@media (max-width: 576px) {
    .auth-page-container {
        padding: 1rem !important;
        min-height: calc(100vh - 140px) !important;
    }
    .auth-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
    }
    .otp-input-field {
        font-size: 1.35rem !important;
        letter-spacing: 5px !important;
    }
}

/* 9. Contact Us Page on Mobile & Tablet */
@media (max-width: 768px) {
    .site-main {
        padding-top: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    .card.p-4.p-md-5 {
        padding: 1.5rem 1.25rem !important;
    }
}

/* 10. WooCommerce Cart & Checkout Responsive Polish */
@media (max-width: 768px) {
    .woocommerce table.shop_table_responsive tr td {
        padding: 8px 10px !important;
    }
    .woocommerce-cart table.cart td.actions .coupon {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    .woocommerce-cart table.cart td.actions .coupon input.input-text {
        flex-grow: 1 !important;
        width: auto !important;
    }
    .woocommerce-cart table.cart td.actions .coupon button.button {
        width: auto !important;
        white-space: nowrap !important;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        margin-top: 1.5rem !important;
    }
}

/* 11. Customer My Account Responsive Polish */
@media (max-width: 991.98px) {
    .barkat-account-sidebar {
        margin-bottom: 1.5rem !important;
        padding: 1rem !important;
    }
    .barkat-account-nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .barkat-account-nav-item {
        flex: 1 1 auto !important;
    }
    .barkat-account-nav-link {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        justify-content: center !important;
    }
    .barkat-account-nav-link .nav-icon-wrap {
        display: none !important;
    }
    .woocommerce-MyAccount-content {
        padding: 1.25rem !important;
    }
}

/* ==========================================================================
   12. MASTER COLLECTIONS SUITE (LAPTOP, TABLET & MOBILE RESPONSIVE UI)
   ========================================================================== */

/* A. Desktop & Laptop Collections Mega-Dropdown (>= 992px) */
.collections-mega-menu {
    display: none;
}

.collections-mega-menu.show {
    display: block !important;
}

@media (min-width: 992px) {
    .user-actions-ul {
        position: relative !important;
    }
    .barkat-collections-dropdown-wrap {
        position: static !important;
    }
    .collections-mega-menu {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        width: 580px !important;
        max-width: 92vw !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 1050 !important;
    }
}

.barkat-collections-btn {
    transition: all 0.2s ease;
    font-size: 0.85rem !important;
}

.barkat-collections-btn:hover,
.barkat-collections-btn[aria-expanded="true"] {
    background-color: var(--primary-color, #0b4233) !important;
    border-color: var(--primary-color, #0b4233) !important;
    color: #ffffff !important;
}

.collections-mega-menu {
    border: 1px solid rgba(200, 150, 88, 0.28) !important;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    border-radius: 18px !important;
    background: #ffffff;
    animation: megaDropdownSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

@keyframes megaDropdownSlide {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mega-dropdown-item {
    transition: all 0.18s ease;
    border-radius: 10px;
    padding: 6px 8px;
    color: #1f2937 !important;
}

.mega-dropdown-item:hover {
    background-color: rgba(11, 66, 51, 0.06) !important;
    color: var(--primary-color, #0b4233) !important;
    transform: translateX(3px);
}

.mega-dropdown-item:hover img {
    border-color: var(--primary-color, #0b4233) !important;
}

.mega-dropdown-item:hover .badge {
    background-color: var(--primary-color, #0b4233) !important;
    color: #ffffff !important;
    border-color: var(--primary-color, #0b4233) !important;
}

.collections-dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.collections-dropdown-list::-webkit-scrollbar-thumb {
    background-color: rgba(200, 150, 88, 0.3);
    border-radius: 4px;
}

/* B. Tablet Adaptations (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .collections-mega-menu {
        position: fixed !important;
        top: 68px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(92vw, 540px) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        margin: 0 !important;
        z-index: 10000 !important;
    }
    .collections-dropdown-list {
        max-height: 250px !important;
    }
}

/* C. Mobile Dedicated Collections Drawer (< 768px) */
@media (max-width: 767.98px) {
    .collections-mega-menu,
    .collections-mega-menu.show {
        display: none !important;
    }

    .mobile-collections-drawer {
        border-top-left-radius: 22px !important;
        border-top-right-radius: 22px !important;
    }

    .col-collection-card-inner {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        border-radius: 12px;
        min-height: 56px;
        transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    }

    .col-collection-card-inner:active {
        transform: scale(0.96);
        background-color: #f8fafc !important;
        border-color: rgba(200, 150, 88, 0.6) !important;
    }

    .col-tab-btn {
        transition: all 0.2s ease;
        border: none;
    }

    .col-tab-btn.active {
        background-color: var(--primary-color, #0b4233) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(11, 66, 51, 0.25);
    }

    .collections-drawer-body::-webkit-scrollbar {
        width: 3px;
    }

    .collections-drawer-body::-webkit-scrollbar-thumb {
        background-color: rgba(11, 66, 51, 0.2);
        border-radius: 3px;
    }
}

/* ==========================================================================
   13. PRODUCT CARD STACKED LAYOUT (ADD TO BAG ON NEW LINE AFTER PRICE)
   ========================================================================== */
.product-card-bottom-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
}

.product-card-bottom-bar .product-price-wrap {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.product-card-bottom-bar .product-action-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.product-card-bottom-bar .product-action-wrap .btn-modern-cart {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    border-radius: 50rem !important;
    text-align: center !important;
}

.product-card-bottom-bar .product-action-wrap .btn-cart-text {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.product-card-bottom-bar .product-action-wrap .added_to_cart {
    display: block !important;
    text-align: center !important;
    margin-top: 5px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--primary-color, #0b4233) !important;
    text-decoration: underline !important;
}

@media (max-width: 576px) {
    .product-card-bottom-bar {
        margin-top: 4px !important;
        padding-top: 6px !important;
    }
    .product-card-bottom-bar .product-price-wrap {
        margin-bottom: 6px !important;
    }
    .product-card-bottom-bar .product-action-wrap .btn-modern-cart {
        padding: 6px 8px !important;
    }
    .product-card-bottom-bar .product-action-wrap .btn-cart-text {
        font-size: 0.72rem !important;
    }
}

