/* =========================================
   SHOP GRID / PRODUCT CARDS
   ========================================= */

/* Fix Black Space - Override WooCommerce Default Margin */
.woocommerce ul.products li.product a img,
.shop-archive-container ul.products li.product img {
    margin-bottom: 0 !important;
    display: block !important;
    width: 100%;
}


/* =========================================
   SORTING DROPDOWN (Native Select)
   ========================================= */
.woocommerce-ordering select {
    font-size: 1rem;
    /* 16px to prevent iOS zoom & readable */
    padding: 12px 15px;
    border: 1px solid #333;
    background-color: #0F0F0F;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    min-width: 200px;
    height: auto;
    width: 100%;

    /* Modern Reset */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Custom Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    /* Space for arrow */
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(216, 23, 36, 0.2);
}

/* Ensure options are dark in browsers that support it (Chrome/Firefox) */
.woocommerce-ordering select option {
    background: #0F0F0F;
    color: #fff;
    padding: 10px;
}

/* =========================================
   SIDEBAR & FILTERS
   ========================================= */
.shop-sidebar-widget-area .widget {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #0a0a0a;
    border: 1px solid #1f1f1f;
    /* ROUNDING: Updated to 12px to match Sort Button */
    border-radius: 12px;
}

.shop-sidebar-widget-area .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

/* Links in Widgets (Categories, etc) */
.widget_product_categories ul,
.widget_layered_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories ul li,
.widget_layered_nav ul li {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_product_categories ul li a,
.widget_layered_nav ul li a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 0.95rem;
}

.widget_product_categories ul li a:hover,
.widget_layered_nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--accent-color);
}

/* Count bubbles */
.widget_product_categories ul li .count,
.widget_layered_nav ul li .count {
    background: #1f1f1f;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper .ui-slider {
    background-color: #333;
    height: 4px;
    border: none;
    margin-bottom: 1rem;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #fff;
    border: 2px solid var(--accent-color);
    width: 14px;
    height: 14px;
    top: -5px;
    border-radius: 50%;
    cursor: pointer;
}

.widget_price_filter .price_slug {
    color: #a3a3a3 !important;
}

.widget_price_filter button.button {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.widget_price_filter button.button:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* =========================================
   SORT DROPDOWN (Pertinence)
   ========================================= */
.woocommerce-ordering select.orderby {
    background-color: #0f0f0f;
    color: #fff;
    border: 1px solid #333;
    /* ROUNDING: Softly rounded as requested */
    border-radius: 12px;
    padding: 10px 35px 10px 20px;
    /* Extra padding for arrow */
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    transition: all 0.3s ease;
    min-width: 200px;
    height: 46px;
    /* Match Search bar height */
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.3);
}

/* =========================================
   SHOP GRID / PRODUCT CARDS
   ========================================= */

.woocommerce ul.products {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center products to avoid left-stick asymmetry */
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    list-style: none;
    margin: 0 0 20px;
    padding: 0 10px;
    /* 3 Columns on Desktop (matches Mockup) */
    width: 33.333%;
}

@media (max-width: 992px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 50%;
        /* 2 Columns on Tablet */
    }
}

@media (max-width: 576px) {

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100%;
        /* 1 Column on Mobile */
    }
}

/* =========================================
   TOP SEARCH BAR (Native Widget Styled)
   ========================================= */
.shop-top-search {
    max-width: 600px;
    margin-bottom: 0 !important;
    /* Force no margin for alignment */
}

.shop-top-search .widget_product_search form,
.shop-top-search .woocommerce-product-search,
.shop-top-search .wp-block-search,
.shop-top-search .widget_search form {
    display: flex;
    gap: 0;
    /* REMOVED GAP for unified look */
    max-width: 600px;
    margin-bottom: 0;
    /* FIX: Remove margin to align perfectly with Sort Dropdown */
    position: relative;
    align-items: center;
}

