/* ============================================================
   Seraph Living — ecosystem layer (loaded last)
   One system, one accent per store: Essentials botanical green,
   Shop harvest copper (from arte*), hub ink. Store strip above
   the header; hub split panels.
   ============================================================ */

/* ---------- Store accents (body.store-*) ---------- */
.store-shop {
    --accent: #AB5700;
    --accent-hover: #8A4600;
    --accent-soft: #F5EADF;
    --accent-border: #D9A877;
    --green: #AB5700;
    --green-deep: #8A4600;
}
.store-sound {
    --accent: #25324A;
    --accent-hover: #1A2436;
    --accent-soft: #E6E9EF;
    --accent-border: #8C97AD;
    --green: #25324A;
    --green-deep: #1A2436;
}
.store-perfumes {
    --accent: #4A2A3F;
    --accent-hover: #361E2E;
    --accent-soft: #F0E8EC;
    --accent-border: #A88A9C;
    --green: #4A2A3F;
    --green-deep: #361E2E;
}
.store-hub {
    --accent: #1A1A18;
    --accent-hover: #0E0E0D;
    --accent-soft: #ECECE8;
    --accent-border: #D2D2CC;
    --green: #1A1A18;
    --green-deep: #0E0E0D;
}

/* ---------- Store strip: Seraph Living · Essentials · Shop ---------- */
:root { --strip-h: 0px; --header-total: calc(var(--nav-h) + var(--strip-h)); }
html:has(.store-strip) { --strip-h: 32px; }
html:root:has(.ad-bar) { --header-total: calc(var(--nav-h) + var(--strip-h) + var(--ad-bar-h)); }

