/* Mobile Menu Transition */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Manrope', sans-serif;
}

/* MARQUEE ANIMATION */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* GRADIENT TEXT ANIMATION */
@keyframes gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

/* ============================================
   SHOP PAGE STYLES
   ============================================ */

/* Pagination */
.welkem-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.welkem-pagination .page-numbers li {
    display: inline-flex;
}

.welkem-pagination .page-numbers a,
.welkem-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
}

.welkem-pagination .page-numbers a:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.welkem-pagination .page-numbers .current {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.3);
}

.welkem-pagination .page-numbers .prev,
.welkem-pagination .page-numbers .next {
    background: #f1f5f9;
    border-color: transparent;
}

.welkem-pagination .page-numbers .prev:hover,
.welkem-pagination .page-numbers .next:hover {
    background: #0ea5e9;
    color: white;
}

/* Sorting Dropdown */
.welkem-sorting .woocommerce-ordering {
    margin: 0;
}

.welkem-sorting select {
    appearance: none;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.welkem-sorting select:hover {
    border-color: #0ea5e9;
}

.welkem-sorting select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Hide scrollbar for category pills */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Subcategory card animation */
.subcat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: subcatFadeIn 0.5s ease forwards;
}

@keyframes subcatFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SIDEBAR & FILTER WIDGETS
   ============================================ */

/* Widget Container */
.widget {
    margin-bottom: 1.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

/* Widget Title */
.widget-title,
.widget .widgettitle {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter Lists */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.widget ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
}

.widget ul li a:hover {
    background: white;
    border-color: #0ea5e9;
    color: #0ea5e9;
    transform: translateX(4px);
}

.widget ul li a .count {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    background: #e2e8f0;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}

.widget ul li a:hover .count {
    background: #0ea5e9;
    color: white;
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper {
    padding-top: 0.5rem;
}

.widget_price_filter .ui-slider {
    background: #e2e8f0;
    border: none;
    border-radius: 9999px;
    height: 6px;
    margin: 0 0.5rem;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    border-radius: 9999px;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background: white;
    border: 3px solid #0ea5e9;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    top: -6px;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.widget_price_filter .ui-slider .ui-slider-handle:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

.widget_price_filter .price_slider_amount {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.widget_price_filter .price_label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    order: 1;
    flex: 1;
}

.widget_price_filter .button {
    order: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget_price_filter .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

/* Active Filters Widget */
.woocommerce-widget-layered-nav-list__item--chosen a,
.widget_layered_nav_filters ul li a {
    background: #0ea5e9 !important;
    color: white !important;
    border-color: #0ea5e9 !important;
}

.widget_layered_nav_filters ul li a::before {
    content: '✕';
    margin-right: 0.5rem;
    font-size: 0.625rem;
}

/* Product Card Enhancements */
.product-card {
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 50%, rgba(14, 165, 233, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

/* 3. SCI-FI GRID BACKGROUND */
.sci-fi-grid {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    opacity: 0.6;
}


/* 4. QUANTUM BORDER GLOW */
@keyframes borderRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Quantum Border Animation */
.quantum-border {
    position: relative;
    overflow: hidden;
}

.quantum-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    animation: borderRotate 6s linear infinite;
    z-index: 0;
}

.quantum-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    z-index: 1;
}

.quantum-content {
    position: relative;
    z-index: 2;
}



/* 5. LIQUID GLASS SHIMMER (The "Squeaky Clean" look) */
.glass-shimmer {
    position: relative;
    overflow: hidden;
}

.glass-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    transform: skewX(-25deg);
    animation: shimmerPass 6s infinite;
    pointer-events: none;
}

@keyframes shimmerPass {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}



/* 6. BIO-DIGITAL PULSE (The "Active Formula" look) */
.bio-pulse {
    background-size: 200% 200%;
    animation: liquidFlow 4s ease infinite;
}

@keyframes liquidFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



/* 7. NANO-PARTICLE (The "Cleaning Agent") */
.nano-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
}

/* 8. SINGLE PRODUCT IMAGE STYLES */
img#singleproductimage {
    border-radius: 5%;
    border-style: solid;
    border-width: 10px;
    transition: transform 0.3s ease;
}



/* 9. CHEMICAL FILL SCROLLBAR */
.chemical-scroll-track {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 60vh;
    border-radius: 10px;
    z-index: 90;
    overflow: hidden;
}

.chemical-scroll-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    transition: height 0.1s linear;
    border-radius: 10px;
}

.chemical-scroll-fill::after {
    /* Bubbles inside the tube */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 4px 8px;
    opacity: 0.5;
}


/* 10. LASER SCAN HOVER (For Specs) */
.spec-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    filter: blur(1px);
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
}

