/* ===== Oracle Font ===== */
@font-face {
    font-family: 'Oracle';
    font-style: normal;
    font-weight: 400;
    src: url('./external/fonts/Oracle-Regular.woff2') format('woff2');
    font-display: swap;
}

/* ===== Root Variables ===== */
:root {
    --font-body-family: "Oracle", "Inter", sans-serif;
    --font-heading-family: "Oracle", "Inter", sans-serif;
    --color-foreground: 18, 18, 18;
    --color-background: 255, 255, 255;
    --page-width: 140rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    height: 100%;
}

body {
    margin: 0;
    font-size: 1.6rem;
    font-family: var(--font-body-family);
    color: rgb(var(--color-foreground));
    background: rgb(var(--color-background));
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-width {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 3.2rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* ===== ANNOUNCEMENT BAR ===== */
#ss-top-announcement {
    background-color: #000;
    color: #fff;
    font-size: 1.2rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.36px;
    overflow: hidden;
    position: relative;
}

#ss-top-announcement a {
    color: #fff;
    text-decoration: none;
}

.ss-announcement__slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-announcement__item {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    animation: slideVertical 12s infinite;
    white-space: nowrap;
}

.ss-announcement__item:nth-child(1) { animation-delay: 0s; }
.ss-announcement__item:nth-child(2) { animation-delay: 4s; }
.ss-announcement__item:nth-child(3) { animation-delay: 8s; }

@keyframes slideVertical {
    0%   { opacity: 0; transform: translateY(100%); }
    5%   { opacity: 1; transform: translateY(0); }
    30%  { opacity: 1; transform: translateY(0); }
    35%  { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 0; transform: translateY(-100%); }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    border-bottom: 1px solid #eee;
    height: 64px;
}

@media (min-width: 992px) {
    .header-wrapper {
        height: 72px;
        padding: 0 1.2rem;
    }
}

.header__left,
.header__right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header__left  { justify-content: flex-start; }
.header__right { justify-content: flex-end; }

.header__center {
    flex: 0 0 auto;
    text-align: center;
    font-size: 0;
    line-height: 0;
}

.header__logo-link { display: block; }

.header__logo-svg {
    width: 142px;
    height: 16px;
}

@media (max-width: 767.98px) {
    .header__logo-svg {
        width: 156px;
        height: auto;
    }
}

.header__logo {
    max-width: 140px;
    height: auto;
}

.header__logo-text {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.custom-logo-link,
.custom-logo-link img,
.custom-logo {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===== NAVIGATION ===== */
.header__nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.header__nav-item {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 400;
    transition: opacity 0.2s;
    padding: 0 1rem;
    line-height: 64px;
    display: block;
}

@media (min-width: 992px) {
    .header__nav-item { line-height: 72px; }
}

.header__nav-item:hover { opacity: 0.7; }

.header__nav-item span { position: relative; }

.header__nav-item span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.2s;
}

.header__nav-item:hover span::after { width: 100%; }

.header__icon-link {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: inline-block;
    padding: 0 1rem;
    line-height: 64px;
}

@media (min-width: 992px) {
    .header__icon-link { line-height: 72px; }
}

.header__icon-link:hover { opacity: 0.7; }

.header__menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #000;
}

.header__menu-toggle svg {
    width: 2.4rem;
    height: 2.4rem;
}

@media (min-width: 992px) {
    .header__menu-toggle { display: none; }
}

@media (max-width: 991px) {
    .header__nav { display: none; }
}

/* ===== MEGA MENU ===== */
.header__nav-dropdown { position: static; }
.header__nav-trigger  { position: relative; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    column-gap: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    letter-spacing: 0;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    pointer-events: none;
}

@media (min-width: 992px) {
    .mega-menu {
        column-gap: 32px;
        padding: 56px 64px 72px;
        row-gap: 32px;
    }
}

.header__nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu a { text-decoration: none; color: inherit; }
.mega-menu a:hover { text-decoration: underline; }
.mega-menu__item { text-transform: none; }

