/**
 * Studio Extrait - Product Layout & Presentation Stylesheet
 * Covers 2-column responsive layout, gallery slider, breadcrumbs,
 * title, pricing, size & bottle customizer, add to bag, delivery timeline, and accordions.
 */

/* =============== BREADCRUMB =============== */
.breadcrumb {
    font-size: 9.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 24px;
    width: 100%;
    text-align: left;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
    opacity: 0.6;
}

/* =============== BADGES =============== */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.badge {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    background: #fff;
    color: #555;
    display: inline-flex;
    align-items: center;
}

.badge-accent {
    background: #fafafa;
    border-color: #000;
    color: #000;
}

/* =============== PRICE CONTAINER =============== */
.price-container {
    margin-bottom: 25px;
    width: 100%;
    text-align: left;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-price {
    font-family: 'Gotham Narrow Bold', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #000;
    margin-bottom: 0;
}

.discount-badge {
    background: #ff3b30;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.retail-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.product-retail-price {
    text-decoration: line-through;
}

.comparison-note {
    font-size: 9.5px;
    color: #2e7d32;
    font-weight: bold;
    text-transform: uppercase;
}

/* =============== SIZE SELECTOR =============== */
#sizePickerContainer {
    margin-bottom: 25px;
    width: 100%;
}

#sizePickerOptions {
    display: flex;
    gap: 12px;
}

.size-picker-btn {
    border: 0.5px solid #ccc;
    background: transparent;
    color: #000;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
}

.size-picker-btn.active {
    border: 1px solid #000;
    font-weight: bold;
}

/* =============== BOTTLE CUSTOMISATION SELECTOR =============== */
#bottleCustomisationContainer {
    margin-bottom: 20px;
    width: 100%;
}

#bottleCustomisationLabel {
    font-size: 9.5px;
    opacity: 0.65;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 8px;
    color: #000;
    text-align: left;
}

#bottleCustomisationBoxes {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bottle-custom-box {
    width: 54px;
    height: 64px;
    border: 1px solid #ccc;
    background: #fafafa;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    user-select: none;
    border-radius: 0;
    flex-shrink: 0;
}

.bottle-custom-box:hover {
    border-color: #000;
}

.bottle-custom-box.active {
    border: 1.5px solid #000;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bottle-custom-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bottle-custom-box-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
    border: 1px dashed #e0e0e0;
}

/* =============== ADD TO BAG / OUT OF STOCK =============== */
.add-to-cart {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 0;
    box-sizing: border-box;
}

.add-to-cart:hover:not(:disabled) {
    background: #222;
    border-color: #222;
}

.add-to-cart:disabled {
    background: #f5f5f5;
    border-color: #eaeaea;
    color: #999;
    cursor: not-allowed;
}

/* =============== CONFIDENCE / TRUST LINE =============== */
.confidence-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid #eee;
    border-bottom: 0.5px solid #eee;
    padding: 12px 0;
    margin-bottom: 25px;
    width: 100%;
}

.confidence-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 600;
    color: #333;
}

.confidence-item svg {
    flex-shrink: 0;
}

/* =============== DELIVERY ESTIMATE & TIMELINE =============== */
.delivery-estimate-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.delivery-estimate-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.delivery-estimate-title {
    font-family: 'Gotham Narrow Bold', sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #000;
}

.delivery-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 14px;
    padding-top: 4px;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 12px;
    right: 12px;
    height: 1px;
    background: #ddd;
    z-index: 1;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    margin-bottom: 6px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #000;
}

.timeline-step.future .timeline-dot {
    background: #fff;
    box-shadow: 0 0 0 1px #ccc;
}

.timeline-label {
    font-size: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

.timeline-date {
    font-size: 9px;
    font-weight: bold;
    color: #000;
    margin-top: 2px;
}

/* =============== ACCORDIONS =============== */
.accordion-container {
    width: 100%;
    border: none;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
    padding: 0;
}

.accordion-item {
    width: 100%;
    margin-bottom: 6px;
}

.accordion-header {
    width: auto;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    color: #000;
    outline: none;
}

.accordion-header:hover {
    opacity: 0.6;
}

.accordion-icon {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: #000;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accordion-icon.active {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
    font-size: 11px;
    line-height: 1.6;
    color: #555;
    letter-spacing: 0.5px;
    padding: 0;
}

.accordion-content.active {
    max-height: 1400px;
    padding: 8px 0 12px 0;
}

.accordion-content p {
    margin: 0 0 12px 0;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.note-card {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.note-tier {
    font-size: 7.5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 4px;
}

.note-desc {
    font-size: 9.5px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

/* Scent Profile & Fragrance Pyramid Styles */
.scent-profile-section {
    width: 100%;
    margin-bottom: 16px;
}

.scent-key-notes-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 0 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #EBEBEB;
    flex-wrap: wrap;
}

.scent-note-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 calc(20% - 5px);
    max-width: calc(20% - 5px);
    box-sizing: border-box;
}

.scent-note-icon-wrap {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.scent-note-icon-wrap img {
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.06));
}

.scent-note-label {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #000;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
}

.scent-pyramid-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.scent-pyramid-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease;
}

