/* ═══════════════════════════════════════════
   FICHE PRODUIT — Design Moderne 2026 (optimisé)
   Palette conservée : var(--teal)
   → Coins arrondis harmonisés avec le design system du site
   → Espacements resserrés, responsive audité
═══════════════════════════════════════════ */

.produit-detail-page {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8f9fa 100%);
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    padding: 24px 40px 40px;
}

/* ══ FIL D'ARIANE ══ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    width: fit-content;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
}

.breadcrumb a:hover { color: var(--teal); transform: translateX(-2px); }

.breadcrumb i { font-size: 10px; opacity: 0.5; }

.breadcrumb span { color: var(--text); font-weight: 700; }

/* ══ GRILLE PRINCIPALE ══ */
.produit-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 520px) 1fr;
    gap: 32px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
}

/* ══ GALERIE ══ */
.produit-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    font-size: 80px;
    color: #cbd5e1;
    cursor: crosshair;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}

.gallery-main:hover img {
    transform: scale(1.08);
}

.gallery-zoom-lens {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(255,255,255,0.1);

}

.gallery-main:hover .gallery-zoom-lens {
    opacity: 1;
}

.prod-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.prod-badge.discount {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.prod-badge.out-of-stock {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    font-size: 11px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-thumb:hover {
    transform: translateY(-3px);

}

.gallery-thumb.active {
    border-color: var(--teal);
    transform: scale(1.05);
}

/* ══ PANNEAU INFOS ══ */
.produit-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.produit-boutique-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    width: fit-content;
    padding: 5px 12px;
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.08);
    border-radius: 20px;
    transition: all 0.2s;
}

.produit-boutique-link:hover {
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.15);
    transform: translateX(-3px);
}

.produit-nom {
    font-family: 'Cairo', sans-serif;
    font-size: 27px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.3px;
}

.produit-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.produit-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 10px;
    width: fit-content;
}

.produit-rating .stars {
    display: flex;
    gap: 2px;
}

.produit-rating .stars i {
    color: #e2e8f0;
    font-size: 13px;
    transition: color 0.2s;
}

.produit-rating .stars i.active {
    color: #f5a623;
}

.rating-value {
    font-weight: 800;
    color: var(--text);
}

.rating-count {
    color: var(--muted);
    font-size: 12px;
}

.produit-sku {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.produit-sku strong {
    color: var(--text);
    font-weight: 700;
}

.produit-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
}

.produit-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 14px;
}

.produit-price {
    font-size: 30px;
    font-weight: 900;
    color: var(--teal);
    letter-spacing: -0.5px;
    line-height: 1;
}

.produit-price small {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.8;
}

.produit-old-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.produit-discount-tag {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 5px 12px;
    border-radius: 8px;
}

.produit-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}

.stock-ok { background: rgba(34, 197, 94, 0.1); color: #15803d; }
.stock-ok .stock-dot { background: #22c55e; }

.stock-low { background: rgba(245, 166, 35, 0.1); color: #b45309; }
.stock-low .stock-dot { background: #f5a623; }

.stock-out { background: rgba(100, 116, 139, 0.1); color: #475569; }
.stock-out .stock-dot { background: #64748b; animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.produit-shipping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    padding: 6px 14px;
    background: #f8fafc;
    border-radius: 10px;
    width: fit-content;
}

.produit-shipping.free {
    color: var(--teal);
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.06);
}

/* ══ QUANTITÉ + PANIER ══ */
.produit-add-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.qty-btn {
    width: 40px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--teal);
    color: #fff;
}

.qty-btn:active {
    transform: scale(0.95);
}

#qty-input {
    width: 54px;
    height: 46px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    -moz-appearance: textfield;
    background: transparent;
}

#qty-input:focus { outline: none; }

.btn-add-to-cart {
    flex: 1;
    min-width: 180px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--teal) 0%, #0d9488 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(var(--teal-rgb, 20, 184, 166), 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--teal-rgb, 20, 184, 166), 0.4);
}

.btn-add-to-cart:hover::before {
    left: 100%;
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: #f8fafc;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

/* ══ SPÉCIFICATIONS ══ */
.produit-specs {
    margin-top: 12px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 14px;
}

.produit-specs h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.produit-specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.produit-specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.produit-specs li:last-child { border-bottom: none; }

.produit-specs li span:first-child { color: var(--muted); font-weight: 500; }

.produit-specs li span:last-child { color: var(--text); font-weight: 700; }

/* ══ CARTE BOUTIQUE & COMMERÇANT ══ */
.boutique-seller-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.boutique-seller-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), #0d9488);
}

