/* =====================================================
   SCENTARA — HEADER & FOOTER
   css/header-footer.css
   Loaded globally via functions.php
===================================================== */

/* =====================================================
   GENERATEPRESS KILL SWITCH
   Aggressively neutralise GP's default header/footer
   so our custom header.php / footer.php take over clean
===================================================== */
#site-header,
.site-header,
.gen-footer,
.site-footer .inside-footer,
#gen-footer,
footer#gen-footer,
.generate-back-to-top,
.main-navigation,
.nav-float .main-nav,
#menu-toggle,
.mobile-menu-control-wrapper,
.site-logo,
.main-title,
.site-description {
    display: none !important;
}

/* =====================================================
   ANNOUNCE BAR
===================================================== */
#scentara-announce-bar {
    position: relative;
    z-index: 201;
    background: var(--gold);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.5rem 3rem;
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.announce-inner {
    text-align: center;
}

#scentara-announce-bar a {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.5rem;
}
#scentara-announce-bar a:hover { opacity: 0.7; }

.announce-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--black);
    opacity: 0.55;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity var(--ease), background var(--ease);
}
.announce-close:hover { opacity: 1; background: rgba(0,0,0,0.1); }

/* =====================================================
   SITE HEADER
===================================================== */
.scentara-header {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 200;
    height: 68px;
    background: rgba(13, 11, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    transition: background var(--ease), border-color var(--ease), top var(--ease);
}

/* Scrolled state */
.scentara-header.is-scrolled {
    background: rgba(13, 11, 14, 0.98);
    border-bottom-color: rgba(201, 169, 110, 0.22);
}

.scentara-header__inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Icons group — always flex, never hidden by default */
.scentara-header__icons {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}

/* ── Logo ──────────────────────────────────────────── */
.scentara-header__logo { flex-shrink: 0; }

.scentara-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.scentara-logo__text {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1;
    transition: color var(--ease);
}
.scentara-logo:hover .scentara-logo__text { color: var(--gold-lt); }
.scentara-logo__img {
    height: 36px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

/* ── Primary Nav ───────────────────────────────────── */
.scentara-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.scentara-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.1rem;
}

.scentara-nav__item { position: relative; }

.scentara-nav__link {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--body);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 239, 230, 0.75);
    text-decoration: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: color var(--ease), background var(--ease);
}
.scentara-nav__link:hover,
.scentara-nav__item.is-current > .scentara-nav__link {
    color: var(--gold);
    background: rgba(201, 169, 110, 0.07);
}
.scentara-nav__link.is-sale { color: var(--rose); }
.scentara-nav__link.is-sale:hover { color: #e06; background: rgba(201,80,110,0.07); }

.nav-chevron {
    flex-shrink: 0;
    opacity: 0.45;
    transition: transform var(--ease), opacity var(--ease);
}
.scentara-nav__item:hover > .scentara-nav__link .nav-chevron {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* Dropdown */
.scentara-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: var(--plum-lt);
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), transform var(--ease), visibility 0s var(--ease);
}
.scentara-nav__item:hover > .scentara-nav__dropdown,
.scentara-nav__item:focus-within > .scentara-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity var(--ease), transform var(--ease), visibility 0s;
}
/* Tip arrow */
.scentara-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--plum-lt);
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    border-left: 1px solid rgba(201, 169, 110, 0.15);
}
.scentara-nav__dropdown-link {
    display: block;
    padding: 0.62rem 1.2rem;
    font-family: var(--body);
    font-size: 0.78rem;
    color: rgba(245, 239, 230, 0.68);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 169, 110, 0.07);
    transition: color var(--ease), background var(--ease);
}
.scentara-nav__dropdown-item:last-child .scentara-nav__dropdown-link { border-bottom: none; }
.scentara-nav__dropdown-link:hover { color: var(--gold); background: rgba(201,169,110,0.06); }

/* Header icons styles defined above */

.scentara-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius);
    color: rgba(245, 239, 230, 0.72);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: color var(--ease), background var(--ease);
}
.scentara-icon-btn:hover {
    color: var(--ivory);
    background: rgba(201, 169, 110, 0.08);
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--body);
    font-size: 0.54rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    padding: 0 3px;
    border: 1.5px solid var(--black);
    line-height: 1;
    transition: transform var(--ease);
}
.cart-badge--hidden { display: none; }

/* ── Hamburger ─────────────────────────────────────── */
.scentara-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 0 10px;
    transition: background var(--ease);
}
.scentara-hamburger:hover { background: rgba(201,169,110,0.08); }
.hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--ivory);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
    transform-origin: center;
}
/* Open state */
.scentara-hamburger.is-open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.scentara-hamburger.is-open .hamburger-line:nth-child(2) { opacity: 0; width: 0; }
.scentara-hamburger.is-open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   SEARCH OVERLAY
===================================================== */
#scentara-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(13, 11, 14, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    align-items: flex-start;
    justify-content: center;
    padding-top: 14vh;
}
#scentara-search-overlay.is-open {
    display: flex;
    animation: fadeIn 0.22s ease forwards;
}

