/* ============================================================
   VIRILACCESSORIES — shop.css
   Boutique · Carousels · Popups · Panier
   ============================================================ */

:root {
    --dark:   #292a29;
    --gold:   #906543;
    --gold2:  #a07654;
    --accent: #FF9E6D;
    --navy:   #1A2238;
    --light:  #f7f5f2;
    --white:  #ffffff;
    --border: #e8e0d5;
}

/* ============================================================
   SECTION BOUTIQUE
   ============================================================ */

.shop-section {
    background: var(--white);
    padding: 5rem 0;
    max-width: none;
}

.shop-header-integrated {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 5%;
}

.shop-header-integrated h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 0.6rem;
}

.shop-header-integrated p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--gold);
}

/* Trait déco */
.shop-header-integrated .section-divider {
    width: 50px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    margin: 0.8rem auto 0;
}

/* Cacher les anciens éléments */
.shop-container,
.filters,
.products-header,
.products-grid,
.product-name-overlay,
.btn-view-product,
.product-info { display: none !important; }

/* ============================================================
   BLOCS CATÉGORIE
   ============================================================ */

.category-block { margin-bottom: 4rem; }

.category-block-header {
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 1.8rem;
    gap: 1.2rem;
}

.category-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.category-block-title::after {
    content: '';
    display: inline-block;
    width: 36px; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    margin-left: 1rem;
    vertical-align: middle;
}

/* ============================================================
   CAROUSEL
   ============================================================ */

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 5% 1.5rem;
    cursor: grab;
    user-select: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Boutons nav */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.96);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 14px rgba(26,34,56,0.14);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    background: var(--navy);
    color: white;
    box-shadow: 0 5px 18px rgba(26,34,56,0.28);
    transform: translateY(-60%) scale(1.07);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn svg {
    width: 17px; height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {
    flex: 0 0 248px;
    width: 248px;
    background: var(--white);
    border: none;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    position: relative;
    transition: transform 0.32s ease;
}

.product-card:hover { transform: translateY(-5px); }

.product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--light);
    border-radius: 0;
}

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.product-card:hover .product-image img { transform: scale(1.07); }

/* Badge perso */
.badge-perso {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--navy);
    color: white;
    padding: 0.28rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    z-index: 10;
    font-family: 'Cinzel', serif;
}

/* Icône panier survol */
.product-cart-icon {
    position: absolute;
    top: 10px; right: 10px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.25s, background 0.25s;
    backdrop-filter: blur(4px);
}

.product-card:hover .product-cart-icon { opacity: 1; }

.product-cart-icon:hover { background: var(--accent); }

.product-cart-icon svg {
    width: 16px; height: 16px;
    stroke: var(--dark);
    fill: none;
    stroke-width: 1.8;
    pointer-events: none;
}

.product-cart-icon:hover svg { stroke: white; }

/* Overlay accent bas d'image */
.product-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.product-card:hover .product-image::after { transform: scaleX(1); }

/* Info sous image */
.product-info-bottom {
    padding: 0.9rem 0.1rem 0.4rem;
    position: relative;
}

.product-info-bottom h3 {
    font-family: 'Playfair Display', serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.22rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info-bottom .product-subtitle {
    font-size: 0.78rem;
    color: var(--gold);
    margin: 0 0 0.35rem;
    font-style: italic;
}

.product-info-bottom .product-price {
    font-size: 0.92rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

/* ============================================================
   SÉPARATEUR
   ============================================================ */

.category-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0.5rem 5% 4rem;
}

/* ============================================================
   POPUP OVERLAY
   ============================================================ */

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,34,56,0.82);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 0;
    backdrop-filter: blur(3px);
}

.popup-overlay.active { display: flex; }

.popup-content {
    background: var(--white);
    width: 90%;
    max-width: 980px;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    animation: popupIn 0.32s ease;
}