.seller-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.seller-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.seller-avatar {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--teal);
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-info { display: flex; flex-direction: column; gap: 5px; }

.seller-name {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.verified-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.seller-owner {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-location {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-stats {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-value i { color: #f5a623; font-size: 14px; }

.stat-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.seller-phone {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.08);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.seller-phone:hover {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
}

.seller-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 3px solid var(--teal);
}

.seller-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-seller {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--teal) 0%, #0d9488 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(var(--teal-rgb, 20, 184, 166), 0.2);
}

.btn-seller:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--teal-rgb, 20, 184, 166), 0.3);
}

.btn-seller-outline {
    background: #f8fafc;
    color: var(--teal);
    box-shadow: none;
}

.btn-seller-outline:hover {
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.08);
}

/* ══ ONGLETS ══ */
.produit-tabs-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    gap: 0;
    background: #fafbfc;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i { font-size: 13px; }

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--teal);
    border-radius: 3px 3px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
    color: var(--teal);
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.04);
}

.tab-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.tabs-content { padding: 24px; }

.tab-panel { display: none; animation: fadeIn 0.4s ease; }

.tab-panel.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-body {
    font-size: 14px;
    line-height: 1.9;
    color: var(--text);
}

.tab-empty {
    text-align: center;
    color: var(--muted);
    padding: 32px;
    font-style: italic;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.specs-table th {
    width: 35%;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    background: #f8fafc;
}

.specs-table td {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.specs-table tr:hover th,
.specs-table tr:hover td {
    background: #f8fafc;
}

.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shipping-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 14px;
    transition: all 0.2s;
}

.shipping-item:hover {
    background: #f0fdfa;
    transform: translateX(-4px);
}

.shipping-item > i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.08);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.shipping-item h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.shipping-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ══ PRODUITS SIMILAIRES ══ */
.produit-related { margin-top: 4px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.06);
}

.view-all:hover {
    background: rgba(var(--teal-rgb, 20, 184, 166), 0.12);
    gap: 10px;
}

.produit-related .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prod-card {
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.prod-card:hover {
    transform: translateY(-6px);
}

.prod-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    flex: 1;
}

.prod-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.prod-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-card:hover .prod-img img {
    transform: scale(1.1);
}

.prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.prod-badge.out {
    background: #64748b;
    font-size: 10px;
    padding: 4px 10px;
}

.prod-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.prod-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.prod-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
}

.prod-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.prod-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--teal);
}

.prod-old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.btn-quick-add {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(var(--teal-rgb, 20, 184, 166), 0.3);
    z-index: 3;
}

