/* ===============================
   DETAIL PAGE — Thème Sombre
   Utilise les variables de style.css
================================ */

body {
    background-color: #0a0f1e;
    color: #E2E8F0;
}

/* ===============================
   CONTAINER
================================ */
.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    background: transparent;
}

/* ===============================
   BREADCRUMB
================================ */
.breadcrumb {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 28px;
}

.breadcrumb a {
    text-decoration: none;
    color: #64748B;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #93c5fd;
}

.breadcrumb span {
    color: #93c5fd;
}

/* ===============================
   PRODUCT MAIN GRID
================================ */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #111827;
    padding: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.40);
}

/* ===============================
   GALERIE IMAGE
================================ */

/* Miniatures au-dessus de l'image principale */
.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gallery-thumbnails .thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    opacity: 0.65;
    background: #1e293b;
    flex-shrink: 0;
}

.gallery-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbnails .thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gallery-thumbnails .thumb.active {
    border-color: #3b82f6;
    opacity: 1;
    transform: translateY(-2px);
}

/* La galerie ne s'étire pas avec la grille */
.product-gallery {
    align-self: start;
}

/* Grande image principale — carré parfait garanti */
.product-gallery .main-image {
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0f172a;
    position: relative;
}

/* L'image est positionnée en absolu pour remplir tout le carré */
.product-gallery .main-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease, transform 0.4s ease;
}

.product-gallery .main-image img:hover {
    transform: scale(1.04);
}

/* ===============================
   EN-TÊTE PRODUIT
================================ */
.product-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 14px;
}

.product-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(147, 197, 253, 0.25);
    width: 100%;
}

.product-header .price {
    font-size: 32px;
    font-weight: 800;
    color: #93c5fd;
}

/* ===============================
   OPTIONS (capacité, couleur)
================================ */
.selection-group {
    margin-bottom: 22px;
}

.selection-group p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #CBD5E1;
    font-size: 14px;
}

.capacity-options,
.option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opt,
.option-btn {
    padding: 10px 20px;
    border: 2px solid rgba(148, 163, 184, 0.25);
    background: #1e293b;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: #94A3B8;
    font-size: 14px;
}

.opt:hover,
.option-btn:hover {
    border-color: #3b82f6;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.12);
}

.opt.active,
.option-btn.active {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.60);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===============================
   BARRE D'ACTION
================================ */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 28px;
}

.spec-label {
    font-weight: 600;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.spec-label i {
    color: #93c5fd;
}

/* ===============================
   BOUTON AJOUTER AU PANIER
================================ */
.panier {
    display: flex;
    justify-content: center;
    align-items: center;
}

.panier .btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    text-decoration: none;
    white-space: nowrap;
}

.panier .btn-add-cart:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.50);
}

.panier .btn-add-cart:active {
    transform: translateY(0);
}

/* ===============================
   SPECS LISTE
================================ */
.quick-specs {
    list-style: none;
    margin-bottom: 28px;
}

.quick-specs li {
    margin-bottom: 10px;
    color: #94A3B8;
    position: relative;
    padding-left: 26px;
    font-size: 14px;
}

.quick-specs li::before {
    content: "✓";
    color: #34D399;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===============================
   BADGES DE CONFIANCE
================================ */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 28px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-sm);
}

.badge i {
    font-size: 24px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
    padding: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge strong {
    display: block;
    font-size: 13px;
    color: #E2E8F0;
    font-weight: 600;
}

.badge span {
    font-size: 12px;
    color: #64748B;
}

/* ===============================
   DESCRIPTION
================================ */
.description h3 {
    margin-bottom: 12px;
    color: #F1F5F9;
    font-size: 18px;
    font-weight: 600;
}

.description p {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.85;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .product-details-container {
        padding: 16px;
    }

    .product-header h1 {
        font-size: 26px;
    }

    .product-header .price {
        font-size: 24px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