.search-overlay__box { width: min(700px, 90vw); }

.search-overlay__form { margin-bottom: 0; }

.search-overlay__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.38);
    padding-bottom: 0.65rem;
}
.search-overlay__icon { color: rgba(245,239,230,0.35); flex-shrink: 0; display: flex; }

.search-overlay__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 300;
    color: var(--ivory);
    letter-spacing: 0.04em;
    padding: 0;
}
.search-overlay__input::placeholder { color: rgba(245,239,230,0.2); }

.search-overlay__close {
    background: none;
    border: none;
    color: rgba(245,239,230,0.4);
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    padding: 0.25rem;
    border-radius: 50%;
    transition: color var(--ease), background var(--ease);
}
.search-overlay__close:hover { color: var(--ivory); background: rgba(245,239,230,0.06); }

.search-overlay__hints { margin-top: 2rem; }
.search-hints-label {
    font-family: var(--body);
    font-size: 0.63rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,239,230,0.28);
    margin-bottom: 1rem;
}
.search-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.search-tag {
    padding: 0.44rem 1.1rem;
    border: 1px solid rgba(201,169,110,0.18);
    border-radius: 20px;
    font-family: var(--body);
    font-size: 0.78rem;
    color: rgba(245,239,230,0.55);
    text-decoration: none;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.search-tag:hover { border-color: var(--gold); color: var(--ivory); background: rgba(201,169,110,0.06); }

/* =====================================================
   MOBILE DRAWER
===================================================== */
.scentara-mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--black);
    flex-direction: column;
    overflow-y: auto;
}
.scentara-mobile-drawer.is-open {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem var(--gutter);
    border-bottom: 1px solid rgba(201,169,110,0.1);
    background: rgba(13,11,14,0.95);
    position: sticky;
    top: 0;
    z-index: 1;
}
.mobile-drawer__logo {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.mobile-drawer__close {
    background: none;
    border: none;
    color: rgba(245,239,230,0.6);
    cursor: pointer;
    display: flex;
    padding: 0.3rem;
    border-radius: 50%;
    transition: color var(--ease), background var(--ease);
}
.mobile-drawer__close:hover { color: var(--ivory); background: rgba(201,169,110,0.08); }

.mobile-drawer__menu {
    list-style: none;
    padding: 1rem var(--gutter) 0;
    margin: 0;
}
.mobile-drawer__menu li a {
    display: block;
    padding: 1rem 0;
    font-family: var(--body);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ivory);
    text-decoration: none;
    border-bottom: 1px solid rgba(201,169,110,0.08);
    transition: color var(--ease), padding-left var(--ease);
}
.mobile-drawer__menu li a:hover { color: var(--gold); padding-left: 6px; }
.mobile-drawer__menu li a.is-sale { color: var(--rose); }
.mobile-drawer__menu li:last-child a { border-bottom: none; }

.mobile-drawer__footer-links {
    padding: 1.5rem var(--gutter) 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    border-top: 1px solid rgba(201,169,110,0.1);
}
.mobile-drawer__footer-links a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--body);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: rgba(245,239,230,0.5);
    text-decoration: none;
    transition: color var(--ease);
}
.mobile-drawer__footer-links a:hover { color: var(--gold); }

/* Backdrop */
.scentara-overlay-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(13,11,14,0.6);
}
.scentara-overlay-backdrop.is-visible { display: block; }

/* =====================================================
   BODY OFFSET — fixed header
===================================================== */
body {
    padding-top: 0 !important; /* We control this via JS */
}

/* =====================================================
   FOOTER
===================================================== */
.scentara-footer {
    background: var(--black);
    border-top: 1px solid rgba(201,169,110,0.1);
    font-family: var(--body);
}

.sc-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.scentara-footer__top {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.scentara-footer__grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

/* Brand col */
.footer-logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo__text {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.footer-logo__img {
    height: 32px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.75;
}

.footer-brand-desc {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(245,239,230,0.38);
    line-height: 1.85;
    max-width: 250px;
    margin-bottom: 1.5rem;
}

/* Social */
.footer-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}
.footer-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.2);
    color: rgba(245,239,230,0.42);
    text-decoration: none;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.footer-social__btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.08); }
.footer-social__btn svg { width: 16px; height: 16px; }