@keyframes popupIn {
    from { transform: translateY(35px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover { background: var(--accent); }

.popup-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
}

/* Galerie popup */
.popup-gallery { position: relative; }

.gallery-main {
    width: 100%; height: 480px;
    background: var(--light);
    overflow: hidden;
}

.gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.25s;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    color: var(--dark);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.gallery-nav:hover { background: var(--accent); color: white; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.dot:hover { transform: scale(1.3); }
.dot.active { background: var(--accent); transform: scale(1.15); }

.gallery-counter {
    display: none;
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(26,34,56,0.65);
    color: white;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* Infos popup */
.popup-info { display: flex; flex-direction: column; }

.popup-info h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popup-price {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.popup-description {
    color: var(--text, #555);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    max-height: 170px;
    overflow-y: auto;
    font-size: 0.92rem;
    padding-right: 4px;
}

/* Sélecteur couleur */
.color-selector {
    margin-bottom: 1.4rem;
    padding: 1rem 1.2rem;
    background: var(--light);
}

.color-selector label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
}

.color-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.color-option {
    padding: 0.55rem 1.1rem;
    background: white;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.22s;
    font-size: 0.82rem;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.color-option:hover { border-color: var(--accent); background: #fff8f5; }

.color-option.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Perso */
.perso-section {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: #fff8f3;
    border-left: 3px solid var(--accent);
}

.btn-perso {
    width: 100%;
    padding: 0.85rem;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
}

.btn-perso:hover {
    background: var(--gold);
    color: white;
}

/* Quantité */
.popup-quantity { margin-bottom: 1.4rem; }

.popup-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
    color: var(--dark);
}

.quantity-selector { display: flex; align-items: center; gap: 0.8rem; }

.qty-btn {
    width: 32px; height: 32px;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.22s;
}

.qty-btn:hover { background: var(--dark); color: white; border-color: var(--dark); }

#quantity {
    width: 52px;
    text-align: center;
    border: 1.5px solid var(--border);
    padding: 0.38rem;
    font-size: 0.95rem;
}

.btn-add-cart {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.28s;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    position: relative;
    overflow: hidden;
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity 0.28s;
}

.btn-add-cart:hover::after { opacity: 1; }
.btn-add-cart span { position: relative; z-index: 1; }

.popup-features { border-top: 1px solid var(--border); padding-top: 1.2rem; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.feature-item .icon { font-size: 1.1rem; opacity: 0.7; flex-shrink: 0; }

.feature-item p { color: #777; font-size: 0.82rem; }

/* ============================================================
   POPUP GALERIE CATÉGORIE
   ============================================================ */

.category-gallery-content { max-width: 1200px; padding: 2.5rem; }

#category-gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.category-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.category-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(26,34,56,0.18);
}

.category-gallery-item img {
    width: 100%; height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s;
}

.category-gallery-item:hover img { transform: scale(1.05); }

.category-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(26,34,56,0.88) 0%, transparent 100%);
    color: white;
    padding: 1.1rem;
    transition: background 0.3s;
}

.category-gallery-item:hover .category-image-overlay {
    background: linear-gradient(to top, rgba(255,158,109,0.88) 0%, transparent 100%);
}

.category-image-overlay h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.category-image-overlay p { font-size: 0.72rem; opacity: 0.88; margin: 0; }

.category-gallery-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-gallery-close:hover { background: var(--accent); }

/* ============================================================
   POPUP PERSONNALISATION
   ============================================================ */

.perso-popup-body { padding: 2.5rem; }

.perso-popup-body h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.perso-intro { text-align: center; color: #777; margin-bottom: 2rem; font-size: 0.92rem; font-style: italic; }

.perso-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.perso-item {
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.28s;
}

.perso-item:hover { transform: translateY(-4px); }

.perso-item img, .perso-item video {
    width: 100%; height: 220px;
    object-fit: cover;
    display: block;
}

.perso-info {
    background: var(--light);
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.perso-info p { margin-bottom: 1rem; color: var(--text, #555); font-size: 0.9rem; }

.btn-contact-perso {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--gold);
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    transition: all 0.28s;
}

.btn-contact-perso:hover { background: var(--accent); transform: translateY(-2px); }

/* ============================================================
   POPUP COMMANDE
   ============================================================ */

.order-popup-content { max-width: 480px; }

.order-popup-body { padding: 2.5rem; }

.order-popup-body h2 {
    font-family: 'Cinzel', serif;
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.order-intro { text-align: center; color: #888; margin-bottom: 2rem; font-size: 0.88rem; }

#order-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', serif;
}

.form-group input {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    font-size: 0.92rem;
    transition: border-color 0.25s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,158,109,0.1);
}

.form-actions { display: flex; gap: 1rem; margin-top: 0.5rem; }

.btn-cancel-order {
    flex: 1;
    padding: 0.9rem;
    background: transparent;
    color: #888;
    border: 1.5px solid var(--border);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.btn-cancel-order:hover { background: var(--light); }

.btn-confirm-order {
    flex: 1;
    padding: 0.9rem;
    background: var(--dark);
    color: white;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-confirm-order:hover { background: var(--accent); }

.order-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-close:hover { background: var(--accent); }

/* ============================================================
   PANIER SIDEBAR
   ============================================================ */

.cart-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--accent);
    color: var(--dark);
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
}

.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(26,34,56,0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0; right: -420px;
    width: 390px;
    height: 100vh;
    background: white;
    z-index: 3000;
    box-shadow: -4px 0 25px rgba(26,34,56,0.12);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active { right: 0; }

.cart-header {
    padding: 1.4rem 1.6rem;
    background: var(--dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
}

.cart-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-count {
    background: var(--accent);
    color: var(--dark);
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.cart-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.7rem;
    cursor: pointer;
    transition: color 0.25s;
    line-height: 1;
}

.cart-close:hover { color: var(--accent); }

.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }

.cart-empty { text-align: center; padding: 3rem 1rem; }

.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.2; }

.cart-empty h3 { color: #888; margin-bottom: 0.4rem; font-size: 1rem; }

.cart-empty p { color: #aaa; margin-bottom: 1.5rem; font-size: 0.85rem; }

.btn-continue-shopping {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.25s;
}

.btn-continue-shopping:hover { background: var(--accent); color: var(--dark); }

.cart-items { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    gap: 0.9rem;
    padding: 0.9rem;
    background: var(--light);
}

.cart-item-image { width: 55px; height: 55px; overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { display: flex; flex-direction: column; gap: 0.2rem; }

.cart-item-name { font-weight: 600; color: var(--dark); font-size: 0.85rem; line-height: 1.3; }

.cart-item-color { color: var(--gold); font-size: 0.75rem; }

.cart-item-price { color: var(--dark); font-weight: 700; font-size: 0.82rem; font-family: 'Cinzel', serif; }

.cart-item-quantity { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.35rem; }

.qty-btn-cart {
    width: 22px; height: 22px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn-cart:hover { background: var(--dark); color: white; border-color: var(--dark); }

.qty-number { width: 28px; text-align: center; font-weight: 700; color: var(--dark); font-size: 0.85rem; }

.cart-item-actions { display: flex; align-items: flex-start; }

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--border);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-remove-item:hover { color: #e74c3c; }

.cart-footer { padding: 1.3rem 1.5rem; background: var(--light); border-top: 1px solid var(--border); }

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-subtotal span:first-child { font-size: 0.82rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.cart-total-amount {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-actions { display: flex; flex-direction: column; gap: 0.7rem; }

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: #25D366;
    color: white;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-whatsapp:hover { background: #1eb557; transform: translateY(-1px); }

.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    background: var(--navy);
    color: white;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-email:hover { background: var(--accent); color: var(--dark); }

.btn-clear-cart {
    padding: 0.55rem;
    background: transparent;
    color: #ccc;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Cinzel', serif;
}

.btn-clear-cart:hover { color: #e74c3c; border-color: #e74c3c; }

/* Toast */
.toast-notification {
    position: fixed;
    top: 85px; right: -400px;
    background: var(--dark);
    color: white;
    padding: 0.85rem 1.4rem;
    box-shadow: 0 5px 18px rgba(26,34,56,0.2);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: right 0.3s ease;
    border-left: 3px solid var(--accent);
}

.toast-notification.show { right: 20px; }

.toast-message { font-size: 0.88rem; font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .product-card { flex: 0 0 175px; width: 175px; }
    .product-image { height: 210px; }
    .product-info-bottom h3 { font-size: 0.82rem; }
    .product-info-bottom .product-price { font-size: 0.82rem; }

    .popup-body { grid-template-columns: 1fr; padding: 1.2rem; gap: 1.5rem; }
    .gallery-main { height: 290px; }
    .gallery-counter { display: block; }
    .gallery-nav { width: 40px; height: 40px; z-index: 10; opacity: 1 !important; }

    .cart-sidebar { width: 100%; right: -100%; }
    .category-block-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .product-card { flex: 0 0 150px; width: 150px; }
    .product-image { height: 185px; }
    .carousel-track { padding: 0.5rem 4% 1rem; gap: 12px; }
    .carousel-btn { display: none; }
    .category-block-header { padding: 0 4%; }
}

/* ── Étoiles notation popup — plus grandes sur mobile ── */
@media (max-width: 768px) {

    /* Étoiles cliquables dans le popup produit */
    .popup-star-btn {
        font-size: 2.8rem;
        padding: 0.3rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .popup-stars-input {
        gap: 4px;
        justify-content: center;
        display: flex;
    }

    /* Étoiles moyennes sur les cartes carousel */
    .star-ro {
        font-size: 1rem;
    }

    .rating-stars-row {
        gap: 3px;
    }
}