/* Input Field */
.shop-top-search .search-field,
.shop-top-search .wp-block-search__input {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid #333;
    border-right: none;
    /* Merge with button */
    color: #fff;
    padding: 0 20px;
    /* Increased padding for rounded text */
    /* ROUNDING: Left side only */
    border-radius: 30px 0 0 30px;
    font-size: 0.95rem;
    height: 46px;
    line-height: normal;
    /* Fix alignment */
    margin: 0;
    /* reset */
    vertical-align: top;
    /* Changed to TOP as requested */
}

.shop-top-search .search-field:focus,
.shop-top-search .wp-block-search__input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.3);
    position: relative;
    /* Ensure focus is on top */
    z-index: 2;
}

/* Submit Button */
.shop-top-search button[type="submit"],
.shop-top-search .wp-block-search__button {
    background: var(--accent-color);
    color: #fff;
    /* BORDER FIX: Add Top/Bottom border to match input height exactly */
    border: 1px solid var(--accent-color);
    border-left: none;
    padding: 0 28px;
    /* Wider padding like apple button */
    height: 46px;
    /* ROUNDING: Right side only */
    border-radius: 0 30px 30px 0;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin: 0;
    vertical-align: top;
    /* Changed to TOP as requested */

    /* NEON PRO STYLE (from global .btn-primary-apple) */
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
    letter-spacing: -0.01em;
}

.shop-top-search button[type="submit"]:hover,
.shop-top-search .wp-block-search__button:hover {
    background: #d62f3c;
    /* Darker red hover */
    color: #fff;
    /* Keep white text on red button */
    transform: scale(1.04);
    /* Apple-style pop */
    box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.5);
    /* Deeper shadow */
}

/* Icons fixes */
.shop-top-search button[type="submit"] svg,
.shop-top-search .wp-block-search__button svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

/* Hide Label if visible */
.shop-top-search .widget_product_search label,
.shop-top-search .wp-block-search__label,
.shop-top-search .widget_search label {
    display: none;
}


/* =========================================
   Product Card – structure
   ========================================= */

.product-card {
    position: relative;
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #050608;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100% !important;
    /* Force equal height in flex container */
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7);
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    /* NEON GLOW: Red shadow layers matching checkout theme */
    box-shadow:
        0 24px 45px rgba(0, 0, 0, 0.9),
        /* Depth */
        0 0 20px rgba(var(--accent-color-rgb), 0.25),
        /* Inner Glow */
        0 0 40px rgba(var(--accent-color-rgb), 0.15);
    /* Outer Glow */
}

/* =========================================
   Image + overlay Voir détails
   ========================================= */

.product-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    /* Prevent image shrinking */
}

.product-card__image-link img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

.product-card__image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.product-card__overlay-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    transition:
        opacity 0.18s ease-out,
        transform 0.18s ease-out;
}

.product-card:hover .product-card__image-link img {
    transform: scale(1.06);
    opacity: 0.96;
}

.product-card:hover .product-card__image-link::after {
    opacity: 1;
}

.product-card:hover .product-card__overlay-cta {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
}

/* =========================================
   Badge PROMO (SALE) sur les cartes
   ========================================= */

/* Version "pill" pour les cartes produit */
.woocommerce ul.products li.product span.onsale,
.product-card span.onsale {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.9rem;
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);

    /* neutralise complètement le style rond de Woo */
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    line-height: 1.4;
}

/* =========================================
   Corps de carte
   ========================================= */

.product-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 1.3rem 1.3rem;
    background: linear-gradient(to bottom,
            #101116 0%,
            #050608 55%);
    min-height: 190px;
}

.product-card__text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-card__category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 600;
}