.spec-row-hover {
    position: relative;
    overflow: hidden;
}

/* WRITING VERTICAL FIX */
.writing-vertical {
    writing-mode: horizontal-tb;
    text-orientation: upright;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Grid pattern for the blueprint */
.blueprint-grid {
    background-image:
        linear-gradient(rgba(0, 210, 239, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 239, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    border: 1px solid rgba(0, 210, 239, 0.3);
}





/* Footer Widget Styling */
.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* space-y-3 */
}

.site-footer .widget ul li a {
    color: #94a3b8;
    /* slate-400 */
    transition: color 0.2s;
    text-decoration: none;
}

.site-footer .widget ul li a:hover {
    color: #0ea5e9;
    /* primary/sky-500 */
}

/* Shop Sidebar Styling */
#shop-sidebar-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shop-sidebar-area .widget ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #475569;
    /* slate-600 */
}

#shop-sidebar-area .widget ul li a {
    color: inherit;
    text-decoration: none;
}

#shop-sidebar-area .widget ul li a:hover {
    color: var(--primary);
}




/* --- SHOP SIDEBAR WIDGETS --- */

/* Price Slider */
.widget_price_filter .price_slider {
    background: #e2e8f0;
    height: 4px;
    border-radius: 99px;
    margin-bottom: 20px;
    position: relative;
}

.widget_price_filter .price_slider_bar {
    background: #be1e2d;
    height: 4px;
    border-radius: 99px;
    position: absolute;
}

.widget_price_filter .price_slider_handle {
    background: white;
    border: 2px solid #be1e2d;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: -6px;
    position: absolute;
    cursor: pointer;
    outline: none;
}

.widget_price_filter .price_label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.widget_price_filter .button {
    background: #0f172a;
    color: white;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 6px;
    float: right;
    font-weight: bold;
}

/* Product Categories List */
.widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.widget_product_categories li a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.widget_product_categories li a:hover,
.widget_product_categories li.current-cat>a {
    color: #be1e2d;
}

/* Count Badge */
.widget_product_categories li .count {
    font-size: 10px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 99px;
    color: #94a3b8;
    font-weight: 700;
}

/* Active Filters */
.widget_layered_nav_filters ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
}

.widget_layered_nav_filters li {
    list-style: none;
}

.widget_layered_nav_filters a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fee2e2;
    /* red-50 */
    color: #be1e2d;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
}

.widget_layered_nav_filters a::before {
    content: 'x';
    font-size: 10px;
}





/* --- SHOP SORTING --- */
.welkem-sorting .woocommerce-ordering {
    margin: 0;
}

.welkem-sorting select {
    background-color: white;
    border: 1px solid #e2e8f0;
    /* slate-200 */
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    /* slate-600 */
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    transition: all 0.2s;
}

.welkem-sorting select:hover {
    border-color: #cbd5e1;
    /* slate-300 */
    color: #1e293b;
    /* slate-800 */
}

.welkem-sorting select:focus {
    border-color: #be1e2d;
    /* primary */
    ring: 2px solid rgba(190, 30, 45, 0.2);
}

/* --- PAGINATION --- */
.welkem-pagination ul {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.welkem-pagination li {
    margin: 0;
}

.welkem-pagination span.current,
.welkem-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

/* Default Link */
.welkem-pagination a {
    background: transparent;
    color: #475569;
    /* slate-600 */
}

.welkem-pagination a:hover {
    background: #f1f5f9;
    /* slate-100 */
    color: #1e293b;
    /* slate-800 */
}

/* Active Page */
.welkem-pagination span.current {
    background: #0f172a;
    /* slate-900 */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}



/* Toast Animations */
#toast-container {
    pointer-events: none;
}

