
        :root {
            --c-black: #111111;
            --c-white: #ffffff;
            --c-gray-premium: #f5f5f5;
            --c-gray-text: #757575;
            --c-gray-border: #e5e5e5;
            --c-gold-luxe: #d4af37;
            --f-title: 'Outfit', 'Inter', sans-serif;
            --f-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --shadow-subtle: none;
            --shadow-medium: none;
            --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --transition-smooth: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        }
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; font-size: 16px; }
        body {
            font-family: var(--f-body);
            color: var(--c-black);
            background-color: var(--c-white);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }
        /* ====================================================
         * MASQUAGE DÉFINITIF DES ÉLÉMENTS NATIFS ASTRA/WP
         * Empêche le double header et les éléments parasites
         * ==================================================== */
        html, body {
            overflow-x: hidden !important;
            max-width: 100vw !important;
        }
        /* Masquer TOUS les headers et footers natifs WordPress/Astra */
        header#masthead,
        #masthead,
        .site-header,
        .ast-desktop .main-header-bar,
        .ast-main-header-wrap,
        .ast-primary-header-bar,
        footer#colophon,
        .site-footer,
        .ast-site-footer,
        .ast-footer-overlay,
        /* Masquer la barre d'administration WP si visible au client */
        #wpadminbar { 
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
        }
        /* Empêcher WordPress d'ajouter un margin-top pour la barre admin */
        html { margin-top: 0 !important; }
        body { margin-top: 0 !important; padding-top: 0 !important; }
        img { max-width: 100%; height: auto; display: block; }
        a { text-decoration: none; color: inherit; }
        h1, h2, h3, h4 { font-family: var(--f-title); letter-spacing: -0.03em; text-transform: uppercase; }

        .tsp-container { max-width: 1780px; margin: 0 auto; padding: 0 48px; }
        .tsp-container-narrow { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
        .section-padding { padding: 80px 0; }
        .section-title {
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.04em;
            text-align: center;
            margin-bottom: 48px;
        }
        @media (max-width: 768px) {
            .tsp-container, .tsp-container-narrow { padding: 0 24px; }
            .section-padding { padding: 48px 0; }
        }

        /* --- Global UI Components (Buttons — Nike Clean System) --- */
        .tsp-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 14px 28px;
            border-radius: 999px;
            font-weight: 600;
            font-size: 0.875rem;
            border: 1px solid transparent;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            text-decoration: none;
            white-space: nowrap;
        }
        .tsp-btn--primary {
            background-color: var(--c-black);
            color: var(--c-white);
            border-color: var(--c-black);
        }
        .tsp-btn--primary:hover {
            background-color: #222;
            border-color: #222;
        }
        .tsp-btn--secondary {
            background-color: var(--c-white);
            color: var(--c-black);
            border: 1px solid #e0e0e0;
        }
        .tsp-btn--secondary:hover {
            border-color: var(--c-black);
            background-color: var(--c-white);
        }
        .tsp-btn--outline-white {
            background-color: transparent;
            color: var(--c-white);
            border: 1px solid rgba(255,255,255,0.7);
        }
        .tsp-btn--outline-white:hover {
            background-color: rgba(255,255,255,0.1);
            border-color: var(--c-white);
        }
        .tsp-btn--gold {
            background-color: var(--c-gold-luxe);
            color: var(--c-black);
            border-color: var(--c-gold-luxe);
            font-weight: 700;
        }
        .tsp-btn--gold:hover {
            background-color: #c7a130;
            border-color: #c7a130;
        }
        .tsp-btn--full { width: 100%; padding-top: 18px; padding-bottom: 18px; font-size: 1rem; }

        <?php if ($type === 'home'): ?>
        /* ============================ HOME PAGE STYLES ============================ */
        .hero-section {
            height: 75vh;
            min-height: 500px;
            position: relative;
            overflow: hidden;
        }
        .hero-carousel { display: flex; width: 300%; height: 100%; transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1); }
        .hero-slide { width: 33.333%; height: 100%; position: relative; }
        .hero-slide-bg {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            z-index: 1;
            transform: scale(1.1);
            animation: hero-kenburns 24s infinite;
        }
        @keyframes hero-kenburns {
            0%, 100% { transform: scale(1.1) translate(0, 0); }
            50% { transform: scale(1.15) translate(-1%, 1%); }
        }
        .hero-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.05); /* Pratiquement transparent, éclat naturel */
            z-index: 2;
        }
        .hero-details-container {
            background-color: var(--c-white);
            text-align: center;
            padding: 48px 24px 80px;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .hero-title {
            font-size: clamp(3.5rem, 8vw, 6.5rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.05em;
            line-height: 0.9;
            margin-bottom: 16px;
            color: var(--c-black);
            font-family: var(--f-title);
        }
        .hero-subtitle {
            font-family: var(--f-body);
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            font-weight: 500;
            line-height: 1.5;
            margin-bottom: 28px;
            max-width: 650px;
            color: var(--c-black);
        }
        .hero-progress-bar {
            position: absolute;
            bottom: 20px;
            left: 48px;
            width: 200px;
            height: 2px;
            background: rgba(0,0,0,0.1);
            z-index: 4;
        }
        .hero-progress-bar-inner {
            height: 100%;
            background: var(--c-black);
            width: 0;
        }

        /* --- Category Showcase --- */
        .category-showcase { overflow: hidden; padding-bottom: 80px; }
        .category-scroller {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            scrollbar-width: none;
            padding: 10px 48px;
            margin: 0 -48px;
        }
        .category-scroller::-webkit-scrollbar { display: none; }
        .category-card {
            flex: 0 0 340px;
            aspect-ratio: 4/5;
            position: relative;
            border-radius: 0;
            overflow: hidden;
            display: flex;
            align-items: flex-end;
            padding: 24px;
            color: var(--c-white);
            transition: transform var(--transition-smooth);
        }
        .category-card:hover { transform: scale(1.01); }
        .category-card-bg { position: absolute; top:0;left:0;width:100%;height:100%;object-fit:cover;z-index:1;transition:transform .8s cubic-bezier(0.165, 0.84, 0.44, 1); }
        .category-card:hover .category-card-bg { transform: scale(1.05); }
        .category-card-overlay { position: absolute; top:0;left:0;width:100%;height:100%;background:linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 60%);z-index:2; }
        .category-card-content { position: relative; z-index: 3; }
        .category-card-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; text-transform: uppercase; margin-bottom: 6px; }
        .category-card-link { font-family: var(--f-body); font-weight: 600; font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid var(--c-white); padding-bottom: 2px; }

        /* --- Ventes Privées --- */
        .ventes-privees { background-color: var(--c-black); color: var(--c-white); }
        .vp-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            align-items: center;
            gap: 60px;
        }
        .vp-content .pre-title { font-size: 0.95rem; font-weight: 700; color: var(--c-gold-luxe); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
        .vp-content .vp-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.04em; text-transform: uppercase; line-height: 0.95; margin-bottom: 24px; }
        .vp-content .vp-desc { font-family: var(--f-body); font-size: 1.05rem; line-height: 1.6; color: #aaa; margin-bottom: 40px; max-width: 500px; }
        .countdown-timer { display: flex; gap: 24px; margin-bottom: 40px; }
        .timer-box { text-align: center; }
        .timer-value { font-family: var(--f-title); font-size: 3.2rem; font-weight: 800; color: var(--c-gold-luxe); line-height: 1; }
        .timer-label { font-family: var(--f-body); font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }
        .vp-image-wrapper { border-radius: 0; overflow: hidden; }
        @media (max-width: 900px) {
            .vp-grid { grid-template-columns: 1fr; }
            .vp-image-wrapper { order: -1; margin-bottom: 40px; }
        }

        /* --- Product Sliders (Esthétique Premium Flat) --- */
        .product-slider-section { overflow: hidden; padding: 80px 0; }
        .product-slider-wrapper { position: relative; }
        .product-scroller {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            padding: 10px 48px;
            margin: 0 -48px;
            scroll-behavior: smooth;
        }
        .product-scroller::-webkit-scrollbar { display: none; }
        .product-card {
            flex: 0 0 240px;           /* réduit 340→240 : Nike compact */
            scroll-snap-align: start;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
        }
        .product-image-wrapper {
            aspect-ratio: 1 / 1;          /* carré Nike — uniforme partout */
            background-color: #F5F5F5;
            border-radius: 0;
            overflow: hidden;
            margin-bottom: 0;
            width: 100%;
            display: block;
            flex-shrink: 0;
        }
        .product-image-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.28s ease;
        }
        .product-card:hover .product-image-wrapper img {
            opacity: 0.88;
        }
        .product-image-wrapper img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform var(--transition-smooth);
        }
        .product-card:hover .product-image-wrapper img { transform: scale(1.03); }
        .product-info {
            display: flex;
            flex-direction: column;
            gap: 0;
            text-align: left;
            padding: 10px 0 4px 0;
            min-height: 90px;
        }
        /* ===== PRODUCT CARD — STYLE NIKE EXACT ===== */
        .product-swatches-dots {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 8px 0 6px 0;
            min-height: 14px;
        }
        .product-swatch-dot {
            width: 13px;
            height: 13px;
            border-radius: 50%;
            border: 1px solid #d1d5db;
            display: inline-block;
            flex-shrink: 0;
            box-shadow: 0 1px 2px rgba(0,0,0,0.06);
            cursor: pointer;
            transition: transform 0.15s ease, border-color 0.15s ease;
        }
        .product-swatch-dot:hover, .product-swatch-dot.active {
            transform: scale(1.2);
            border-color: #111111;
        }
        .product-badge-tag {
            font-family: var(--f-body);
            font-size: 13px;
            font-weight: 600;
            color: #d9381e; /* Rouge Nike officiel éclatant */
            margin: 0 0 3px 0;
            line-height: 1.2;
        }
        .product-name {
            font-family: var(--f-body);
            font-size: 15px;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: #111111;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin: 0 0 2px 0;
        }
        .product-category {
            font-family: var(--f-body);
            font-size: 13px;
            font-weight: 400;
            color: #707072;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 0 0 6px 0;
            line-height: 1.3;
        }
        .product-price {
            font-family: var(--f-body);
            font-size: 14px;
            font-weight: 600;
            color: #111111;
            margin-top: auto;
            line-height: 1.3;
        }
        .slider-nav {
            position: absolute;
            top: -64px;
            right: 48px;
            display: flex;
            gap: 8px;
            pointer-events: none;
        }
        .slider-btn {
            width: 40px; height: 40px;
            border-radius: 50%;
            background: var(--c-white);
            border: 1px solid #e0e0e0;
            display: flex;
            align-items: center; justify-content: center;
            cursor: pointer;
            pointer-events: all;
            transition: border-color 0.2s ease, background 0.2s ease;
            flex-shrink: 0;
        }
        .slider-btn:hover { border-color: var(--c-black); background: var(--c-white); }
        .slider-btn svg { width: 16px; height: 16px; color: var(--c-black); stroke-width: 1.5; }
        @media (max-width: 768px) {
            .slider-nav { display: none; }
            .product-scroller { padding: 10px 24px; margin: 0 -24px; }
            .product-card { flex: 0 0 200px; }
        }
        <?php endif; ?>

        <?php if ($type === 'category'): ?>
        /* ============================ CATEGORY PAGE STYLES ============================ */
        .cat-hero {
            padding: 60px 0;
            text-align: center;
            border-bottom: 1px solid var(--c-gray-border);
            margin-bottom: 40px;
        }
        .cat-hero-title {
            font-size: clamp(2.5rem, 6vw, 4.2rem);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: -0.04em;
            margin-bottom: 12px;
        }
        .cat-hero-desc {
            font-family: var(--f-body);
            font-size: 1.05rem;
            color: var(--c-gray-text);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.5;
        }
        .cat-nav-pills { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
        .cat-pill {
            padding: 8px 22px;
            border-radius: 999px;
            border: 1px solid transparent;
            background-color: var(--c-gray-premium);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--c-black);
            transition: all var(--transition-fast);
            cursor: pointer;
        }
        .cat-pill:hover, .cat-pill.active {
            background-color: var(--c-black);
            color: var(--c-white);
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px 16px;            /* 16px horizontal — standard Nike */
            margin-bottom: 60px;
        }
        /* Les cartes dans la grille ne doivent PAS hériter du flex:0 0 340px du slider */
        .product-grid .product-card {
            flex: none !important;
            width: 100% !important;
            min-width: 0 !important;
            scroll-snap-align: unset !important;
        }
        .product-grid .product-image-wrapper {
            aspect-ratio: 1 / 1;       /* carré Nike — uniforme dans la grille */
        }
        @media (max-width: 1024px) {
            .product-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 28px 12px;
            }
        }
        @media (max-width: 768px) {
            .hero-header {
                justify-content: space-between;
                padding: 0 10px;
                top: 40px; /* laisser de la place pour le marquee */
            }
            .hero-logo {
                position: static !important;
                transform: none !important;
                font-size: 1.1rem;
                letter-spacing: 1px;
            }
            .hero-actions {
                gap: 5px;
            }
            .hero-icon { width: 28px; height: 28px; }
            .hero-icon svg { width: 18px; height: 18px; }
            .hero-lang { font-size: 10px; margin-right: 2px; }
            /* hide the spacer on mobile */
            .hero-header-spacer { display: none !important; }
        }
        /* Product card styles are inherited from homepage slider styles */
        #tsp-infinite-scroll-sentinel { text-align:center; padding:40px 0; }
        .tsp-loading-spinner {
            display: none;
            width: 32px; height: 32px;
            border: 2px solid var(--c-gray-border);
            border-top-color: var(--c-black);
            border-radius: 50%;
            margin: 0 auto;
            animation: tsp-spin 0.8s linear infinite;
        }
        @keyframes tsp-spin { to { transform: rotate(360deg); } }
        <?php endif; ?>

        <?php if ($type === 'product'): ?>
        /* ========================== PRODUCT PAGE STYLES ========================== */
        .tsp-product-page-wrapper {
            font-family: var(--f-body);
            color: var(--c-black);
            background-color: var(--c-white);
            padding: 20px 0 100px;
            -webkit-font-smoothing: antialiased;
        }
        /* Kill ALL default WooCommerce product wrappers that bleed through */
        .tsp-product-page-wrapper .woocommerce-breadcrumb,
        .tsp-product-page-wrapper .related.products,
        .tsp-product-page-wrapper .woocommerce-tabs,
        .tsp-product-page-wrapper nav.woocommerce-breadcrumb,
        .tsp-product-page-wrapper .up-sells,
        .tsp-product-page-wrapper .cross-sells,
        .tsp-product-page-wrapper .ast-woocommerce-container > .product > .summary,
        .tsp-product-page-wrapper .ast-woocommerce-container > .product > .images {
            display: none !important;
        }
        
        .product-page-main {
            display: grid;
            grid-template-columns: 55fr 45fr;
            gap: 48px;
            align-items: start;
            padding: 0 0 60px;
        }

        /* DUAL COLUMN GALLERY - SIDEBAR THUMBNAILS ON LEFT & LARGE MAIN ON RIGHT */
        .product-gallery {
            position: sticky;
            top: 100px;
            height: fit-content;
        }
        .tsp-desktop-gallery-wrapper {
            display: grid;
            grid-template-columns: 80px 1fr;
            gap: 16px;
        }
        .tsp-gallery-thumbnails {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 620px;
            overflow-y: auto;
            scrollbar-width: none;
        }
        .tsp-gallery-thumbnails::-webkit-scrollbar {
            display: none;
        }
        .tsp-thumb-image {
            width: 80px;
            height: 80px;
            background-color: var(--c-gray-premium);
            border: 1.5px solid transparent;
            cursor: pointer;
            overflow: hidden;
            transition: border-color var(--transition-fast);
        }
        .tsp-thumb-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .tsp-thumb-image:hover, .tsp-thumb-image.tsp-active {
            border-color: var(--c-black);
        }
        .tsp-gallery-main-image {
            width: 100%;
            aspect-ratio: 4/5;
            background-color: var(--c-gray-premium);
            cursor: zoom-in;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .tsp-gallery-main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-smooth);
        }
        .tsp-gallery-main-image:hover img {
            transform: scale(1.02);
        }

        .tsp-gallery-grid-mobile-container {
            display: none;
        }

        /* ALERTE STOCK */
        .tsp-stock-warning {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #df4e26;
            font-size: 13px;
            font-weight: 500;
            margin: 12px 0 16px 0;
            font-family: var(--f-body);
        }
        .tsp-stock-warning svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            stroke-width: 2px;
        }

        /* STICKY BUY BOX */
        .product-details {
            position: sticky;
            top: 80px;
            height: fit-content;
            padding-left: 0;
            max-width: 520px;
        }

        .product-category-name {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #df4e26;
            margin: 0 0 6px 0;
            font-family: var(--f-body);
        }

        .product-details .product-title {
            font-family: var(--f-body) !important;
            font-size: 22px !important;
            font-weight: 500 !important;
            letter-spacing: -0.01em !important;
            line-height: 1.2 !important;
            margin: 0 0 4px 0 !important;
            text-transform: none !important;
            color: var(--c-black);
        }

        .product-subtitle-desc {
            font-family: var(--f-body);
            font-size: 14px;
            font-weight: 400;
            color: #6d6d6d;
            margin: 0 0 12px 0;
            line-height: 1.4;
        }

        .product-price-display {
            font-size: 18px;
            font-weight: 500;
            color: var(--c-black);
            margin-bottom: 20px;
            font-family: var(--f-body);
        }

        .product-price-display del {
            color: #aaa;
            font-size: 15px;
            font-weight: 400;
            margin-right: 6px;
        }

        .product-price-display ins {
            text-decoration: none;
        }

        /* MASQUER LE FORMULAIRE WOOCOMMERCE TRADITIONNEL */
        form.cart table.variations {
            display: none !important;
        }
        
        /* GRILLE DE TAILLES */
        .tsp-custom-variations-wrapper {
            margin-bottom: 20px;
        }

        .tsp-custom-variation-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .tsp-custom-variation-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--c-black);
        }

        .tsp-size-guide-link {
            font-size: 13px;
            color: var(--c-gray-text);
            text-decoration: underline;
            cursor: pointer;
            transition: color var(--transition-fast);
        }
        .tsp-size-guide-link:hover {
            color: var(--c-black);
        }

        .tsp-custom-size-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
        }

        /* GRILLE DE COULEURS EN PETITS CERCLES PLEINS (1 OU 2 COULEURS) */
        .tsp-custom-color-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin: 10px 0 16px 0;
            align-items: center;
        }

        .tsp-color-circle-btn {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 2px solid #e0e0e0;
            cursor: pointer;
            position: relative;
            outline: none;
            padding: 0;
            box-shadow: 0 1px 4px rgba(0,0,0,0.08);
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .tsp-color-circle-btn:hover:not(.disabled) {
            transform: scale(1.15);
            border-color: #111;
        }

        .tsp-color-circle-btn.active {
            border-color: #111 !important;
            transform: scale(1.18);
            box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111 !important;
        }

        .tsp-color-circle-btn.disabled {
            opacity: 0.35;
            cursor: not-allowed;
            filter: grayscale(1);
        }

        .tsp-color-circle-btn.disabled::after {
            content: "";
            position: absolute;
            top: 50%;
            left: -10%;
            width: 120%;
            height: 1.5px;
            background-color: #ff0000;
            transform: rotate(-45deg);
        }

        .tsp-color-circle-btn .tsp-color-tooltip {
            visibility: hidden;
            background-color: #111;
            color: #fff;
            text-align: center;
            border-radius: 4px;
            padding: 4px 8px;
            position: absolute;
            z-index: 10;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.2s;
            font-size: 11px;
            white-space: nowrap;
            pointer-events: none;
            font-weight: 500;
        }

        .tsp-color-circle-btn:hover .tsp-color-tooltip {
            visibility: visible;
            opacity: 1;
        }

        .tsp-size-option-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 44px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 400;
            background-color: var(--c-white);
            cursor: pointer;
            transition: all var(--transition-fast);
            position: relative;
            overflow: hidden;
            color: var(--c-black);
            font-family: var(--f-body);
        }
        
        .tsp-size-option-btn:hover:not(.disabled) {
            border-color: var(--c-black);
        }
        
        .tsp-size-option-btn.active {
            border: 2px solid var(--c-black) !important;
            font-weight: 700;
        }
        
        /* Ruptures de stock */
        .tsp-size-option-btn.disabled {
            color: #b5b5b5;
            border-color: #f5f5f5;
            background-color: #fafafa;
            cursor: not-allowed;
        }
        .tsp-size-option-btn.disabled::after {
            content: "";
            position: absolute;
            width: 150%;
            height: 1px;
            background-color: #dcdcdc;
            transform: rotate(20deg);
            transform-origin: center;
        }

        /* ACTIONS D'ACHAT — NIKE CLEAN PILL SYSTEM */
        .tsp-action-buttons-wrapper {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 24px;
        }

        .tsp-btn-add-to-cart {
            width: 100%;
            height: 52px;
            border-radius: 999px;
            background-color: var(--c-black);
            color: var(--c-white);
            font-size: 15px;
            font-weight: 600;
            text-transform: none;
            border: 1px solid var(--c-black);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, border-color 0.2s ease;
            letter-spacing: 0.01em;
        }

        .tsp-btn-add-to-cart:hover {
            background-color: #222;
            border-color: #222;
        }

        .tsp-btn-favorite {
            width: 100%;
            height: 52px;
            border-radius: 999px;
            background-color: var(--c-white);
            color: var(--c-black);
            font-size: 15px;
            font-weight: 600;
            text-transform: none;
            border: 1px solid #e0e0e0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: border-color 0.2s ease;
        }

        .tsp-btn-favorite:hover {
            border-color: var(--c-black);
        }

        .tsp-btn-favorite svg {
            width: 18px;
            height: 18px;
            stroke-width: 1.5;
        }

        /* DESCRIPTION (inside accordion) */
        .product-description-container {
            padding: 0;
            margin: 0;
        }
        
        .product-description-container p {
            font-size: 14px;
            line-height: 1.65;
            color: var(--c-gray-text);
            margin-bottom: 12px;
        }
        .product-description-container ul {
            margin: 0;
            padding-left: 20px;
            font-size: 14px;
            color: var(--c-gray-text);
            line-height: 1.65;
        }
        .product-description-container li {
            margin-bottom: 6px;
        }

        /* ACCORDÉONS */
        .tsp-accordion-group {
            border-top: 1px solid #e8e8e8;
            margin-top: 20px;
        }

        .tsp-accordion-item {
            border-bottom: 1px solid #e8e8e8;
        }

        .tsp-accordion-trigger {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            width: 100%;
            background: none !important;
            border: none;
            cursor: pointer;
            text-align: left;
            color: var(--c-black) !important;
            outline: none;
            box-shadow: none;
            -webkit-appearance: none;
        }
        .tsp-accordion-trigger:hover,
        .tsp-accordion-trigger:focus,
        .tsp-accordion-trigger:active,
        .tsp-accordion-trigger:focus-visible {
            background: none !important;
            background-color: transparent !important;
            color: var(--c-black) !important;
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }
        /* Neutraliser tout hover bleu WooCommerce / Astra sur les boutons */
        #theshopping-main-content button:hover,
        #theshopping-main-content button:focus,
        #theshopping-main-content a:hover,
        .tsp-product-page-wrapper button:hover,
        .tsp-product-page-wrapper button:focus {
            outline: none !important;
            box-shadow: none !important;
        }
        
        .tsp-accordion-trigger span {
            font-size: 14px;
            font-weight: 500;
            font-family: var(--f-body);
        }

        .tsp-accordion-trigger svg {
            width: 16px;
            height: 16px;
            transition: transform 0.25s ease;
            stroke-width: 1.5;
            color: var(--c-black);
        }
        
        .tsp-accordion-item.active .tsp-accordion-trigger svg {
            transform: rotate(180deg);
        }
        
        .tsp-accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
            padding: 0;
            font-size: 14px;
            line-height: 1.6;
            color: var(--c-gray-text);
        }
        
        .tsp-accordion-item.active .tsp-accordion-content {
            max-height: 2000px;
            padding-bottom: 16px;
        }
        
        .tsp-accordion-content ul {
            margin: 0;
            padding-left: 20px;
        }
        .tsp-accordion-content li {
            margin-bottom: 8px;
        }

        /* ZONE TECHNIQUE CARACTÉRISTIQUES */
        .tsp-tech-zone { padding: 0; }
        .tsp-specs-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
        .tsp-specs-table tr { border-bottom: 1px solid #f0f0f0; }
        .tsp-specs-table tr:last-child { border-bottom: none; }
        .tsp-spec-label { padding: 8px 12px 8px 0; color: #707072; font-weight: 500; width: 38%; vertical-align: top; }
        .tsp-spec-value { padding: 8px 0; color: #111111; font-weight: 400; }

        /* AVIS CLIENTS */
        .tsp-reviews-summary { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
        .tsp-reviews-avg { display: flex; align-items: center; gap: 8px; }
        .tsp-avg-score { font-size: 1.6rem; font-weight: 700; color: #111; line-height: 1; }
        .tsp-stars-display, .tsp-review-stars { display: flex; gap: 2px; align-items: center; }
        .tsp-review-count { font-size: 0.8rem; color: #707072; }
        .tsp-reviews-list { display: flex; flex-direction: column; gap: 16px; }
        .tsp-review-item { padding-bottom: 14px; border-bottom: 1px solid #f5f5f5; }
        .tsp-review-item:last-child { border-bottom: none; }
        .tsp-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
        .tsp-reviewer-name { font-size: 0.83rem; font-weight: 600; color: #111; }
        .tsp-review-date { font-size: 0.75rem; color: #aaa; margin-left: auto; }
        .tsp-review-text { font-size: 0.82rem; color: #444; margin: 0; line-height: 1.55; }

        /* ZOOM MODAL */
        .tsp-zoom-modal {
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%;
            background-color: rgba(255, 255, 255, 0.45);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            z-index: 999999;
            display: flex; 
            align-items: center; 
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            cursor: zoom-out;
        }
        
        .tsp-zoom-modal.tsp-visible { 
            opacity: 1; 
            visibility: visible; 
        }
        
        .tsp-zoom-modal img { 
            max-width: 90vw; 
            max-height: 90vh; 
            border-radius: 0; 
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        }

        /* RESPONSIVE LAYOUT */
        @media (max-width: 960px) {
            .product-page-main { 
                grid-template-columns: 1fr; 
                gap: 32px; 
            }
            
            .product-gallery { 
                position: static; 
                height: auto; 
            }
            
            .tsp-desktop-gallery-wrapper {
                display: none !important;
            }
            
            .tsp-gallery-grid-mobile-container {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 12px;
                scroll-behavior: smooth;
                scrollbar-width: none;
                margin: 0 -24px;
                padding: 0 24px 10px 24px;
                width: calc(100% + 48px);
            }
            
            .tsp-gallery-grid-mobile-container::-webkit-scrollbar {
                display: none;
            }
            
            .tsp-gallery-item {
                flex: 0 0 85%; /* Peek layout exact ! */
                scroll-snap-align: start;
                background-color: var(--c-gray-premium);
                aspect-ratio: 1;
                overflow: hidden;
            }
            .tsp-gallery-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            
            .product-details {
                position: static;
                padding-left: 0;
            }
        }
        
        @media (max-width: 600px) {
            .tsp-container-narrow {
                padding: 0 24px;
            }
            .tsp-gallery-grid-mobile-container {
                margin: 0 -24px;
                padding: 0 24px 10px 24px;
                width: calc(100% + 48px);
            }
        }
        <?php endif; ?>
    

        /* Masquage forcé de TOUS les anciens headers natifs */
        header#masthead, .site-header, .storefront-primary-navigation, .topbar {
            display: none !important;
            opacity: 0 !important;
            height: 0 !important;
            visibility: hidden !important;
        }

        .hero-container {
            position: relative;
            width: 100%;
            max-width: 100%;
            height: 100vh;
            margin: 0;
            padding: 0;
            background-color: #000;
        }

        /* Background Hero (Slider) */
        .hero-slider {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            z-index: 1;
            background: #000;
        }
        .hero-slide {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            object-fit: cover;
            object-position: center;
        }
        .hero-slide.active {
            opacity: 1;
        }
        
        /* Overlay Dégradé */
        .hero-overlay {
            position: absolute;
            bottom: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
            z-index: 2;
            pointer-events: none;
        }
        
        /* Contenu Central */
        .hero-content {
            position: absolute;
            top: 52%; left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            text-align: center;
            width: 100%;
        }
        .hero-subtitle {
            font-family: var(--font-sans, sans-serif);
            text-transform: uppercase;
            letter-spacing: 4px;
            color: #ffffff !important;
            font-size: 11px;
            margin-bottom: 15px;
            display: block !important;
            text-align: center !important;
            margin-left: auto !important;
            margin-right: auto !important;
            text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.9);
        }
        .hero-title {
            font-family: var(--font-serif, serif);
            font-style: italic;
            color: #ffffff !important;
            font-size: clamp(3.5rem, 14vw, 6.5rem);
            margin: 0 0 30px 0;
            line-height: 1;
            font-weight: 400;
            text-align: center !important;
            text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 4px 30px rgba(0,0,0,0.6);
        }
        .hero-cta {
            display: inline-block;
            background: transparent;
            border: 1px solid #ffffff;
            border-radius: 50px;
            color: #ffffff !important;
            padding: 12px 36px;
            font-family: var(--font-sans, sans-serif);
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 2px;
            text-decoration: none;
            transition: background 0.3s ease, color 0.3s ease;
        }
        .hero-cta:hover {
            background: #ffffff;
            color: #000000 !important;
        }
    

        @media (max-width: 768px) {
            section[style*="display: grid"] {
                grid-template-columns: 1fr !important;
            }
            section[style*="display: grid"] a, 
            section[style*="display: grid"] > div {
                height: 45vh !important;
            }
        }
    

        .tsp-size-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 9999999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .tsp-size-modal-overlay.active {
            display: flex;
        }
        .tsp-size-modal-content {
            background: #fff;
            width: 100%;
            max-width: 580px;
            border-radius: 12px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
            overflow: hidden;
            animation: tspPop 0.25s ease-out;
        }
        @keyframes tspPop {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .tsp-size-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid #eee;
        }
        .tsp-size-modal-header h3 {
            margin: 0;
            font-size: 15px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #111;
        }
        .tsp-size-modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #888;
            line-height: 1;
        }
        .tsp-size-modal-close:hover { color: #000; }
        .tsp-size-modal-body {
            padding: 24px;
            max-height: 75vh;
            overflow-y: auto;
        }
        .tsp-guide-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
            text-align: center;
        }
        .tsp-guide-table th {
            background: #111;
            color: #fff;
            padding: 8px 10px;
            font-weight: 600;
        }
        .tsp-guide-table td {
            padding: 8px 10px;
            border-bottom: 1px solid #eee;
            color: #333;
        }
        .tsp-guide-table tr:nth-child(even) {
            background: #fbfbfb;
        }
        .tsp-dimension-badge-box {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        .tsp-dimension-badge-box svg {
            width: 20px;
            height: 20px;
            stroke: #111;
            flex-shrink: 0;
        }
        .tsp-dimension-text {
            font-size: 13px;
            color: #222;
        }
        .tsp-dimension-text strong {
            color: #000;
        }
        