.product-card .woocommerce-loop-product__title {
    font-size: 1.15rem;
    /* Larger title */
    font-weight: 700;
    color: #f9fafb;
    margin: 0;
    /* Limit title to 2 lines usually */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .woocommerce-loop-product__title a {
    color: inherit;
    text-decoration: none;
}

.product-card .woocommerce-loop-product__title a:hover {
    color: #ffffff;
}

/* =========================================
   Footer : prix + Neon Separator
   ========================================= */

.product-card__footer {
    margin-top: 0.75rem;
    position: relative;
    padding-top: 1rem;
    /* Space for the separator */
}

/* Neon Laser Separator */
.product-card__footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle default line */
    transition: all 0.3s ease;
}

/* Hover effect: Red Gradient + Glow */
.product-card:hover .product-card__footer::before {
    background: linear-gradient(90deg,
            rgba(var(--accent-color-rgb), 0) 0%,
            rgba(var(--accent-color-rgb), 1) 50%,
            rgba(var(--accent-color-rgb), 0) 100%);
    box-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.8);
    height: 1px;
    /* Ensure it stays fine */
}

.product-card__price .price,
.woocommerce ul.products li.product .price,
.product-card .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
    /* Larger price */
    margin: 0;
    text-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.3);
    /* Subtle glow on price */
}

.product-card__price .price del {
    color: rgba(148, 163, 184, 0.85);
    font-weight: 400;
    margin-right: 0.15rem;
    font-size: 0.9rem;
}

/* =========================================
   Bouton cible "Add to cart"
   ========================================= */

.product-card__cart {
    position: absolute;
    right: 20px;
    bottom: 20px;
}

/* cercle gris → rouge au hover */
.product-card__cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #4b5563;
    background: #18181b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition:
        background-color 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.15s ease-out,
        box-shadow 0.18s ease-out;
    text-decoration: none;
    font-size: 0;
    line-height: 0;
    color: transparent;
}

/* icône cible */
.product-card__cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.product-card__cart-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Hover : cercle rouge */
.product-card__cart-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px) scale(1.03);

}

/* Empêche l'affichage du lien "View cart" collé après le bouton
   dans les listes de produits WooCommerce */
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product a.wc-forward {
    display: none !important;
}

/* =========================================
   Divers
   ========================================= */

