/* ================= RESET & BASE ================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2c3e50;
    --color-accent: #e67e22;
    --color-accent-dark: #d35400;
    --color-bg: #f5f5f5;
    --color-card: #ffffff;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-border: #e0e0e0;
    --color-success: #27ae60;
    --color-danger: #e74c3c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================= HEADER ================= */
.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}
.logo h1 span {
    color: var(--color-accent);
    font-weight: 400;
}

.main-nav ul {
    display: flex;
    gap: 28px;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    border-bottom-color: var(--color-accent);
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.cart-button {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-button:hover { background: var(--color-accent-dark); }
.cart-count {
    background: #fff;
    color: var(--color-accent);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.hero h2 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ================= PRODUCTS ================= */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
    transition: opacity 0.25s ease;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Bouton téléchargement vert sur la grille */
.product-info .btn-download {
    display: block;
    width: 100%;
    margin-top: 10px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    background: var(--color-success);
    color: #fff;
}
.product-info .btn-download:hover {
    background: #229954;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-add-cart {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-add-cart:hover { background: var(--color-accent-dark); }
.btn-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.badge-out {
    background: #bdc3c7;
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ================= CART DRAWER ================= */
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    z-index: 1600;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}
.cart-header h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
}
.cart-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
}
.cart-close:hover { color: var(--color-danger); }

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.cart-empty {
    text-align: center;
    color: var(--color-text-light);
    padding: 60px 20px;
}
.cart-empty p { font-size: 1.1rem; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}
.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
}
.cart-item-details { flex-grow: 1; }
.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.cart-item-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9rem;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.qty-btn {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--color-border); }
.qty-display {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
    align-self: flex-start;
    transition: var(--transition);
}
.cart-item-remove:hover { transform: scale(1.2); }

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.cart-total strong {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--color-primary);
}

.btn-checkout {
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
}
.btn-checkout:hover { background: var(--color-accent-dark); }
.btn-checkout:disabled { background: #ccc; cursor: not-allowed; }

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: #fff;
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}
.modal-header h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-text-light);
}
.modal-close:hover { color: var(--color-danger); }

/* ================= FORM ================= */
.checkout-form { padding: 20px; }

.form-row {
    display: flex;
    gap: 16px;
}
.form-row .form-group { flex: 1; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.order-summary {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.order-summary h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 10px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 3px 0;
}
.summary-total {
    border-top: 1px solid var(--color-border);
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.payment-notice {
    background: #eaf4ff;
    border: 1px solid #b8daff;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #004085;
}

.btn-paypal {
    width: 100%;
    background: #0070ba;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-paypal:hover { background: #005ea6; }
.btn-paypal:disabled { background: #ccc; cursor: not-allowed; }

.paypal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: #fff;
    color: #0070ba;
    border-radius: 50%;
    font-weight: 900;
    font-style: italic;
}

/* ================= SUCCESS MODAL ================= */
.modal-success {
    text-align: center;
    padding: 40px 30px;
    max-width: 440px;
}
.success-icon {
    width: 70px; height: 70px;
    background: var(--color-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
}
.modal-success h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.modal-success p {
    color: var(--color-text-light);
    margin-bottom: 24px;
}
.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.btn-secondary:hover { background: var(--color-border); }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--color-accent-dark); }

/* ================= FOOTER ================= */
.site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 0;
    margin-top: 60px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col h4 {
    font-family: var(--font-head);
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer-col p {
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h2 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
    .product-image { height: 160px; }
    .product-name { font-size: 0.95rem; }
    .form-row { flex-direction: column; gap: 0; }
    .header-container { padding: 0 12px; }
    .logo h1 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-info { padding: 10px; }
    .product-price { font-size: 1.1rem; }
    .btn-add-cart { padding: 6px 10px; font-size: 0.8rem; }
}

/* ================= TOAST NOTIFICATION ================= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-success);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--color-danger); }

/* ================= VARIANT SELECTOR ================= */
.variant-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    margin-bottom: 8px;
    background: var(--color-card);
    cursor: pointer;
    transition: var(--transition);
}
.variant-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

/* ================= PRODUCT META (brand, size) ================= */
.product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.product-brand {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-style: italic;
}
.product-size {
    font-size: 0.72rem;
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-light);
    font-weight: 600;
}

/* ================= FREE PRODUCT ================= */
.product-free {
    color: var(--color-success) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem !important;
}
.btn-download {
    background: var(--color-success) !important;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-download:hover {
    background: #229954 !important;
}

/* ================= CART VARIANT LABEL ================= */
.cart-item-variant {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 2px;
}

/* ================= PRODUCT FOOTER WITH VARIANT ================= */
.product-footer + .variant-select,
.product-footer + select {
    margin-top: 8px;
}

/* Bouton "Ajouter" sous le sélecteur de variante */
.product-info .btn-add-cart {
    width: 100%;
    margin-top: 4px;
}

/* ================= VARIANT IMAGE TRANSITION ================= */

/* Optionnel: gallery thumbnails (si vous voulez afficher les multiple images plus tard) */
.product-gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
}
.product-gallery-thumbs img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
    border-color: var(--color-accent);
}

/* ================= LOGO ================= */
.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}
.logo a {
    display: flex;
    align-items: center;
}