.scent-pyramid-card:hover {
    border-color: #D0D0D0;
}

.scent-pyramid-icon {
    width: 26px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scent-pyramid-icon svg {
    width: 24px;
    height: 34px;
    display: block;
}

.scent-pyramid-content {
    flex: 1;
    min-width: 0;
}

.scent-pyramid-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.scent-tier-badge {
    display: inline-block;
    background: #000000;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 1.5px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.scent-tier-desc {
    font-family: inherit;
    font-size: 10.5px;
    color: #333333;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.scent-tier-notes {
    font-family: inherit;
    font-size: 11px;
    color: #444444;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.35;
}

.lab-badges {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lab-badge {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    padding: 4px 8px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

.ingredients-list {
    font-size: 10.5px;
    opacity: 0.8;
}

/* =============== IMAGE GALLERY (DESKTOP: STACKED / MOBILE: SWIPE SLIDER) =============== */
.slider {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible;
    position: relative;
    background: transparent;
}

.slider-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.slider-track img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #fbfbfb;
    border-radius: 2px;
}

.arrow {
    display: none !important;
}

.slider-dots {
    display: none;
}

/* =============== PAGE LAYOUT STRUCTURE =============== */
.page-wrap {
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 80px auto 60px !important;
    padding: 0 40px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 50px !important;
    box-sizing: border-box;
}

.product-media-wrap {
    width: 50% !important;
    max-width: 480px !important;
    position: relative !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    box-sizing: border-box;
}

.product-info-wrap {
    width: 46% !important;
    max-width: 460px !important;
    margin-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    box-sizing: border-box;
    position: sticky !important;
    top: 85px !important;
    align-self: flex-start !important;
    position: relative !important;
}

#topRatingSummary {
    position: absolute;
    right: 0;
    top: 2px;
    margin: 0;
    z-index: 10;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    cursor: pointer;
}

.product-title,
.product-name-short {
    padding-right: 140px;
}

@media(max-width: 900px) {
    .accordion-container {
        margin-top: 0px !important;
    }

    .page-wrap {
        flex-direction: column !important;
        margin: 70px auto 40px !important;
        padding: 0 20px !important;
        gap: 30px !important;
        transition: margin-top 0.3s ease;
    }

    .product-media-wrap {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: auto !important;
        align-items: center !important;
    }

    .product-info-wrap {
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: auto !important;
    }

    .slider {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        position: relative !important;
        border-radius: 4px;
        background: #fcfaf8;
        touch-action: pan-y;
    }

    .slider-track {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        width: 100% !important;
        height: 100% !important;
    }

    .slider-track img {
        width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 4px;
    }

    .slider-dots {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 12px !important;
        width: 100% !important;
    }

    .slider-dots div {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .slider-dots div.active {
        width: 18px;
        border-radius: 3px;
        background: #000;
    }

    body.keyboard-active header {
        transform: translateY(-100%);
    }

    body.keyboard-active .page-wrap {
        margin-top: 15px !important;
    }

    #topRatingSummary {
        position: absolute !important;
        right: 0 !important;
        top: 2px !important;
        margin: 0 !important;
        z-index: 10;
    }

    .product-title,
    .product-name-short {
        padding-right: 140px !important;
    }

    /* Compact spacing on mobile so Add to Bag button is never cut off */
    .price-container {
        margin-bottom: 14px !important;
    }
    #sizePickerContainer {
        margin-bottom: 12px !important;
    }
    #bottleCustomisationContainer {
        margin-bottom: 12px !important;
    }
    #bottleCustomisationLabel {
        margin-bottom: 5px !important;
    }
    .bottle-custom-box {
        height: 54px !important;
        width: 48px !important;
    }
    .add-to-cart {
        margin-top: 10px !important;
        margin-bottom: 4px !important;
    }
}