#toast-container>div {
    pointer-events: auto;
}

/* Quick View Mobile Fix */
#quick-view-content {
    max-height: 90vh;
}

/* ============================================
   QUICK VIEW MODAL - ENHANCED
   ============================================ */

/* Container */
.qv-container {
    background: white;
}

/* Gallery Section */
.qv-gallery {
    position: relative;
}

.qv-gallery img {
    max-height: 350px;
    object-fit: contain;
}

/* Primary Add to Cart Button */
.qv-add-to-cart .single_add_to_cart_button,
.qv-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #be1e2d, #dc2626);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px -3px rgba(190, 30, 45, 0.4);
}

.qv-add-to-cart .single_add_to_cart_button:hover,
.qv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(190, 30, 45, 0.5);
}

/* Quantity Input in Quick View */
.qv-add-to-cart .quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qv-add-to-cart .quantity input[type="number"] {
    width: 80px;
    height: 48px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.qv-add-to-cart .quantity input[type="number"]:focus {
    outline: none;
    border-color: #0ea5e9;
}

/* Disabled Button */
.qv-btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 1rem;
    cursor: not-allowed;
}

/* Quantity Selector */
.qv-quantity-wrapper {
    display: flex;
    align-items: center;
}

.qv-qty-btn {
    transition: all 0.15s ease;
}

.qv-qty-btn:active {
    transform: scale(0.95);
}

#qv-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

#qv-qty-input::-webkit-outer-spin-button,
#qv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add Button */
.qv-add-btn {
    min-height: 48px;
}

/* Zoom Overlay */
#qv-zoom-overlay img {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Share Buttons */
.qv-info a[href*="facebook"]:hover {
    background: #1877f2;
}

.qv-info a[href*="twitter"]:hover {
    background: #1da1f2;
}

.qv-info a[href*="wa.me"]:hover {
    background: #25d366;
}

/* Thumbnails */
.qv-thumb {
    transition: all 0.2s ease;
}

.qv-thumb:hover {
    transform: scale(1.05);
}

/* Attributes Grid */
.qv-attributes {
    font-size: 0.875rem;
}

/* ============================================
   SIDEBAR FILTERS - ENHANCED v2
   ============================================ */

/* Filter Section Headers - Collapsible */
.widget-title,
.widget .widgettitle {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.widget-title::after,
.widget .widgettitle::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center no-repeat;
    transition: transform 0.2s ease;
}

/* Color Swatches */
.widget ul li.wc-layered-nav-term a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget .swatch-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e2e8f0;
}

/* Rating Filter Stars */
.widget .star-rating {
    display: inline-flex;
    gap: 2px;
    color: #fbbf24;
}