.mega-menu__item h4 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.24px;
    line-height: 1.2;
    margin: 0 0 26px 0;
    text-transform: uppercase;
    color: #000;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu__main { font-size: 1.8rem; line-height: 1.2; }

@media (min-width: 992px) {
    .mega-menu__main { font-size: 2.2rem; }
}

.mega-menu__main li { margin-bottom: 12px; }

.mega-menu__main li.item-subscribe {
    display: flex;
    align-items: center;
}

.subscribe-tag {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 7.5px;
    color: #000;
    font-size: 0.95rem;
    line-height: 1;
    margin-left: 8px;
    padding: 2.5px 6px 1.5px;
    text-transform: uppercase;
}

.mega-menu__regular {
    font-size: 1.4rem;
    letter-spacing: 0.14px;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .mega-menu__regular {
        font-size: 1.6rem;
        letter-spacing: 0.16px;
    }
}

.mega-menu__regular li { margin-bottom: 20px; }

.mega-menu__regular li.scent-menu-item {
    padding-left: 20px;
    position: relative;
}

.mega-menu__regular li.scent-menu-item::before,
.mega-menu__scent-list li.scent-menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 100%;
}

.mega-menu__badge {
    display: inline-block;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #000;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08px;
    margin-left: 0.5rem;
    line-height: 1;
}

.mega-menu__badge--limited {
    background: #193128;
    color: #cea56f;
    border: none;
}

/* Scent colors — shared between mega menu and scent list */
.scent-santal-vetiver::before   { background-color: #ded9cd; }
.scent-bergamot-hinoki::before  { background-color: #b5c1a5; }
.scent-saffron-cedar::before    { background-color: #fce6d7; }
.scent-neroli-basil::before     { background-color: #f1f0e2; }
.scent-black-rose-oud::before   { background-color: #816369; }
.scent-lily-yuzu::before        { background-color: #193128; }

/* Promo image card in mega menu */
.media-wrapper {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.media-wrapper .objfit {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
}

.media-wrapper .media-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    font-size: 1.8rem;
    line-height: 1.06;
    color: #fff;
}

.media-wrapper .media-btn {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 28px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7.5px 40px 6.5px 14px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s linear;
}

.media-wrapper .media-btn svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.media-wrapper .media-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.media-wrapper .media-btn:hover svg path { fill: #fff; }

/* ===== BY SCENT MEGA MENU ===== */
.mega-menu--scent {
    display: block;
    grid-template-columns: none;
    padding: 2.4rem 6.4rem 4.5rem;
}

.mega-menu__horizontal-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 20px;
    row-gap: 20px;
    align-items: flex-start;
}

.mega-menu__horizontal-left { flex-shrink: 0; }

.mega-menu__title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 768px) {
    .mega-menu__title { font-size: 2.2rem; }
}

.mega-menu__horizontal-center { text-transform: none; }

.mega-menu__scent-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 390px;
    margin-left: 3vw;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .mega-menu__scent-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
    }
}

@media (min-width: 1440px) {
    .mega-menu__scent-list { margin-left: 10.5vw; }
}

.mega-menu__scent-list li { margin-bottom: 20px; }

.mega-menu__scent-list li.scent-menu-item {
    padding-left: 20px;
    position: relative;
    font-size: 1.4rem;
    letter-spacing: 0.14px;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .mega-menu__scent-list li.scent-menu-item {
        font-size: 1.6rem;
        letter-spacing: 0.16px;
    }
}

.mega-menu__scent-list li.scent-menu-item a { color: #000; text-decoration: none; }
.mega-menu__scent-list li.scent-menu-item a:hover { text-decoration: underline; }

.mega-menu__horizontal-right { text-align: right; }

.mega-menu__header-link {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.72px;
    color: #000;
    text-decoration: none;
}

.mega-menu__header-link:hover { text-decoration: underline; }

/* ===== MAIN CONTENT ===== */
.content-for-layout { min-height: 60vh; }

/* ===== CART COUNT BADGE ===== */
.ss-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 1rem;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    margin-left: 0.4rem;
    padding: 0 0.4rem;
    font-weight: 500;
    line-height: 1;
}

.ss-cart-trigger { position: relative; }

/* ===== MOBILE HEADER ICONS ===== */
.mobile-header-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.mobile-header-icon svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 991px) {
    .mobile-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__icon-link,
    .ss-search-trigger {
        display: none !important;
    }

    .header__left,
    .header__right {
        gap: 4px;
    }
}

.mobile-search-icon  { padding: 8px; }
.mobile-account-icon { padding: 8px; }

.mobile-cart-icon {
    padding: 8px;
    position: relative;
}

.mobile-cart-icon .ss-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    padding: 0 4px;
}

@media (min-width: 992px) {
    .mobile-drawer,
    .mobile-drawer-overlay,
    .mobile-search-bar {
        display: none !important;
    }
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
}

.mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-drawer__header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
}