/* ================= FILTER BAR ================= */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 20px;
    position: sticky;
    top: 70px;
    z-index: 90;
}
.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-input, .filter-select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.88rem;
    background: #fff;
}
.filter-input { flex: 1; min-width: 120px; }
.filter-select { min-width: 130px; cursor: pointer; }
.price-range-filter { display: flex; align-items: center; gap: 6px; }
.filter-price { width: 80px !important; min-width: 80px !important; }
.price-separator { color: var(--color-text-light); }
.filter-reset {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: var(--transition);
}
.filter-reset:hover { background: var(--color-bg); color: var(--color-text); }

/* ================= PRODUCT CARD (clickable) ================= */
.product-card { cursor: pointer; }
.product-image-wrapper {
    overflow: hidden;
    height: 220px;
    background: #f0f0f0; /* Fond gris léger si l'image ne remplit pas tout */
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image-wrapper .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px; /* Petite marge pour que ça touche pas les bords */
    transition: transform 0.3s ease;
}
.product-card:hover .product-image { transform: scale(1.05); }
.product-card:hover .product-image { transform: scale(1.05); }

/* ================= PRODUCT DETAIL MODAL ================= */
.modal-product-detail {
    max-width: 900px;
    width: 100%;
}
.detail-content { padding: 0; }
.detail-layout {
    display: flex;
    gap: 30px;
    padding: 20px;
}
.detail-left { flex: 0 0 45%; }
.detail-right { flex: 1; }

.detail-gallery { display: flex; flex-direction: column; gap: 10px; }
.detail-main-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}
.detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}
.zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.zoom-btn:hover { background: rgba(0,0,0,0.8); }

.detail-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.detail-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}
.detail-thumb:hover, .detail-thumb.active {
    border-color: var(--color-accent);
}

.detail-price {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 14px;
}
.detail-price-row { margin-bottom: 10px; }
.detail-description {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-variantes { margin-bottom: 20px; }
.attr-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    margin-bottom: 10px;
}
.attr-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.detail-action { margin-bottom: 20px; }
.btn-download-detail {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--color-success);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
}
.btn-download-detail:hover { background: #229954; }

.detail-infos {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.detail-infos h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    margin-bottom: 10px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.info-item {
    font-size: 0.88rem;
    color: var(--color-text-light);
}
.info-item strong { color: var(--color-text); }

/* Quantité dans la fiche produit */
.detail-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.detail-quantity input {
    width: 70px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
}

/* Bouton précommande */
.btn-backorder {
    background: #e67e22 !important;
}

/* ================= ZOOM OVERLAY ================= */
.zoom-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 40px;
}
.zoom-overlay.open { opacity: 1; visibility: visible; }
.zoom-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}
.zoom-close {
    position: absolute;
    top: 20px; right: 30px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.zoom-close:hover { background: rgba(255,255,255,0.3); }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .detail-layout { flex-direction: column; }
    .detail-left { flex: 1 1 100%; }
    .detail-main-image { height: 280px; }
    .info-grid { grid-template-columns: 1fr; }
    .filter-container { gap: 6px; }
    .filter-input, .filter-select { font-size: 0.8rem; min-width: 100px; }
    .price-range-filter { width: 100%; }
    .filter-price { flex: 1; }
}

/* ================= PROMO BANNER ================= */
.promo-banner {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ================= SHIPPING OPTIONS ================= */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shipping-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.shipping-option:hover {
    border-color: var(--color-accent);
    background: rgba(230,126,34,0.05);
}
.shipping-option input[type="radio"] {
    margin: 0;
}
.shipping-option span {
    flex: 1;
    font-size: 0.9rem;
}
.shipping-option strong {
    font-size: 0.95rem;
    color: var(--color-primary);
}

/* Bouton liste d'attente */
.waitlist-button {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}
.waitlist-button:hover { background: rgba(255,255,255,0.1); }
.waitlist-count {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
}

/* Modal liste d'attente */
.waitlist-items { padding: 20px; max-height: 50vh; overflow-y: auto; }
.waitlist-footer { padding: 20px; border-top: 1px solid var(--color-border); }
.btn-waitlist { background: #e74c3c !important; }

/* ================= PROMO CODE ================= */
.promo-code-section {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}
.promo-code-input {
    width: calc(100% - 100px);
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.88rem;
}
.promo-code-btn {
    width: 90px;
    padding: 8px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}
.promo-code-btn:hover { background: #1a252f; }
.promo-code-message {
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 16px;
}

/* ================= CGV ================= */
.modal-cgv {
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
}
.cgv-content {
    padding: 20px 30px;
    line-height: 1.7;
    font-size: 0.9rem;
    color: var(--color-text);
}
.cgv-content h2 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}
.cgv-content h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin-top: 18px;
    margin-bottom: 8px;
    color: var(--color-primary);
}
.cgv-content p {
    margin-bottom: 8px;
}

/* ================= CGV CHECKBOX ================= */
.cgv-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}
.cgv-checkbox input[type="checkbox"] {
    margin-top: 3px;
}

/* ================= SUMMARY DISCOUNT ================= */
.summary-discount {
    color: var(--color-success);
    font-weight: 600;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .shipping-option {
        flex-wrap: wrap;
        font-size: 0.82rem;
    }
    .promo-code-input {
        width: calc(100% - 100px);
    }
    .cgv-content {
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}