/**
 * LUXURY SINGLE PRODUCT PAGE - DESIGN MINIMALISTE HAUT DE GAMME
 * Style inspiré des marques de luxe : Gucci, Louis Vuitton, Céline, Fendi
 * Version: 1.0.0
 */

/* ================================================
   RESET FOCUS & HOVER - Supprimer les styles Astra
   ================================================ */
.hb-luxury-product-wrapper button:focus,
.hb-luxury-product-wrapper button:focus-visible,
.hb-luxury-product-wrapper button:hover,
.hb-luxury-product-wrapper .hb-accordion-trigger:focus,
.hb-luxury-product-wrapper .hb-accordion-trigger:hover,
.hb-luxury-product-wrapper .hb-nav-btn:focus,
.hb-luxury-product-wrapper .hb-nav-btn:hover,
.hb-luxury-product-wrapper .hb-qty-btn:focus,
.hb-luxury-product-wrapper .hb-qty-btn:hover {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
    background-color: transparent !important;
}

/* Reset spécifique pour les boutons avec background */
.hb-luxury-product-wrapper .hb-add-cart-btn:focus,
.hb-luxury-product-wrapper .hb-add-cart-btn:hover,
.hb-luxury-product-wrapper .hb-wishlist-btn:focus,
.hb-luxury-product-wrapper .hb-wishlist-btn:hover {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
    background-color: #0a0a0a !important;
}

/* ================================================
   CONTENEUR PRINCIPAL
   ================================================ */
.hb-luxury-product-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 30px;
    font-family: 'Neurial Grotesk', sans-serif;
    color: #0a0a0a;
}

/* ================================================
   LAYOUT GRID DESKTOP (PC) - Galerie à gauche
   ================================================ */
@media (min-width: 1025px) {
    .hb-luxury-grid {
        display: grid;
        grid-template-columns: 100px 1fr 500px;
        gap: 50px;
        align-items: start;
    }

    .hb-gallery-column {
        grid-column: 1;
        position: sticky;
        top: 150px;
        align-self: start;
    }

    .hb-image-column {
        grid-column: 2;
        position: sticky;
        top: 150px;
        align-self: start;
    }

    .hb-info-column {
        grid-column: 3;
    }
}

/* ================================================
   GALERIE THUMBNAILS - Verticale PC, Horizontale Mobile
   ================================================ */
.hb-thumbnails-container {
    width: 100%;
}

/* PC: Galerie verticale à gauche - 4 images visibles */
@media (min-width: 1025px) {
    .hb-gallery-column {
        height: 430px;
        max-height: 430px;
        overflow: hidden;
    }

    .hb-thumbnails-container {
        height: 100%;
        max-height: 430px;
        overflow: hidden;
    }

    .hb-thumbnails-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 100%;
        max-height: 430px;
        padding-right: 0;
        /* Cacher la scrollbar mais garder le scroll */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE et Edge */
    }

    /* Cacher la scrollbar pour Chrome, Safari et Opera */
    .hb-thumbnails-list::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hb-thumb-item {
        width: 100px;
        min-height: 100px;
        max-height: 100px;
        height: 100px;
        flex-shrink: 0;
        flex-grow: 0;
        cursor: pointer;
        border: 1px solid transparent;
        transition: all 0.25s ease;
        border-radius: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.5;
    }

    .hb-thumb-item:hover {
        opacity: 0.85;
        border-color: #ddd;
    }

    .hb-thumb-item.hb-active {
        opacity: 1;
        border-color: #0a0a0a;
    }
}