.mobile-drawer__close {
    background: none;
    border: 1px solid #000;
    cursor: pointer;
    padding: 12px;
    line-height: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
}

.mobile-drawer__close svg { width: 18px; height: 18px; }

.mobile-drawer__nav {
    padding: 20px 24px;
    flex: 1;
}

.mobile-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-drawer__menu-item { margin-bottom: 24px; }

.mobile-drawer__menu-item a {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    display: block;
}

.mobile-drawer__menu-item a:hover { opacity: 0.7; }

body.mobile-drawer-open { overflow: hidden; }

/* Drawer panel system */
.mobile-drawer__panel {
    position: absolute;
    inset: 0;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-drawer__panel--main         { transform: translateX(0); pointer-events: auto; }
.mobile-drawer__panel--main.is-active { transform: translateX(0); pointer-events: auto; }
.mobile-drawer__panel--main.is-hidden { transform: translateX(-100%); pointer-events: none; }
.mobile-drawer__panel--sub          { transform: translateX(100%); pointer-events: none; }
.mobile-drawer__panel--sub.is-active  { transform: translateX(0); pointer-events: auto; }

.mobile-drawer__submenu-trigger {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-drawer__header--sub {
    justify-content: space-between;
    padding: 24px;
}

.mobile-drawer__back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    position: relative;
    z-index: 9999;
    pointer-events: auto !important;
}

.mobile-drawer__back svg { width: 7px; height: 12px; }

.mobile-drawer__submenu-content {
    padding: 0 24px 40px;
    overflow-y: auto;
    flex: 1;
}

.mobile-drawer__submenu-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 24px;
    color: #000;
}

.mobile-drawer__submenu-divider {
    height: 1px;
    background: #e5e5e5;
    margin-bottom: 28px;
}

.mobile-drawer__submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-drawer__submenu-list--primary li { margin-bottom: 16px; }