/* Checkbox Style Filters */
.widget input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.widget input[type="checkbox"]:checked {
    background: #0ea5e9;
    border-color: #0ea5e9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Clear Filters Button */
.widget_layered_nav_filters {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.widget_layered_nav_filters .widgettitle {
    color: #92400e;
    border-bottom-color: #fcd34d;
}

.widget_layered_nav_filters ul li a {
    background: white;
    border-color: #fcd34d;
    color: #92400e;
}

.widget_layered_nav_filters ul li a:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

/* Filter Tags Display */
.woocommerce-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.woocommerce-active-filters .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #0ea5e9;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce-active-filters .filter-tag:hover {
    background: #dc2626;
}

/* --- ADD TO CART BUTTON FIXES --- */

/* 1. Hide "View Cart" text injected by WooCommerce */
.add_to_cart_button.added {
    display: flex !important;
    /* Keep flex to center icon */
    text-indent: -9999px;
    /* Push text away */
    position: relative;
    overflow: hidden;
}

/* 2. Restore Icon Position */
.add_to_cart_button.added::before {
    content: '';
    /* We will inject icon via JS, but this keeps layout stable */
    text-indent: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* --- HEADER CART COUNT BUBBLE --- */
.cart-count-bubble {
    font-family: 'Manrope', sans-serif;
    /* Use theme font */
    box-shadow: 0 2px 5px rgba(190, 30, 45, 0.4);
    /* Glow effect */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animation class added via JS on update */
.cart-count-bubble.bump {
    transform: scale(1.5);
}




/* --- CRITICAL: HIDE "VOIR LE PANIER" TEXT --- */

/* 1. Hide the separate "View Cart" link that WC adds after the button */
a.added_to_cart {
    display: none !important;
}

/* 2. Hide text inside the button when product is added */
.add_to_cart_button.added {
    font-size: 0 !important;
    /* Hides text */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    /* Reset padding to keep circle shape */
}

/* 3. Ensure the icon remains visible */
.add_to_cart_button.added i,
.add_to_cart_button.added svg {
    font-size: 16px !important;
    /* Restore icon size */
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* --- MINI CART BADGE STYLING --- */
.cart-count-badge {
    background-color: rgba(6, 182, 212, 0.1);
    /* Primary/10 */
    color: #06b6d4;
    /* Primary */
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: inline-block;
    min-width: 24px;
    text-align: center;
}


/* ========================================
   WOOCOMMERCE PRODUCT GRID - HOMEPAGE FIX
   ======================================== */

/* Main Products Grid Container */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

/* Responsive Grid */
@media (max-width: 1024px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: 1fr;
    }
}

/* Individual Product Card */
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Product Card Inner Styling */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

/* Product Image Container */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: #be1e2d;
    font-weight: 800;
    font-size: 1.1rem;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-top: 1rem;
    transition: all 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #be1e2d;
    transform: scale(1.05);
}

/* Clear floats Fix */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   HIDE WOOCOMMERCE ORDERING/FILTER ON SINGLE PRODUCT
   ========================================================================== */
.single-product .woocommerce-ordering,
.single-product .woocommerce-result-count,
.single-product .woocommerce-breadcrumb,
.single-product p.woocommerce-result-count {
    display: none !important;
}

/* Also hide any catalog ordering that might appear */
body.single-product select.orderby,
body.single-product form.woocommerce-ordering {
    display: none !important;
}

/* ==========================================================================
   FOOTER WIDGET MENU STYLING (Remove Button Appearance)
   ========================================================================== */
/* Reset widget menu list */
footer .widget ul,
footer .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Reset widget menu items */
footer .widget li,
footer .widget_nav_menu li {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

/* Style footer links as simple text links */
footer .widget a,
footer .widget_nav_menu a {
    display: inline-block;
    color: rgba(148, 163, 184, 1);
    /* slate-400 */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0;
    border: none;
    background: transparent;
    transition: color 0.2s ease, transform 0.2s ease;
}

footer .widget a:hover,
footer .widget_nav_menu a:hover {
    color: #0ea5e9;
    /* primary */
    transform: translateX(4px);
}

/* Widget titles in footer */
footer .widget-title,
footer h2.widget-title,
footer h3.widget-title,
footer .widgettitle {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Space between menu items */
footer .widget li+li,
footer .widget_nav_menu li+li {
    margin-top: 0.25rem;
}

/* Submenu styling if any */
footer .widget ul ul,
footer .widget_nav_menu ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/* Footer text widget */
footer .widget_text p {
    color: rgba(148, 163, 184, 1);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ==========================================================================
   AGGRESSIVE FOOTER WIDGET MENU RESET (with !important)
   Fixes Navigation Menu widgets displaying as buttons
   ========================================================================== */

/* Full reset for footer menu links - remove ALL button styling */
footer .widget_nav_menu .menu,
footer .widget_nav_menu ul.menu,
footer .widget_nav_menu ul,
footer .menu-footer-links-container ul,
footer .menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: transparent !important;
}

footer .widget_nav_menu .menu li,
footer .widget_nav_menu ul li,
footer .menu li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

footer .widget_nav_menu .menu li a,
footer .widget_nav_menu ul li a,
footer .menu li a,
footer .widget a {
    display: inline-block !important;
    padding: 0.35rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: rgba(148, 163, 184, 1) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}

footer .widget_nav_menu .menu li a:hover,
footer .widget_nav_menu ul li a:hover,
footer .menu li a:hover,
footer .widget a:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: #0ea5e9 !important;
    padding-left: 8px !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure no button classes affect footer links */
footer .widget .button,
footer .widget .btn,
footer .widget [class*="button"],
footer .widget_nav_menu .button,
footer .widget_nav_menu .btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.35rem 0 !important;
}

/* ==========================================================================
   HIDE SHOP SIDEBAR ON SINGLE PRODUCT PAGES
   ========================================================================== */
body.single-product #shop-sidebar-area,
body.single-product .shop-sidebar,
body.single-product aside.widget-area,
body.single-product #secondary,
body.single-product .woocommerce-sidebar {
    display: none !important;
}

/* ==========================================================================
   MY ACCOUNT PAGE STYLES
   ========================================================================== */

/* General form field reset for My Account */
.myaccount-dark .woocommerce-Input,
.myaccount-dark .input-text,
.myaccount-dark select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
}

.myaccount-dark .woocommerce-Input:focus,
.myaccount-dark .input-text:focus,
.myaccount-dark select:focus {
    border-color: #0ea5e9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

.myaccount-dark .woocommerce-Input::placeholder,
.myaccount-dark .input-text::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Light theme inputs */
.myaccount-light .woocommerce-Input,
.myaccount-light .input-text,
.myaccount-light select {
    background: rgb(248, 250, 252) !important;
    border: 1px solid rgb(226, 232, 240) !important;
    color: rgb(15, 23, 42) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
}

.myaccount-light .woocommerce-Input:focus,
.myaccount-light .input-text:focus,
.myaccount-light select:focus {
    border-color: #0ea5e9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* WooCommerce form field wrappers */
.myaccount-dark .form-row,
.myaccount-light .form-row {
    margin-bottom: 0 !important;
}

.myaccount-dark .form-row label,
.myaccount-dark .woocommerce-address-fields label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.myaccount-light .form-row label,
.myaccount-light .woocommerce-address-fields label {
    color: rgb(71, 85, 105) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Required field asterisk */
.myaccount-dark .form-row label .required,
.myaccount-light .form-row label .required {
    color: #ef4444 !important;
}

/* Select dropdown arrow fix */
.myaccount-dark select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.myaccount-light select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* WooCommerce notices */
.myaccount-dark .woocommerce-message,
.myaccount-dark .woocommerce-info {
    background: rgba(14, 165, 233, 0.1) !important;
    border-left: 4px solid #0ea5e9 !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

.myaccount-dark .woocommerce-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444 !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

.myaccount-light .woocommerce-message,
.myaccount-light .woocommerce-info {
    background: rgba(14, 165, 233, 0.1) !important;
    border-left: 4px solid #0ea5e9 !important;
    color: #0f172a !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

.myaccount-light .woocommerce-error {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #ef4444 !important;
    color: #0f172a !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

/* Hide default WooCommerce navigation (we use our custom one) */
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    text-decoration: none !important;
}

/* Price styling in dashboard */
.myaccount-dark .woocommerce-Price-amount {
    color: white !important;
}

.myaccount-light .woocommerce-Price-amount {
    color: #0f172a !important;
}

/* View order page styling */
.myaccount-dark .woocommerce-order-details,
.myaccount-dark .woocommerce-customer-details {
    color: white;
}

.myaccount-dark .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.myaccount-dark .woocommerce-table--order-details th,
.myaccount-dark .woocommerce-table--order-details td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.myaccount-dark .woocommerce-table--order-details th {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.myaccount-light .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.myaccount-light .woocommerce-table--order-details th,
.myaccount-light .woocommerce-table--order-details td {
    padding: 1rem;
    border-bottom: 1px solid rgb(226, 232, 240);
    text-align: left;
}

.myaccount-light .woocommerce-table--order-details th {
    color: rgb(100, 116, 139);
    font-weight: 600;
}

/* ==========================================================================
   CART & CHECKOUT PAGE STYLES
   ========================================================================== */

/* Cart quantity input styling */
.woocommerce-cart-form .quantity input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-cart-form .quantity input::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Checkout Dark Theme Form Fields */
.checkout-dark .woocommerce-input-wrapper input,
.checkout-dark .woocommerce-input-wrapper select,
.checkout-dark #billing_country_field select,
.checkout-dark #shipping_country_field select,
.checkout-dark input.input-text,
.checkout-dark select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.95rem !important;
    height: auto !important;
}

.checkout-dark .woocommerce-input-wrapper input:focus,
.checkout-dark .woocommerce-input-wrapper select:focus,
.checkout-dark input.input-text:focus,
.checkout-dark select:focus {
    border-color: #0ea5e9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2) !important;
}

.checkout-dark .woocommerce-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.checkout-dark label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

.checkout-dark .form-row label .required {
    color: #ef4444 !important;
}

/* Checkout Light Theme Form Fields */
.checkout-light .woocommerce-input-wrapper input,
.checkout-light .woocommerce-input-wrapper select,
.checkout-light input.input-text,
.checkout-light select {
    background: rgb(248, 250, 252) !important;
    border: 1px solid rgb(226, 232, 240) !important;
    color: rgb(15, 23, 42) !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    font-size: 0.95rem !important;
    height: auto !important;
}

.checkout-light .woocommerce-input-wrapper input:focus,
.checkout-light .woocommerce-input-wrapper select:focus,
.checkout-light input.input-text:focus,
.checkout-light select:focus {
    border-color: #0ea5e9 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.checkout-light label {
    color: rgb(71, 85, 105) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

/* Order Review Table Styling */
.checkout-dark .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1rem;
}

.checkout-dark .woocommerce-checkout-review-order-table th,
.checkout-dark .woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-dark .woocommerce-checkout-review-order-table .order-total {
    font-weight: 700;
    font-size: 1.125rem;
}

.checkout-dark .woocommerce-checkout-review-order-table .order-total td {
    color: #0ea5e9;
}

.checkout-light .woocommerce-checkout-review-order-table,
.checkout-dark .woocommerce-checkout-review-order-table {
    width: 100%;
}

/* Payment Methods Styling */
.checkout-dark .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.checkout-dark .wc_payment_method {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.checkout-dark .wc_payment_method label {
    color: white !important;
    font-weight: 600;
    cursor: pointer;
}

.checkout-dark .payment_box {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.checkout-light .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.checkout-light .wc_payment_method {
    background: rgb(248, 250, 252);
    border: 1px solid rgb(226, 232, 240);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.checkout-light .wc_payment_method label {
    color: rgb(15, 23, 42) !important;
    font-weight: 600;
    cursor: pointer;
}

.checkout-light .payment_box {
    background: white !important;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
    color: rgb(71, 85, 105);
    border: 1px solid rgb(226, 232, 240);
}

/* Place Order Button */
.checkout-dark #place_order,
.checkout-light #place_order {
    width: 100%;
    padding: 1rem 2rem;
    background: #0ea5e9 !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.4);
}

.checkout-dark #place_order:hover,
.checkout-light #place_order:hover {
    background: #0284c7 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 50px -10px rgba(14, 165, 233, 0.5);
}

/* Select2 Dropdown Styling (if used) */
.checkout-dark .select2-container--default .select2-selection--single {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    height: auto !important;
    padding: 0.5rem !important;
}

.checkout-dark .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
}

/* WooCommerce notices in checkout */
.checkout-dark .woocommerce-NoticeGroup,
.checkout-dark .woocommerce-error,
.checkout-dark .woocommerce-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

.checkout-dark .woocommerce-message {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Cart totals in summary */
.woocommerce-checkout-review-order .cart_item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.woocommerce-checkout-review-order .product-name {
    flex: 1;
}

.woocommerce-checkout-review-order .product-total {
    font-weight: 600;
}