.store-strip {
    height: var(--strip-h);
    background: var(--text);
    color: var(--on-green);
}
.store-strip__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 28px;
}
.store-strip__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 241, 232, 0.62);
    transition-property: color;
    transition-duration: 160ms;
    transition-timing-function: var(--micro-ease, ease-out);
}
.store-strip__link[aria-current="page"] { color: var(--on-green); font-weight: 500; }
.store-strip__link[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
}
.store-strip__link--shop[aria-current="page"]::after { background: #D9A877; }
.store-strip__link--sound[aria-current="page"]::after { background: #8C97AD; }
.store-strip__link--perfumes[aria-current="page"]::after { background: #A88A9C; }
.store-strip__note { margin-left: auto; font-size: 11px; letter-spacing: 0.04em; color: rgba(244, 241, 232, 0.62); }
@media (hover: hover) and (pointer: fine) {
    .store-strip__link:hover { color: var(--on-green); }
}
.store-strip__link { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 760px) {
    .store-strip__note { display: none; }
    /* Phones: one line that swipes sideways, padded on both ends, with a fade hinting at more */
    .store-strip__inner {
        gap: 18px;
        padding-inline: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
                mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }
    .store-strip__inner::-webkit-scrollbar { display: none; }
    .store-strip__inner::after { content: ''; flex: 0 0 1px; } /* keeps right padding inside the scroll area */
    .store-strip__link { letter-spacing: 0.1em; }
}

/* ---------- Hub: two store panels (colour blocks; photography goes in when it is real) ---------- */
.hub-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: min(88svh, 860px);
    padding-top: var(--header-total);
}
.hub-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    padding: clamp(28px, 4vw, 56px);
    color: var(--on-green);
}
.hub-panel--essentials { background: #1F3B2C; }
.hub-panel--shop { background: #AB5700; }
.hub-panel--sound { background: #25324A; }
.hub-panel--perfumes { background: #4A2A3F; }
.hub-panel__name {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(40px, 4.4vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
}
.hub-panel__line { font-size: 16px; line-height: 1.5; margin: 0 0 28px; color: rgba(244, 241, 232, 0.86); max-width: 36ch; text-wrap: pretty; }
.hub-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: var(--r-minimal);
    background: var(--on-green);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
}
.hub-panel__cta i { transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.hub-panel--essentials .hub-panel__cta { color: #1F3B2C; }
.hub-panel--shop .hub-panel__cta { color: #8A4600; }
.hub-panel--sound .hub-panel__cta { color: #25324A; }
.hub-panel--perfumes .hub-panel__cta { color: #4A2A3F; }
.hub-panel__link { position: absolute; inset: 0; z-index: 1; }
.hub-panel__link:focus-visible { outline: 2px solid var(--on-green); outline-offset: -8px; }
@media (hover: hover) and (pointer: fine) {
    .hub-panel:hover .hub-panel__cta i { transform: translateX(3px); }
}
.hub-statement { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--border); }
.hub-statement__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.hub-statement__body { margin: 0; max-width: 24ch; font-family: var(--font-title); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.hub-statement__links { margin: 0; padding: 0; list-style: none; }
.hub-statement__links li + li { border-top: 1px solid var(--border); }
.hub-statement__links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; color: var(--text); }
.hub-statement__links i { font-size: 16px; color: var(--text-secondary); transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) {
    .hub-statement__links a:hover i { transform: translateX(3px); color: var(--text); }
}
@media (max-width: 760px) {
    .hub-statement__grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .hub-split { grid-template-columns: 1fr; min-height: 0; }
    .hub-panel { min-height: 44svh; }
}
@media (max-width: 760px) {
    .hub-split { grid-template-columns: 1fr; min-height: 0; }
    .hub-panel { min-height: 60svh; }
}
@media (prefers-reduced-motion: reduce) {
    .hub-panel__cta i { transition: none; }
}

/* ---------- Bag: which store each line comes from ---------- */
.line-store { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.line-store--shop { color: #8A4600; }
.line-store--essentials { color: #1F3B2C; }
.line-store--sound { color: #25324A; }
.line-store--perfumes { color: #4A2A3F; }

/* ---------- Custom dropdown (select-menu.js) ----------
   Motion: transitions.dev menu dropdown, pasted as shipped. */
:root {
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-closing-scale: 0.99;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-dropdown {
  transform-origin: top left;
  transform: scale(var(--dropdown-pre-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-open-dur) var(--dropdown-ease),
    opacity   var(--dropdown-open-dur) var(--dropdown-ease);
  will-change: transform, opacity;
}
.t-dropdown[data-origin="top-right"]     { transform-origin: top right; }
.t-dropdown[data-origin="top-center"]    { transform-origin: top center; }
.t-dropdown[data-origin="bottom-left"]   { transform-origin: bottom left; }
.t-dropdown[data-origin="bottom-center"] { transform-origin: bottom center; }
.t-dropdown[data-origin="bottom-right"]  { transform-origin: bottom right; }
.t-dropdown.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.t-dropdown.is-closing {
  transform: scale(var(--dropdown-closing-scale));
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--dropdown-close-dur) var(--dropdown-ease),
    opacity   var(--dropdown-close-dur) var(--dropdown-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-dropdown { transition: none !important; }
}

.sm { position: relative; display: inline-block; }
.sm--block { display: block; }
.sm__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.sm__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-minimal);
    background: var(--base);
    color: var(--text);
    font: 500 13px/1.2 var(--font-ui);
    text-align: left;
    cursor: pointer;
    transition-property: border-color, background-color;
    transition-duration: 150ms;
    transition-timing-function: var(--dropdown-ease);
}
.sm--block .sm__trigger { min-height: 48px; font-size: 14px; font-weight: 400; }
.sm__value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm__chevron { font-size: 15px; color: var(--text-secondary); transition: transform 200ms var(--dropdown-ease); }
.sm__trigger[aria-expanded="true"] { border-color: var(--text); }
.sm__trigger[aria-expanded="true"] .sm__chevron { transform: rotate(180deg); }
.sm__trigger:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--base), 0 0 0 4px var(--accent); }
.sm__list {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    max-height: 320px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: calc(var(--r-minimal) + 6px);
    box-shadow: var(--shadow-medium);
}
.sm__list[hidden] { display: none; }
.sm__list[data-origin$="-right"] { left: auto; right: 0; }
.sm__list--up { top: auto; bottom: calc(100% + 6px); }
.sm__list:focus { outline: none; }
.sm__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 10px;
    border-radius: var(--r-minimal);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
}
.sm__option.is-active { background: var(--surface-2); }
.sm__option[aria-disabled="true"] { color: var(--text-secondary); cursor: default; }
.sm__check { visibility: hidden; font-size: 14px; color: var(--accent); }
.sm__option[aria-selected="true"] { font-weight: 500; }
.sm__option[aria-selected="true"] .sm__check { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
    .sm__chevron { transition: none; }
}

/* ---------- Human pass: type, numbers, photo-less layouts ---------- */
.display, .h1, .h2, .seraph-display, .seraph-h2,
.page > .container > .display, .shop-hero .display { font-weight: 400; letter-spacing: -0.015em; font-optical-sizing: auto; }
.seraph-display { font-size: clamp(42px, 5.4vw, 84px); line-height: 1; }
.seraph-h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.06; }
.h1 { letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.card__price, .product__price, .cart-summary, .checkout-summary, .seraph-gift__price, .stat-value, .line-total, .totals { font-variant-numeric: tabular-nums lining-nums; }

.card__name { min-height: 0; }
.card__sub { margin: 4px 0 8px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }

/* A photo stand-in set like the printed label: name and spec on the packaging ground. */
.label-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: clamp(16px, 8%, 32px);
    background: var(--surface);
    color: var(--text);
}
.label-tile__name { font-family: var(--font-title); font-size: clamp(20px, 2.1vw, 30px); line-height: 1.08; letter-spacing: -0.01em; max-width: 12ch; text-wrap: balance; }
.label-tile__meta { font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.store-shop .label-tile { background: #F3ECE3; }
.store-sound .label-tile { background: #ECEEF2; }
.store-perfumes .label-tile { background: #F1EBEE; }
.product__hero .label-tile { aspect-ratio: 4 / 5; }
.product__hero .label-tile__name { font-size: clamp(32px, 4vw, 56px); }
.card__media .label-tile { position: absolute; inset: 0; }
.label-tile--mark { justify-content: center; align-items: center; }
.label-tile__size { font-family: var(--font-title); font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -0.02em; color: var(--text-secondary); text-align: center; max-width: 9ch; text-wrap: balance; }

/* Text-only hero, story and gift: one column, left-aligned, wide measure for the display line. */
.seraph-hero--text { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.seraph-hero--text .seraph-hero__copy { padding: clamp(64px, 9vw, 128px) clamp(24px, 5vw, 80px); }
.seraph-hero.seraph-hero--text .seraph-display { max-width: 17ch; }
.seraph-hero--text .seraph-hero__sub { max-width: 52ch; }
.seraph-story--text { grid-template-columns: minmax(0, 1fr); }
.seraph-story--text .seraph-story__copy { max-width: 760px; padding-left: clamp(24px, 5vw, 80px); }
.seraph-gift--text { grid-template-columns: minmax(0, 1fr); }
.seraph-gift--text .seraph-gift__copy { max-width: 820px; }
.seraph-ingredients .ingredient__name { font-family: var(--font-title); font-weight: 400; font-size: 24px; }

.cats-filter__store { align-self: center; margin-right: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* ---------- Store home: category links under the hero ---------- */
.store-cats { display: flex; flex-wrap: wrap; gap: 8px; padding-top: clamp(24px, 3vw, 40px); padding-bottom: 8px; }
.store-cats__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-minimal);
    font-size: 14px;
    color: var(--text);
    transition-property: background-color, border-color, color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
    .store-cats__link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-green); }
}

/* ---------- Header: logo always centred ----------
   Equal side columns that can shrink below their content; links that do not fit fold into the menu
   (.header--compact, set by the nav partial), so nothing ever pushes the logo off centre. */
@media (min-width: 1025px) {
    .header__inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .header__nav { min-width: 0; overflow: hidden; }
    .header--compact .header__nav { visibility: hidden; }
    .header--compact .header__burger { display: flex; }
}
/* Tablet and phone keep the original header: logo left, tools right (seraph.css, max-width 1024px). */

/* Menu drawer: a right-hand panel from tablet width up; phones keep the full-screen sheet. */
@media (min-width: 600px) {
    .mobile-menu {
        left: auto;
        width: min(420px, 100%);
        border-left: 1px solid var(--border);
        box-shadow: -24px 0 48px -24px rgba(17, 17, 15, 0.18);
    }
}

/* FastBuy is its own brand: one wordmark, no sub line */
.logo--solo .logo__word { letter-spacing: 0.22em; padding-left: 0.22em; }