.woocommerce ul.products li.product .star-rating {
    display: none !important;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 991.98px) {
    .archive.woocommerce .shop-archive-container {
        padding-top: 0 !important;
    }
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 991.98px) {
    .archive.woocommerce .shop-archive-container {
        padding-top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .woocommerce ul.products {
        margin: 0 -8px;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        padding: 0 8px;
    }

    .product-card__image-link img {
        height: 220px;
    }

    .product-card__body {
        padding: 0.85rem 0.95rem 1.1rem;
        min-height: 175px;
    }

    .product-card .woocommerce-loop-product__title {
        font-size: 0.9rem;
    }

    .product-card__cart {
        right: 16px;
        bottom: 16px;
    }

    .product-card__cart-btn {
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   SHOP HERO SECTION
   ========================================= */

/* Main Container: Full width, relative for overlay */
.tt-shop-hero {
    position: relative;
    /* Base background (fallback) */
    background: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    margin-bottom: 0;
    /* Reset margin inside carousel */
    overflow: hidden;
    color: #fff;
    min-height: 650px;
    /* Increased height as requested */
    height: 650px;
    /* Fixed height to prevent jumping */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Images for Slides */
.tt-slide-1 {
    /* PROMO: Custom User Image V2 (Bonus Laser) */
    /* COVER: Full width impact (User preference over Contain) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)), url('../images/hero-promo-v2.jpg');
    background-size: cover;
    background-position: center center;
}

.tt-slide-2 {
    /* SOFTWARE: Custom User Image (Target Tech App) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('../images/hero-software.png');
    background-size: cover;
    background-position: center center;
}

.tt-slide-3 {
    /* HARDWARE: Custom User Image (Gun & Target) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('../images/hero-hardware-v2.png');
    background-size: cover;
    background-position: center center;
}

/* CAROUSEL CONTROLS (PREMIUM) */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    /* Hidden by default */
    transition: all 0.3s ease;
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
    /* Show on hover */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(var(--accent-color-rgb), 0.8);
    border-color: var(--accent-color);
}

/* Indicators: Laser Beam Style */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 20px;
    /* Reduced from 40px for better contrast */
    height: 2px;
    /* Laser thin */
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    border-radius: 0;
    /* Sharp edges */
    border: none;
    margin: 0 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
}

.carousel-indicators .active {
    width: 60px;
    /* Expands */
    background-color: var(--accent-color);
    /* Laser Glow Effect */
    box-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
}

/* Overlay: Gradient for text readability */
.tt-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/*
 * SHOP MARQUEE BANNER
 * Infinite scrolling text strip
 */
.tt-shop-marquee {
    background: transparent;
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    margin-bottom: 2rem;
}

.marquee-wrapper {
    display: flex;
    width: fit-content;
    /* Allow content to dictate width (prevents squeeze) */
    animation: marquee-scroll 60s linear infinite;
    /* Slower for long text */
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 0 0 auto;
    /* Don't shrink */
    min-width: 100vw;
    /* Ensure at least screen width */
    justify-content: flex-start;
    padding-right: 2rem;
}

.marquee-content span {
    color: var(--accent-color);
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(var(--accent-color-rgb), 0.5);
}

.marquee-content .separator {
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.5;
    margin: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Badge: "NOUVELLE PROMO" style */
.tt-hero-badge {
    display: inline-block;
    background: rgba(var(--accent-color-rgb), 0.15);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

/* Title: Huge, Impactful */
.tt-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    /* text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); REMOVED for clean apple look */
}

.tt-hero-title .text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.4);
}

/* Subtitle */
.tt-hero-subtitle {
    font-size: 1.1rem;
    color: #d1d5db;
    /* Tailwind gray-300 */
    line-height: 1.6;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); REMOVED for clean apple look */
}

/* Responsive Scaling */
@media (max-width: 991px) {
    .tt-shop-hero {
        padding: 80px 20px;
    }

    .tt-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .tt-shop-hero {
        padding: 60px 15px;
    }

    .tt-hero-title {
        font-size: 1.8rem;
    }

    .tt-hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .tt-shop-hero .btn {
        width: 100%;
        /* Full width buttons on mobile */
    }
}

/* =========================================
   MY ACCOUNT CUSTOM STYLES
   ========================================= */

/* "Voir" Button - Orders Table */
body.woocommerce-account .my_account_orders .btn,
body.woocommerce-account .my_account_orders .btn.btn-primary {
    padding: 5px 20px !important;
    /* Increased width slightly */
    font-size: 0.8rem !important;
    /* Smaller text */
    min-width: 0 !important;
    /* Reset min-width */
    width: auto !important;
    /* Allow shrinking */
    line-height: 1.2 !important;
    height: auto !important;
    /* Reset height if fixed */
    display: inline-block !important;
    /* Ensure inline block behavior */
}

/* Center Actions and Total Headers */
body.woocommerce-account .my_account_orders th.woocommerce-orders-table__header-order-actions,
body.woocommerce-account .my_account_orders th.woocommerce-orders-table__header-order-total {
    text-align: center !important;
}

/* Align Action Column to Center (matches title) */
body.woocommerce-account .my_account_orders td.woocommerce-orders-table__cell-order-actions {
    text-align: center !important;
}

/* Order Details Thumbnails */
.woocommerce-table__product-name .order-item-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    /* Soft curve matching theme */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .woocommerce-table__product-name .order-item-thumbnail {
        width: 50px;
        height: 50px;
        margin-right: 12px !important;
    }
}