.mobile-drawer__submenu-list--primary a {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mobile-drawer__submenu-section { margin-top: 32px; }

.mobile-drawer__submenu-heading {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 16px;
}

.mobile-drawer__submenu-list--secondary li { margin-bottom: 12px; }

.mobile-drawer__submenu-list--secondary a {
    font-size: 15px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
}

.mobile-drawer__submenu-list--scent li { margin-bottom: 16px; }

.mobile-drawer__submenu-list--scent a {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-drawer__scent-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-drawer__promo {
    margin-top: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #B5B9BC;
}

.mobile-drawer__promo-link {
    text-decoration: none;
    display: block;
}

.mobile-drawer__promo-image {
    position: relative;
    aspect-ratio: 16/12;
    overflow: hidden;
}

.mobile-drawer__promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-drawer__promo-text {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.mobile-drawer__promo-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    background: #fff;
}

.mobile-drawer__promo-cta .arrow { font-size: 14px; }

/* ===== MOBILE SEARCH BAR ===== */
.mobile-search-bar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #eee;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 991px) {
    .mobile-search-bar { display: block; }
    #ss-search-overlay { display: none !important; }
}

.mobile-search-bar.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-search-bar__inner { padding: 16px 20px; }

.mobile-search-bar__form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-bar__icon { flex-shrink: 0; line-height: 0; }
.mobile-search-bar__icon svg { width: 18px; height: 18px; }

.mobile-search-bar__input {
    flex: 1;
    border: none;
    outline: none;
    box-shadow: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: #000;
    padding: 0;
    -webkit-appearance: none;
}

.mobile-search-bar__input:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.mobile-search-bar__input::placeholder { color: #999; }

.mobile-search-bar__input::-webkit-search-cancel-button,
.mobile-search-bar__input::-webkit-search-decoration {
    display: none;
}

.mobile-search-bar__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.mobile-search-bar__close svg { width: 16px; height: 16px; }

.mobile-search-results {
    display: none;
    padding: 0 20px 20px;
}

.mobile-search-results.has-results { display: block; }

.mobile-search-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.mobile-search-results__count { font-size: 14px; font-weight: 400; }

.mobile-search-results__view-all {
    font-size: 14px;
    text-decoration: underline;
    color: #000;
}

.mobile-search-results__view-all:hover { opacity: 0.7; }

.mobile-search-results__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-search-product { position: relative; }

.mobile-search-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mobile-search-product__image-wrapper {
    position: relative;
    background-color: #f5f5f5;
    padding-top: 100%;
    overflow: hidden;
}

.mobile-search-product__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-search-product__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #fff;
    font-size: 8px;
    letter-spacing: 0.5px;
    padding: 3px 5px 2px;
    text-transform: uppercase;
    z-index: 1;
}

.mobile-search-product__meta { padding: 8px 0 0; }

.mobile-search-product__subtitle {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 4px;
}

.mobile-search-product__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.mobile-search-product__price { font-size: 12px; margin-top: 4px; }

.mobile-search-product__add {
    position: absolute;
    bottom: 60px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-product__add svg { width: 14px; height: 14px; }

.mobile-search-loading {
    display: none;
    justify-content: center;
    padding: 20px;
}

.mobile-search-loading.is-loading { display: flex; }

.mobile-search-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #eee;
    border-top-color: #000;
    border-radius: 50%;
    animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-spin {
    to { transform: rotate(360deg); }
}

/* ===== CART DRAWER ===== */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer.active {
    pointer-events: auto;
    opacity: 1;
}

.cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.cart-drawer__title {
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.cart-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
}

.cart-drawer__close:hover { opacity: 0.7; }

.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-drawer__loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.cart-drawer__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: ss-spin 1s linear infinite;
}

.cart-drawer__empty {
    text-align: center;
    padding: 4rem 2rem;
}

.cart-drawer__empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-drawer__empty-text {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2rem;
}

.cart-drawer__continue-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s;
}

.cart-drawer__continue-btn:hover { background: #333; }

.cart-drawer__items { margin-bottom: 2rem; }

.cart-drawer__item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.cart-drawer__item:first-child { padding-top: 0; }

.cart-drawer__item-image {
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.cart-drawer__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer__item-details { flex: 1; }

.cart-drawer__item-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-drawer__item-variant {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.cart-drawer__item-price { font-size: 1.4rem; font-weight: 500; }

.cart-drawer__item-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cart-drawer__qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer__qty-btn:hover { border-color: #000; }

.cart-drawer__qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 0.5rem;
    font-size: 1.4rem;
}

.cart-drawer__item-remove {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.cart-drawer__item-remove:hover { color: #000; }

.cart-drawer__footer {
    border-top: 1px solid #e5e5e5;
    padding: 2rem;
}

.cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.cart-drawer__subtotal-label {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-drawer__subtotal-amount { font-weight: 600; }

.cart-drawer__note {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

.cart-drawer__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer__checkout-btn,
.cart-drawer__cart-btn {
    padding: 1.4rem 2rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
}

.cart-drawer__checkout-btn {
    background: #000;
    color: #fff;
}

.cart-drawer__checkout-btn:hover { background: #333; }

.cart-drawer__cart-btn {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

.cart-drawer__cart-btn:hover { background: #f5f5f5; }