.prod-card:hover .btn-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add:hover {
    transform: scale(1.1);
    background: #0d9488;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   Points de rupture : 1280 / 1024 / 900 / 768 / 600 / 400
══════════════════════════════════════════ */

/* ── Grand écran / petit desktop ── */
@media (max-width: 1280px) {
    .produit-detail-page { padding: 20px 24px 40px; }
    .produit-detail-grid { gap: 24px; padding: 24px; }
    .produit-related .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablette large : la grille passe en 1 colonne ── */
@media (max-width: 1024px) {
    .produit-detail-grid { grid-template-columns: 1fr; }
    .produit-gallery { position: relative; top: 0; max-width: 560px; margin: 0 auto; gap: 10px; }
    .gallery-main { max-height: 380px; }
    .seller-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .seller-stats { width: 100%; justify-content: flex-start; }
}

/* ── Tablette portrait ── */
@media (max-width: 900px) {
    .produit-detail-page { padding: 18px 20px 36px; }
    .produit-detail-grid { padding: 20px; gap: 20px; }
    .produit-nom { font-size: 24px; }
    .produit-related .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .section-header h3 { font-size: 18px; }
}

/* ── Mobile large ── */
@media (max-width: 768px) {
    .produit-detail-page { padding: 14px 14px 28px; margin-top: 54px; }
    .breadcrumb { font-size: 12px; gap: 6px; padding: 7px 12px; margin-bottom: 16px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .produit-detail-grid { padding: 16px; border-radius: 20px; gap: 16px; }
    .produit-gallery { max-width: 100%; }
    .gallery-main { max-height: 320px; border-radius: 18px; }
    .produit-nom { font-size: 21px; }
    .produit-price { font-size: 25px; }
    .produit-price-block { padding: 10px 14px; }
    .produit-add-form { flex-direction: column; align-items: stretch; gap: 10px; }
    .qty-selector { align-self: stretch; justify-content: center; }
    .btn-add-to-cart { width: 100%; height: 48px; }
    .btn-wishlist { align-self: center; }
    .tabs-content { padding: 16px; }
    .tab-btn { padding: 12px 16px; font-size: 13px; flex-shrink: 0; }
    .tabs-nav { padding: 0 4px; }
    .produit-related .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .boutique-seller-card { padding: 16px; border-radius: 16px; }
    .produit-tabs-container { border-radius: 16px; }
    .shipping-item { padding: 14px; gap: 12px; }
}

/* ── Mobile standard ── */
@media (max-width: 600px) {
    .produit-detail-grid { padding: 14px; gap: 14px; }
    .gallery-main { max-height: 300px; }
    .gallery-thumbs { gap: 8px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
    .gallery-thumb { width: 60px; height: 60px; flex-shrink: 0; scroll-snap-align: start; }
    .produit-meta-row { gap: 8px; }
    .produit-specs { padding: 14px; }
    .seller-avatar { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }
    .seller-name { font-size: 16px; }
    .section-header { margin-bottom: 14px; }
    .produit-related .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-content { padding: 12px; }
    .prod-name { font-size: 13px; min-height: 38px; }
    /* Sur écran tactile : pas de hover, le bouton d'ajout rapide reste visible */
    .btn-quick-add { opacity: 1; transform: none; width: 32px; height: 32px; bottom: 10px; left: 10px; }
}

/* ── Petits téléphones ── */
@media (max-width: 400px) {
    .produit-detail-page { padding: 10px 10px 24px; }
    .produit-detail-grid { padding: 12px; gap: 12px; border-radius: 20px; }
    .gallery-main { max-height: 260px; border-radius: 12px; }
    .gallery-thumb { width: 52px; height: 52px; }
    .produit-nom { font-size: 19px; }
    .produit-price { font-size: 22px; }
    .produit-price-block { flex-wrap: wrap; gap: 8px; }
    .qty-btn, #qty-input { height: 44px; }
    .btn-add-to-cart { height: 46px; font-size: 14px; }
    .produit-related .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .seller-identity { flex-direction: column; text-align: center; width: 100%; }
    .seller-stats { justify-content: center; flex-wrap: wrap; gap: 14px; }
    .seller-actions { justify-content: center; }
    .btn-seller { flex: 1; justify-content: center; padding: 10px 14px; }
    .tabs-content { padding: 12px; }
    .tab-btn { padding: 10px 12px; font-size: 12px; }
    .specs-table th, .specs-table td { display: block; width: 100%; padding: 8px 10px; }
    .specs-table th { background: transparent; border-bottom: none; padding-bottom: 0; color: var(--muted); font-size: 12px; }
    .specs-table td { padding-top: 4px; border-bottom: 1px solid #f1f5f9; }
}

/* ── Appareils tactiles : garder les actions visibles sans hover ── */
@media (hover: none) {
    .btn-quick-add { opacity: 1; transform: none; }
    .gallery-main:hover .gallery-zoom-lens { opacity: 0; }
    .gallery-zoom-lens { display: none; }
}

/* ══════════════════════════════════════════
   AVIS PRODUIT
══════════════════════════════════════════ */
.avis-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.avis-summary {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f4;
}

.avis-summary-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avis-summary-note {
    font-size: 32px;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
}

.avis-summary-score .stars i {
    color: #e2e8f0;
    font-size: 16px;
}

.avis-summary-score .stars i.active {
    color: #f5a623;
}

.avis-summary-count {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.avis-alert {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.avis-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.avis-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.avis-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
}

.avis-form-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.avis-star-input {
    display: flex;
    gap: 4px;
}

.avis-star-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    font-size: 20px;
    color: #cbd5e1;
    line-height: 1;
    transition: color 0.15s, transform 0.15s;
}

.avis-star-btn:hover,
.avis-star-btn.active {
    color: #f5a623;
    transform: scale(1.1);
}

.avis-textarea {
    width: 100%;
    resize: vertical;
    min-height: 90px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.avis-textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.btn-avis-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-avis-submit:hover {
    background: #0d9488;
}

.avis-info {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.avis-info a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.avis-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.avis-item {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 12px;
}

.avis-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.avis-author {
    font-weight: 800;
    font-size: 13px;
    color: var(--text);
}

.avis-date {
    font-size: 12px;
    color: var(--muted);
}

.avis-item .stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.avis-item .stars i {
    color: #e2e8f0;
    font-size: 12px;
}

.avis-item .stars i.active {
    color: #f5a623;
}

.avis-comment {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .avis-form { padding: 14px; }
    .avis-summary-note { font-size: 26px; }
}