/* Mobile & Tablette: Galerie horizontale en bas - 4 images visibles */
@media (max-width: 1024px) {
    .hb-thumbnails-container {
        width: 100%;
        overflow: hidden;
    }

    .hb-thumbnails-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
        /* Cacher la scrollbar mais garder le scroll */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE et Edge */
    }

    /* Cacher la scrollbar pour Chrome, Safari et Opera */
    .hb-thumbnails-list::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .hb-thumb-item {
        width: calc((100% - 30px) / 4);
        min-width: calc((100% - 30px) / 4);
        height: calc((100vw - 60px) / 4);
        max-height: calc((100vw - 60px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        cursor: pointer;
        border: 1px solid transparent;
        transition: all 0.25s ease;
        border-radius: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.5;
    }

    .hb-thumb-item:hover {
        opacity: 0.85;
    }

    .hb-thumb-item.hb-active {
        opacity: 1;
        border-color: #0a0a0a;
    }
}

/* ================================================
   IMAGE PRINCIPALE - Design élégant
   ================================================ */
.hb-main-image-container {
    width: 100%;
    position: relative;
}

.hb-image-wrapper {
    position: relative;
    width: 430px;
    height: 430px;
    background-color: #f9f9f9;
    border-radius: 0;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .hb-image-wrapper {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
}

.hb-image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hb-slide-item {
    min-width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Flèches de navigation élégantes */
.hb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    z-index: 20;
    aspect-ratio: 1 / 1;
}

.hb-nav-btn:hover {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.hb-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.hb-nav-prev {
    left: 15px;
}

.hb-nav-next {
    right: 15px;
}

@media (max-width: 768px) {
    .hb-nav-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        font-size: 16px;
    }

    .hb-nav-prev {
        left: 10px;
    }

    .hb-nav-next {
        right: 10px;
    }
}

/* ================================================
   INFORMATIONS PRODUIT - Style luxueux
   ================================================ */
.hb-product-details {
    padding: 0;
}

/* Titre */
.hb-title-section .hb-product-name {
    font-size: 34px;
    font-weight: 500;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: 0.5px;
    margin: 0 0 24px 0;
    color: #0a0a0a;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .hb-title-section .hb-product-name {
        font-size: 26px;
        margin-bottom: 18px;
    }
}

/* Prix */
.hb-price-section {
    margin-bottom: 35px;
}

.hb-price-section .hb-price-display {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #0a0a0a;
}

.hb-price-section .hb-price-display del {
    opacity: 0.45;
    font-size: 24px;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .hb-price-section .hb-price-display {
        font-size: 26px;
    }
}

/* ================================================
   SÉLECTEUR DE COULEUR - Cercles luxueux
   ================================================ */
.hb-color-selector-section {
    margin: 35px 0;
    padding: 35px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.hb-color-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hb-color-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.hb-color-swatches {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hb-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip - Nom de la couleur */
.hb-color-swatch::before {
    content: attr(data-color-name);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

/* Flèche du tooltip */
.hb-color-swatch::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

/* Afficher le tooltip au survol uniquement */
.hb-color-swatch:hover::before,
.hb-color-swatch:hover::after {
    opacity: 1;
}

/* État sélectionné */
.hb-color-swatch.hb-selected {
    transform: scale(0.8);
    box-shadow: 0 0 0 2px white, 0 0 0 3px black;
}

/* ================================================
   LIGNE QUANTITÉ + FAVORIS
   ================================================ */
.hb-qty-wishlist-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0;
}

@media (max-width: 768px) {
    .hb-qty-wishlist-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
}

/* ================================================
   SÉLECTEUR DE QUANTITÉ - Minimaliste
   ================================================ */
.hb-quantity-section {
    margin: 0;
    flex: 0 0 auto;
}

.hb-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.hb-qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #0a0a0a;
    transition: opacity 0.25s ease;
    user-select: none;
    font-weight: 300;
}

.hb-qty-btn:hover {
    opacity: 0.7;
}

.hb-qty-btn:active {
    opacity: 0.5;
}

.hb-qty-display {
    min-width: 55px;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: #0a0a0a;
    border-left: 1px solid #c8c8c8;
    border-right: 1px solid #c8c8c8;
    padding: 0 10px;
}

/* ================================================
   BOUTON FAVORIS
   ================================================ */
.hb-wishlist-section {
    margin: 0;
    flex: 1 1 auto;
}

.hb-wishlist-btn {
    width: 100%;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hb-wishlist-text {
    color: #ffffff;
}

.hb-wishlist-icon {
    transition: all 0.3s ease;
    stroke: #ffffff;
    fill: none;
    flex-shrink: 0;
}

.hb-wishlist-btn:hover {
    opacity: 0.9;
}

.hb-wishlist-btn:active {
    opacity: 0.8;
}

.hb-wishlist-btn.hb-active .hb-wishlist-text {
    color: #ffffff;
}

.hb-wishlist-btn.hb-active .hb-wishlist-icon {
    fill: #ffffff;
    stroke: #ffffff;
}

@media (max-width: 768px) {
    .hb-wishlist-btn {
        padding: 20px 45px;
        font-size: 13px;
        letter-spacing: 2.5px;
    }
}

/* ================================================
   BOUTON AJOUTER AU PANIER - Luxe Premium
   ================================================ */
.hb-cart-section {
    margin: 35px 0;
}

.hb-add-cart-btn {
    width: 100%;
    padding: 20px 45px;
    background-color: #0a0a0a;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hb-add-cart-btn:hover {
    opacity: 0.9;
}

.hb-add-cart-btn:active {
    opacity: 0.8;
}

/* ================================================
   ACCORDION - Design raffiné
   ================================================ */
.hb-accordion-section {
    margin: 45px 0 0 0;
    border-top: 1px solid #000;
}

.hb-accordion-panel {
    border-bottom: 1px solid #000;
}

.hb-accordion-trigger {
    width: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    box-shadow: none;
    outline: none;
}

.hb-accordion-trigger:hover {
    opacity: 0.7;
}

.hb-accordion-trigger:focus {
    outline: none;
    box-shadow: none;
}

.hb-accordion-label {
    font-size: 20px;
    font-weight: 100;
    color: #000;
    text-align: left;
    line-height: normal;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.hb-accordion-icon {
    font-size: 28px;
    font-weight: 300;
    color: #000;
    line-height: normal;
    margin: 0;
    padding: 0;
    transition: transform 0.2s ease;
}

.hb-accordion-panel.hb-expanded .hb-accordion-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .hb-accordion-label {
        font-size: 18px;
    }

    .hb-accordion-icon {
        font-size: 24px;
    }
}

.hb-accordion-body {
    height: 0;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Neurial Grotesk', sans-serif;
}

/* Wrapper intérieur pour le padding */
.hb-accordion-body > div {
    padding: 5px 0 10px 0;
}

/* Paragraphes et conteneurs généraux */
.hb-accordion-body p {
    padding: 0 0 10px 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Titres et strong */
.hb-accordion-body strong,
.hb-accordion-body b {
    font-weight: bold;
    color: #000;
    display: block;
    margin: 0 0 10px 0;
    font-size: 15px;
}

/* Premier strong sans marge top */
.hb-accordion-body > p:first-child strong {
    margin-top: 0;
}

/* Listes */
.hb-accordion-body ul,
.hb-accordion-body ol {
    padding: 0 0 10px 20px;
    margin: 0;
    line-height: 1.6;
}

/* Items de liste */
.hb-accordion-body li {
    padding: 0;
    margin: 0 0 4px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.hb-accordion-body li:last-child {
    margin-bottom: 0;
}

/* Paragraphes dans les li (supprimer tout espacement) */
.hb-accordion-body li p {
    padding: 0;
    margin: 0;
    display: inline;
}

/* Titres */
.hb-accordion-body h1,
.hb-accordion-body h2,
.hb-accordion-body h3,
.hb-accordion-body h4,
.hb-accordion-body h5,
.hb-accordion-body h6 {
    margin: 0 0 10px 0;
    padding: 0;
    color: #000;
    font-weight: bold;
    line-height: 1.4;
}

/* Espacement entre sections */
.hb-accordion-body > p + ul,
.hb-accordion-body > p + ol {
    margin-top: -5px;
}

/* ================================================
   LAYOUT MOBILE & TABLETTE
   ================================================ */
@media (max-width: 1024px) {
    .hb-luxury-product-wrapper {
        padding: 50px 25px;
    }

    .hb-luxury-grid {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    /* Image principale en haut */
    .hb-image-column {
        order: 1;
    }

    /* Galerie en dessous de l'image */
    .hb-gallery-column {
        order: 2;
    }

    /* Infos produit en dernier */
    .hb-info-column {
        order: 3;
    }
}

@media (max-width: 768px) {
    .hb-luxury-product-wrapper {
        padding: 35px 18px;
    }
}

/* ================================================
   ANIMATIONS & TRANSITIONS SUPPLÉMENTAIRES
   ================================================ */
@keyframes hb-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hb-luxury-product-wrapper > * {
    animation: hb-fadeIn 0.6s ease-out;
}
