/**
 * Studio Extrait - Product Bundle & Scent Picker Stylesheet
 * Covers luxury niche tab switcher, 3x50ml bottle picker slots,
 * search dropdown, and mobile slide-up scent drawer panel.
 */

/* =============== BUNDLE SCENT PROFILES (HIGH-FASHION MINIMALIST SELECTOR) =============== */
.bundle-scent-switcher-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.bundle-scent-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 9px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E2E2;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    box-shadow: none;
}

.bundle-scent-tab:hover {
    border-color: #000000;
    background: #FAFAFA;
}

.bundle-scent-tab.active {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
    box-shadow: none;
}

.bundle-tab-tag {
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 2px;
    line-height: 1.1;
}

.bundle-scent-tab.active .bundle-tab-tag {
    color: rgba(255, 255, 255, 0.6);
}

.bundle-tab-title {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.bundle-scent-tab.active .bundle-tab-title {
    color: #FFFFFF;
    font-weight: 700;
}

.bundle-tab-sub {
    font-size: 6.8px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #777777;
    margin-top: 2px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    line-height: 1.2;
}

.bundle-scent-tab.active .bundle-tab-sub {
    color: rgba(255, 255, 255, 0.55);
}

.bundle-scent-empty-notice {
    padding: 16px 14px;
    background: #FAFAFA;
    border: 1px dashed #D0D0D0;
    border-radius: 0px;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666666;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 600;
}

/* =============== BUNDLE IMAGE SLIDER OVERRIDES =============== */
.slider.bundle-slider {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 10 / 3 !important;
    margin: 0 auto 14px auto !important;
    overflow: hidden;
}

.slider.bundle-slider .slider-track {
    height: 100% !important;
}

.slider.bundle-slider .slider-track img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* =============== BUNDLE PICKER SLOTS & DROPDOWN =============== */
.bundle-choice-slot {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.bundle-scent-input {
    border: none;
    width: 100%;
    font-size: 11px;
    outline: none;
    font-family: inherit;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    color: #000;
}

.bundle-scent-clear {
    cursor: pointer;
    font-size: 9px;
    color: #1106e8;
    font-weight: bold;
    display: none;
    margin-left: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
    user-select: none;
}

.bundle-scent-clear:hover {
    text-decoration: underline;
}

.bundle-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #000;
    border-top: 1px solid #000;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .bundle-dropdown {
        top: auto !important;
        bottom: 100% !important;
        border-top: 1px solid #000 !important;
        border-bottom: none !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1) !important;
    }
}

.bundle-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #eee;
}

.bundle-dropdown-item:last-child {
    border-bottom: none;
}

.bundle-dropdown-item:hover {
    background: #f9f9f9;
}

/* =============== SCENT DRAWER SLIDE-UP PANEL (MOBILE ONLY) =============== */
.scent-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

.scent-drawer.active {
    display: block;
    pointer-events: auto;
}

.scent-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scent-drawer.active .scent-drawer-backdrop {
    opacity: 1;
}

.scent-drawer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    background: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.scent-drawer.active .scent-drawer-content {
    transform: translateY(0);
}

.scent-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.scent-drawer-title {
    font-family: 'Gotham Narrow Bold', sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scent-drawer-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    padding: 4px;
}

.scent-drawer-search-wrap {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

#drawerSearchInput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-sizing: border-box;
}

#drawerSearchInput:focus {
    border-color: #000;
}

.scent-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    gap: 12px;
}

.drawer-item-img-box {
    width: 50px;
    height: 50px;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.drawer-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.drawer-item-img.loaded {
    opacity: 1;
}

.drawer-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.drawer-item-name {
    font-family: 'Gotham Narrow Bold', sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-item-inspired {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