/* Payments */
.footer-payments {}
.footer-payments__label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,239,230,0.28);
    margin-bottom: 0.6rem;
}
.footer-payments__icons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.payment-chip {
    background: rgba(245,239,230,0.06);
    border: 1px solid rgba(245,239,230,0.1);
    border-radius: 3px;
    padding: 0.26rem 0.6rem;
    font-size: 0.58rem;
    font-weight: 500;
    color: rgba(245,239,230,0.38);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Nav columns */
.footer-col {}
.footer-col__title {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.footer-col__links,
.footer-col__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col__links li { margin-bottom: 0.58rem; }
.footer-col__links a {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(245,239,230,0.44);
    text-decoration: none;
    transition: color var(--ease), padding-left var(--ease);
    display: inline-block;
}
.footer-col__links a:hover { color: var(--ivory); padding-left: 4px; }
.footer-col__links a.is-sale { color: var(--rose); }
.footer-col__links a.is-sale:hover { color: #e8637f; }

/* Bottom bar */
.scentara-footer__bottom {
    border-top: 1px solid rgba(201,169,110,0.07);
    padding: 1.5rem 0;
}
.scentara-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copyright {
    font-size: 0.7rem;
    color: rgba(245,239,230,0.25);
    line-height: 1.6;
    margin: 0;
}
.footer-copyright a { color: rgba(245,239,230,0.25); text-decoration: none; transition: color var(--ease); }
.footer-copyright a:hover { color: var(--gold); }

.footer-bottom-social { display: flex; gap: 1rem; align-items: center; }
.footer-bottom-social a {
    font-size: 0.72rem;
    color: rgba(245,239,230,0.28);
    text-decoration: none;
    transition: color var(--ease);
}
.footer-bottom-social a:hover { color: var(--gold); }

/* =====================================================
   COOKIE BANNER
===================================================== */
.scentara-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    background: var(--plum-lt);
    border-top: 1px solid rgba(201,169,110,0.15);
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.scentara-cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text {
    font-size: 0.78rem;
    color: rgba(245,239,230,0.62);
    line-height: 1.65;
    max-width: 640px;
    margin: 0;
}
.cookie-banner__text a { color: var(--gold); }
.cookie-banner__actions { display: flex; gap: 0.65rem; flex-shrink: 0; }
.cookie-btn {
    padding: 0.58rem 1.3rem;
    border-radius: var(--radius);
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--ease);
}
.cookie-btn--accept { background: var(--gold); color: var(--black); border: none; }
.cookie-btn--accept:hover { background: var(--gold-lt); }
.cookie-btn--decline { background: transparent; color: rgba(245,239,230,0.6); border: 1px solid rgba(201,169,110,0.28); }
.cookie-btn--decline:hover { border-color: var(--gold); color: var(--ivory); }

/* =====================================================
   UTILITY: fadeIn
===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
/* ---- 1024px: hide nav links text, show hamburger ---- */
@media (max-width: 1024px) {
    .scentara-header__nav { display: none; }
    .scentara-hamburger   { display: flex; }
}

/* ---- 768px: compact padding, ALL icons stay visible ---- */
@media (max-width: 768px) {
    .scentara-header__inner {
        padding: 0 1rem;
        gap: 0.25rem;
    }
    .scentara-header__icons {
        gap: 0.1rem;
    }
    /* Show all icons — search, wishlist, account, cart, hamburger */
    .scentara-icon-btn {
        display: flex;
        width: 36px;
        height: 36px;
    }
    .scentara-icon-btn svg {
        width: 18px;
        height: 18px;
    }
    .scentara-logo__text {
        font-size: 1.35rem;
        letter-spacing: 0.14em;
    }
    /* Hide account on medium mobile — less important than search/wishlist/cart */
    .scentara-icon-btn[aria-label="My Account"] {
        display: none;
    }
}

/* ---- 480px: tightest — keep search + cart + hamburger ---- */
@media (max-width: 480px) {
    .scentara-header__inner { padding: 0 0.75rem; gap: 0.1rem; }
    .scentara-header__icons { gap: 0; }
    .scentara-logo__text { font-size: 1.2rem; letter-spacing: 0.1em; }
    .scentara-logo__img  { height: 26px; }
    .scentara-icon-btn   { width: 32px; height: 32px; }
    .scentara-icon-btn svg { width: 16px; height: 16px; }
    /* On very small screens: drop wishlist too, keep search + cart + hamburger */
    .scentara-icon-btn[aria-label="Wishlist"] { display: none; }
    .scentara-hamburger { width: 34px; height: 34px; padding: 0 6px; }
}

/* ---- Announce bar mobile ---- */
@media (max-width: 540px) {
    #scentara-announce-bar {
        font-size: 0.64rem;
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        justify-content: flex-start;
        text-align: left;
    }
    .scentara-cookie-banner { flex-direction: column; gap: 1rem; }
}

@media (max-width: 1100px) {
    .scentara-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-col--brand { grid-column: 1 / -1; }
    .footer-brand-desc { max-width: 100%; }
}

@media (max-width: 540px) {
    .scentara-footer__grid { grid-template-columns: 1fr; }
    .footer-col--brand { grid-column: auto; }
    .scentara-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