/* Back to Orders Button */
.btn-back-orders {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.btn-back-orders:hover {
    color: var(--accent-color);
    transform: translateX(-4px);
}

.btn-back-orders svg {
    transition: transform 0.3s ease;
}

.btn-back-orders:hover svg {
    transform: translateX(-2px);
}

@media (max-width: 767.98px) {

    body.woocommerce-account .my_account_orders .btn,
    body.woocommerce-account .my_account_orders .btn.btn-primary {
        width: 100% !important;
        /* Force full width on mobile */
        display: block !important;
        margin-bottom: 5px;
        text-align: center;
    }
}

/* 
========================================
   HOMEPAGE TRUST BADGES - NEON LASER
========================================
*/
.tt-section-reassurance {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.tt-reassurance-item {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.tt-reassurance-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tt-reassurance-icon svg {
    width: 36px;
    height: 36px;
    transition: all 0.4s ease;
}

.tt-reassurance-title {
    font-weight: 700;
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.tt-reassurance-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 1. Livraison - CYAN / BLUE */
.tt-section-reassurance .row>div:nth-child(1) .tt-reassurance-item:hover {
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2), inset 0 0 20px rgba(0, 243, 255, 0.05);
    border-color: #00f3ff;
    transform: translateY(-8px);
}

.tt-section-reassurance .row>div:nth-child(1) .tt-reassurance-icon {
    color: #00f3ff;
}

.tt-section-reassurance .row>div:nth-child(1) .tt-reassurance-item:hover .tt-reassurance-icon {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    color: #fff;
    border-color: #00f3ff;
}

/* 2. Paiement - NEON GREEN */
.tt-section-reassurance .row>div:nth-child(2) .tt-reassurance-item:hover {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2), inset 0 0 20px rgba(57, 255, 20, 0.05);
    border-color: #39ff14;
    transform: translateY(-8px);
}

.tt-section-reassurance .row>div:nth-child(2) .tt-reassurance-icon {
    color: #39ff14;
}

.tt-section-reassurance .row>div:nth-child(2) .tt-reassurance-item:hover .tt-reassurance-icon {
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
    color: #fff;
    border-color: #39ff14;
}

/* 3. Service Client - NEON YELLOW */
.tt-section-reassurance .row>div:nth-child(3) .tt-reassurance-item:hover {
    box-shadow: 0 0 30px rgba(255, 230, 0, 0.2), inset 0 0 20px rgba(255, 230, 0, 0.05);
    border-color: #ffe600;
    transform: translateY(-8px);
}

.tt-section-reassurance .row>div:nth-child(3) .tt-reassurance-icon {
    color: #ffe600;
}

.tt-section-reassurance .row>div:nth-child(3) .tt-reassurance-item:hover .tt-reassurance-icon {
    background: rgba(255, 230, 0, 0.1);
    box-shadow: 0 0 25px rgba(255, 230, 0, 0.4);
    color: #fff;
    border-color: #ffe600;
}

/* 4. Garantie - NEON RED */
.tt-section-reassurance .row>div:nth-child(4) .tt-reassurance-item:hover {
    box-shadow: 0 0 30px rgba(255, 7, 58, 0.2), inset 0 0 20px rgba(255, 7, 58, 0.05);
    border-color: #ff073a;
    transform: translateY(-8px);
}

.tt-section-reassurance .row>div:nth-child(4) .tt-reassurance-icon {
    color: #ff073a;
}

.tt-section-reassurance .row>div:nth-child(4) .tt-reassurance-item:hover .tt-reassurance-icon {
    background: rgba(255, 7, 58, 0.1);
    box-shadow: 0 0 25px rgba(255, 7, 58, 0.4);
    color: #fff;
    border-color: #ff073a;
}

/* 
========================================
   NAVBAR LOGO RESIZE
========================================
*/
.site-logo img,
.custom-logo-link img,
.custom-logo-link .custom-logo,
a.custom-logo-link img {
    max-height: 55px !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain !important;
}

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */
[data-theme="light"] .product-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[data-theme="light"] .product-card:hover {
    border-color: #E63946 !important;
    transform: translateY(-5px);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 0 15px rgba(230, 57, 70, 0.3),
        /* Red Glow */
        0 0 30px rgba(230, 57, 70, 0.15) !important;
    /* Wider Glow */
}

[data-theme="light"] .product-card__body {
    background: #ffffff !important;
}

[data-theme="light"] .product-card .woocommerce-loop-product__title {
    color: #111827 !important;
}

[data-theme="light"] .product-card__category {
    color: #6b7280 !important;
}

[data-theme="light"] .product-card__footer::before {
    background: #e5e7eb !important;
    transition: all 0.3s ease !important;
}

[data-theme="light"] .product-card:hover .product-card__footer::before {
    background: linear-gradient(90deg, transparent, #E63946, transparent) !important;
    box-shadow: 0 0 10px rgba(230, 57, 70, 0.4) !important;
    opacity: 1 !important;
}

[data-theme="light"] .product-card__price .price del {
    color: #9ca3af !important;
}

[data-theme="light"] .product-card__cart-btn {
    background: #f3f4f6 !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .product-card__cart-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Invert cart icon inside button unless hovered (icon is likely white) */
[data-theme="light"] .product-card__cart-btn:not(:hover) .product-card__cart-icon img {
    filter: invert(1);
}

/* Feature Cards (Home) */
[data-theme="light"] .feature-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .feature-card h3 {
    color: #111827 !important;
}

[data-theme="light"] .feature-card p {
    color: #4b5563 !important;
}

/* Sidebar Widgets */
[data-theme="light"] .shop-sidebar-widget-area .widget {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

[data-theme="light"] .shop-sidebar-widget-area .widget-title {
    color: #111827 !important;
}

[data-theme="light"] .widget_product_categories ul li a,
[data-theme="light"] .widget_layered_nav ul li a {
    color: #4b5563 !important;
}

[data-theme="light"] .widget_product_categories ul li a:hover,
[data-theme="light"] .widget_layered_nav ul li a:hover {
    color: var(--accent-color) !important;
    text-shadow: none !important;
}

[data-theme="light"] .widget_product_categories ul li .count,
[data-theme="light"] .widget_layered_nav ul li .count {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

[data-theme="light"] .widget_price_filter .ui-slider {
    background-color: #e5e7eb !important;
}

[data-theme="light"] .widget_price_filter button.button {
    border-color: #d1d5db !important;
    color: #4b5563 !important;
}

/* Search Bar */
[data-theme="light"] .shop-top-search .search-field,
[data-theme="light"] .shop-top-search .wp-block-search__input {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

/* Sort Dropdown */
[data-theme="light"] .woocommerce-ordering select.orderby,
[data-theme="light"] .woocommerce-ordering select {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
    /* Invert arrow chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23111827' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
}

[data-theme="light"] .woocommerce-ordering select option {
    background: #ffffff;
    color: #111827;
}

/* Pagination */
[data-theme="light"] .woocommerce-pagination ul li {
    border-color: transparent !important;
}

[data-theme="light"] nav.woocommerce-pagination ul li a {
    color: #6b7280 !important;
}

[data-theme="light"] nav.woocommerce-pagination ul li a:hover {
    color: var(--accent-color) !important;
    background: transparent !important;
}

[data-theme="light"] nav.woocommerce-pagination ul li span.current {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
}

/* =========================================
   FIX: Horizontal Scroll on mobile screen (344px)
   ========================================= */
@media (max-width: 400px) {

    /* Fix 1: Allow search bar to wrap */
    .wp-block-search__inside-wrapper {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .wp-block-search__inside-wrapper input {
        border-radius: 30px !important;
        border-right: 1px solid #333 !important;
        min-width: 100% !important;
    }

    .wp-block-search__inside-wrapper button {
        border-radius: 30px !important;
        border-left: 1px solid var(--accent-color) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix 2: Reduce header gap on very small screens */
    .site-header .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    /* Ensure container doesn't force width */
    .site-header .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Reset negative margins on product grid for perfect centering */
    .woocommerce ul.products {
        margin: 0 !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        padding: 0 6px !important;
        /* Symmetric padding */
    }
}