/* Hayati Essence
   Layout: product-led ivory canvas, serif display headings over a quiet sans interface,
   gold reserved for actions and selected states. Mobile first. */
:root {
  --ivory: #FAF8F4;
  --cream: #F2EDE5;
  --ink: #191919;
  --gold: #B78736;        /* brand accent: borders, icons, selected states */
  --gold-deep: #946B26;   /* buttons and gold text: passes AA with white / on ivory */
  --gold-press: #7C591E;
  --line: #E4DED4;
  --white: #FFFFFF;
  --muted: #6A645B;
  --scrim: rgba(25, 25, 25, .52);
  --danger: #A4372B;
  --ok: #3F6B45;

  --serif: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --section: clamp(48px, 7vw, 96px);
  --radius: 2px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-deep); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.375rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.screen-reader-text, .he-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 200; }
.skip-link:focus { top: 12px; color: var(--white); }

.he-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.he-section { padding-block: var(--section); }
.he-section--cream { background: var(--cream); }
.he-eyebrow { font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin: 0 0 1rem; }
.he-lede { font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--ink); max-width: 34em; }
.he-muted { color: var(--muted); }
.he-sechead { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.he-sechead p { margin: .6rem 0 0; color: var(--muted); max-width: 40em; }
.he-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; border-bottom: 1px solid var(--gold); padding-bottom: 3px; min-height: 28px; }
.he-post .he-link, .he-feature__text .he-link { justify-self: start; }
.he-link svg, .he-btn svg { width: 16px; height: 16px; flex: none; }
.he-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: one gold action style, one outline style */
.he-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wp-block-button__link, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 1px solid var(--gold-deep); border-radius: var(--radius);
  background: var(--gold-deep); color: var(--white); font-weight: 600; font-size: .875rem; letter-spacing: .02em; line-height: 1.2;
  text-align: center; transition: background-color .15s ease, border-color .15s ease;
}
.he-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.wp-block-button__link:hover, .wc-block-components-button:not(.is-link):hover { background: var(--gold-press); border-color: var(--gold-press); color: var(--white); }
.he-btn--ghost, .woocommerce a.button.he-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.he-btn--ghost:hover, .woocommerce a.button.he-btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.he-btn--block { width: 100%; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .he-btn[disabled] { opacity: .45; cursor: not-allowed; }
.he-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; padding: 0; position: relative; color: var(--ink); border-radius: 50%; }
.he-iconbtn:hover { color: var(--gold-deep); }

/* Forms */
.he-input, .woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .he-prose input[type=text], .he-prose input[type=email], .he-prose textarea, .select2-container .select2-selection {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.he-input:focus, .woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { border-color: var(--gold); outline: 0; box-shadow: 0 0 0 2px rgba(183, 135, 54, .25); }
label { font-size: .875rem; font-weight: 600; }

/* Header */
.he-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ivory); border-bottom: 1px solid var(--line); }
.admin-bar .he-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .he-header { top: 46px; } }
.he-header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 64px; }
.he-logo { display: block; justify-self: center; line-height: 0; }
.he-logo img, .he-logo .custom-logo { height: 44px; width: auto; }
.he-nav { display: none; }
.he-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.he-actions .he-account { display: none; }
.he-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-deep); color: var(--white); font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.he-count:empty, .he-count[data-n="0"] { display: none; }
@media (min-width: 1000px) {
  .he-header__in { grid-template-columns: auto 1fr auto; gap: 40px; min-height: var(--header-h); }
  .he-menu-toggle { display: none; }
  .he-logo { justify-self: start; }
  .he-logo img, .he-logo .custom-logo { height: 52px; }
  .he-actions .he-account { display: inline-grid; }
  .he-nav { display: block; }
  .he-menu { display: flex; gap: clamp(20px, 3vw, 44px); }
  .he-menu > li { position: relative; }
  .he-menu > li > a { display: flex; align-items: center; min-height: var(--header-h); font-size: .875rem; font-weight: 500; letter-spacing: .01em; }
  .he-menu > li.current-menu-item > a, .he-menu > li.current-menu-ancestor > a, .he-menu > li > a[aria-current] { box-shadow: inset 0 -2px 0 var(--gold); }
  .he-menu .sub-menu { display: none; position: absolute; left: -20px; top: 100%; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 10px 0; z-index: 5; }
  .he-menu > li:hover > .sub-menu, .he-menu > li:focus-within > .sub-menu { display: block; }
  .he-menu .sub-menu a { display: block; padding: 10px 20px; font-size: .875rem; }
  .he-menu .sub-menu a:hover { background: var(--ivory); }
}

/* Search panel */
.he-search { border-top: 1px solid var(--line); background: var(--white); }
.he-search__in { padding-block: 16px 20px; }
.he-search form { display: flex; gap: 8px; }
.he-search input[type=search] { flex: 1; min-width: 0; }
.he-results { display: grid; gap: 2px; margin-top: 12px; }
.he-results a { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 8px; }
.he-results a:hover { background: var(--ivory); color: var(--ink); }
.he-results img { width: 52px; height: 52px; object-fit: cover; background: var(--cream); }
.he-results strong { font-weight: 600; font-size: .9375rem; }
.he-results span { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.he-results__none { padding: 12px 8px; color: var(--muted); font-size: .9375rem; margin: 0; }

/* Drawers */
.he-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 90; }
.he-drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(420px, 92vw); background: var(--ivory); z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); visibility: hidden; }
.he-drawer--nav { right: auto; left: 0; width: min(360px, 86vw); transform: translateX(-100%); }
.he-drawer.is-open { transform: none; visibility: visible; }
.he-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.he-drawer__head h2 { font-size: 1.375rem; }
.he-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: reduce) { .he-drawer { transition: none; } html { scroll-behavior: auto; } }
.he-mnav > li { border-bottom: 1px solid var(--line); position: relative; }
.he-mnav > li > a { display: flex; align-items: center; min-height: 52px; font-family: var(--serif); font-size: 1.25rem; padding-right: 52px; }
.he-mnav .he-sub-toggle { position: absolute; right: -8px; top: 4px; }
.he-mnav .he-sub-toggle svg { transition: transform .15s ease; }
.he-mnav .he-sub-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.he-mnav .sub-menu { display: none; padding: 0 0 12px; }
.he-mnav li.is-open > .sub-menu { display: block; }
.he-mnav .sub-menu a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9375rem; }
.he-drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 20px; font-size: .875rem; font-weight: 600; }

/* Mini basket (WooCommerce markup) */
.he-drawer .woocommerce-mini-cart { display: grid; }
.he-drawer .woocommerce-mini-cart-item { display: grid; grid-template-columns: 72px 1fr 32px; gap: 4px 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.he-drawer .woocommerce-mini-cart-item > a:not(.remove) { display: contents; font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.he-drawer .woocommerce-mini-cart-item img { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 84px; object-fit: cover; background: var(--cream); }
.he-drawer .woocommerce-mini-cart-item .remove { grid-column: 3; grid-row: 1; width: 32px; height: 32px; display: grid; place-items: center; font-size: 1.25rem; color: var(--muted); }
.he-drawer .woocommerce-mini-cart-item .variation { grid-column: 2; display: flex; gap: 6px; margin: 0; font-size: .8125rem; color: var(--muted); }
.he-drawer .woocommerce-mini-cart-item .variation dt, .he-drawer .woocommerce-mini-cart-item .variation dd, .he-drawer .variation p { margin: 0; font-weight: 400; }
.he-drawer .woocommerce-mini-cart-item .quantity { grid-column: 2; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.he-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 18px 0 6px; margin: 0; font-size: 1rem; }
.he-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 12px 0 0; }
.he-drawer .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--ink); border-color: var(--ink); }
.he-drawer .woocommerce-mini-cart__empty-message { padding: 32px 0; color: var(--muted); text-align: center; }
.he-basket-note { font-size: .8125rem; color: var(--muted); margin: 12px 0 0; }

/* Hero */
.he-hero { background: var(--cream); overflow: hidden; }
.he-hero__in { display: grid; }
.he-hero__text { padding-block: clamp(36px, 7vw, 96px) clamp(28px, 4vw, 96px); }
.he-hero h1 { font-size: clamp(2.75rem, 7.2vw, 5rem); line-height: 1; margin-bottom: 1.25rem; max-width: 9em; }
.he-hero .he-lede { margin-bottom: 1.75rem; }
.he-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.he-hero__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.he-hero__media { margin-inline: calc(var(--gutter) * -1); }
.he-hero__media img { width: 100%; height: clamp(240px, 62vw, 420px); object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) {
  .he-hero__in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: stretch; gap: 24px; }
  .he-hero__text { align-self: center; }
  .he-hero__media { margin: 0 calc((100vw - min(100vw, var(--max))) / -2 - var(--gutter)) 0 0; position: relative; min-height: 560px; }
  .he-hero__media img { position: absolute; inset: 0; height: 100%; object-position: 50% 55%; -webkit-mask-image: linear-gradient(to right, transparent, #000 20%); mask-image: linear-gradient(to right, transparent, #000 20%); }
}

/* Assurances */
.he-benefits { border-bottom: 1px solid var(--line); }
.he-benefits ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.he-benefits li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 20px 10px; border-top: 1px solid var(--line); }
.he-benefits li:nth-child(-n+2) { border-top: 0; }
.he-benefits li:nth-child(even) { border-left: 1px solid var(--line); }
.he-benefits .he-ico { width: 26px; height: 26px; color: var(--gold-deep); margin-bottom: 8px; }
.he-benefits strong { font-size: .875rem; font-weight: 600; }
.he-benefits span { font-size: .8125rem; color: var(--muted); }
@media (min-width: 760px) {
  .he-benefits ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .he-benefits li { border-top: 0; padding-block: 28px; }
  .he-benefits li + li { border-left: 1px solid var(--line); }
}

/* Category cards */
.he-cats { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.he-cats::-webkit-scrollbar, .he-rail::-webkit-scrollbar, .he-families::-webkit-scrollbar { display: none; }
.he-cat { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; background: var(--ink); color: var(--white); }
.he-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.he-cat::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(25,25,25,0), rgba(25,25,25,.78)); }
.he-cat__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; display: grid; gap: 6px; }
.he-cat h3 { font-size: 1.625rem; color: var(--white); }
.he-cat p { margin: 0; font-size: .875rem; color: rgba(255,255,255,.86); max-width: 22em; }
.he-cat .he-cat__go { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; margin-top: 6px; }
.he-cat:hover { color: var(--white); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .he-cat:hover img { transform: scale(1.04); } }
@media (min-width: 760px) { .he-cats { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 16px; } }

/* Product grid and cards (WooCommerce loop markup) */
ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
ul.products::before, ul.products::after { content: none !important; }
ul.products li.product { display: flex; flex-direction: column; min-width: 0; position: relative; }
ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.he-card__media { display: block; position: relative; aspect-ratio: 1 / 1.12; background: var(--cream); overflow: hidden; margin-bottom: 12px; }
.he-card__media img { width: 100%; height: 100%; object-fit: cover; }
ul.products li.product .onsale, .he-product .onsale { position: absolute; left: 10px; top: 10px; z-index: 2; background: var(--ink); color: var(--white); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--sans); font-size: .9375rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-wrap: pretty; }
ul.products li.product .he-card__family { font-size: .75rem; color: var(--muted); margin-top: 2px; }
ul.products li.product .price { display: block; margin-top: 4px; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; }
ul.products li.product .button { width: 100%; margin-top: 12px; min-height: 44px; padding-inline: 10px; }
ul.products li.product .added_to_cart { display: none; }
ul.products li.product .button.loading { opacity: .6; }
@media (min-width: 760px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1100px) { ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* swipeable rail on phones, grid from tablet up */
@media (max-width: 759px) {
  .he-rail ul.products { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46vw; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .he-rail ul.products li.product { scroll-snap-align: start; }
}

/* Fragrance families */
.he-families { display: flex; gap: clamp(14px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.he-family { flex: none; display: grid; justify-items: center; gap: 2px; text-align: center; width: 92px; }
.he-family img, .he-family .he-family__dot { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--cream); border: 1px solid var(--line); margin-bottom: 8px; transition: border-color .15s ease; }
.he-family strong { font-size: .875rem; font-weight: 600; }
.he-family span { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.he-family:hover img, .he-family.is-active img { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
@media (min-width: 760px) { .he-family { width: 120px; } .he-family img, .he-family .he-family__dot { width: 96px; height: 96px; } }

/* Split features */
.he-feature { display: grid; gap: 0; background: var(--cream); }
.he-feature__text { padding: clamp(32px, 6vw, 88px) var(--gutter); display: grid; align-content: center; justify-items: start; gap: 4px; }
.he-feature__text h2 { margin-bottom: .75rem; max-width: 12em; }
.he-feature__text p { color: var(--muted); max-width: 30em; }
.he-feature__text .he-feature__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: .75rem; }
.he-feature__media img { width: 100%; height: 100%; min-height: 260px; max-height: 560px; object-fit: cover; }
.he-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: .5rem 0 1rem; width: 100%; max-width: 30em; }
.he-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.he-facts dt { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.he-facts dd { margin: 2px 0 0; font-weight: 600; font-size: .9375rem; }
@media (min-width: 900px) {
  .he-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .he-feature__text { padding-inline: clamp(32px, 6vw, 96px); }
  .he-feature--flip .he-feature__media { order: -1; }
}
.he-feature--plain { background: var(--ivory); }
.he-quote { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.75rem); padding: clamp(28px, 4vw, 48px) var(--gutter); margin: 0; border-block: 1px solid var(--line); }

/* Journal cards */
.he-journal { display: grid; gap: 28px 20px; }
.he-post { display: grid; align-content: start; gap: 6px; padding-top: 18px; border-top: 1px solid var(--ink); }
.he-post img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; margin-bottom: 10px; }
.he-post .he-post__cat { font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.he-post h3 { font-size: 1.5rem; }
.he-post p { color: var(--muted); font-size: .9375rem; margin: 0 0 6px; }
@media (min-width: 760px) { .he-journal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Newsletter */
.he-news { display: grid; gap: 20px 48px; align-items: center; }
.he-news form { display: flex; gap: 8px; flex-wrap: wrap; }
.he-news input[type=email] { flex: 1 1 220px; min-width: 0; }
.he-news small { display: block; margin-top: 10px; color: var(--muted); font-size: .8125rem; }
@media (min-width: 900px) { .he-news { grid-template-columns: 1fr 1fr; } }

/* Footer */
.he-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-block: clamp(40px, 6vw, 72px) 28px; font-size: .9375rem; }
.he-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.he-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.he-footer__brand { grid-column: 1 / -1; max-width: 26em; }
.he-footer__brand img { height: 56px; width: auto; margin-bottom: 16px; }
.he-footer h2 { font-family: var(--sans); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.he-footer li a { display: inline-flex; min-height: 36px; align-items: center; }
.he-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; color: rgba(255,255,255,.6); }
@media (min-width: 900px) { .he-footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } .he-footer__brand { grid-column: auto; } }

/* Collection page */
.he-crumbs, .woocommerce-breadcrumb { font-size: .8125rem; color: var(--muted); padding-block: 16px 0; margin: 0; }
.he-crumbs a:hover, .woocommerce-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.he-collhead { background: var(--cream); overflow: hidden; }
.he-collhead__in { display: grid; gap: 0 32px; align-items: center; }
.he-collhead__text { padding-block: 20px clamp(24px, 4vw, 44px); }
.he-collhead h1 { margin: 6px 0 12px; }
.he-collhead .term-description, .he-collhead p { color: var(--muted); max-width: 38em; margin: 0; }
.he-collhead__media { display: none; }
@media (min-width: 900px) {
  .he-collhead__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); min-height: 230px; }
  .he-collhead__media { display: block; align-self: stretch; position: relative; margin-right: calc(var(--gutter) * -1); }
  .he-collhead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 28%); mask-image: linear-gradient(to right, transparent, #000 28%); }
}
.he-shop { display: grid; gap: 20px 40px; padding-block: clamp(20px, 3vw, 36px) var(--section); }
.he-shop__main { min-width: 0; }
.he-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.woocommerce-result-count { margin: 0; font-size: .8125rem; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .he-select { min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance: none; appearance: none; border-radius: var(--radius); font-size: .875rem; width: auto; }
.he-filters { border: 1px solid var(--line); background: var(--white); }
.he-filters > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: .875rem; cursor: pointer; }
.he-filters > summary::-webkit-details-marker { display: none; }
.he-filters > summary svg { width: 18px; height: 18px; transition: transform .15s ease; }
.he-filters[open] > summary svg { transform: rotate(180deg); }
.he-filters__body { padding: 4px 14px 16px; display: grid; gap: 20px; }
.he-filter h2, .he-filter .widget-title, .he-filters .widgettitle { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.he-filter:first-child h2 { border-top: 0; padding-top: 6px; }
.he-filter li { display: flex; align-items: center; gap: 8px; }
.he-filter li a { flex: 1; }
.he-filter li a, .he-filter label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .875rem; font-weight: 400; cursor: pointer; }
.he-filter li a::before { content: ""; width: 16px; height: 16px; border: 1px solid #A9A296; border-radius: 50%; flex: none; }
.he-filter li.chosen a::before, .he-filter li.is-active a::before, .he-filter li.current-cat a::before { border: 5px solid var(--gold-deep); }
.he-filter li .count { color: var(--muted); font-size: .8125rem; margin-left: auto; }
.he-filter input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold-deep); margin: 0; }
.he-filter .he-clear { font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.widget_price_filter .price_slider_wrapper { padding-top: 8px; }
.widget_price_filter .ui-slider { position: relative; height: 2px; background: var(--line); margin: 14px 9px 22px; }
.widget_price_filter .ui-slider-range { position: absolute; top: 0; height: 100%; background: var(--ink); }
.widget_price_filter .ui-slider-handle { position: absolute; top: -8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); cursor: ew-resize; touch-action: none; }
.widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; font-size: .8125rem; }
.widget_price_filter .price_slider_amount input { width: 46%; }
.widget_price_filter .price_slider_amount .button { order: 2; min-height: 40px; padding: 8px 16px; }
.he-range { display: grid; gap: 8px; }
.he-range input[type=range] { width: 100%; accent-color: var(--ink); }
.he-range output { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .he-shop--filters { grid-template-columns: 220px minmax(0, 1fr); }
  .he-filters { border: 0; background: none; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .he-filters > summary { pointer-events: none; padding: 0; min-height: 0; font-size: .8125rem; margin-bottom: 4px; }
  .he-filters > summary svg { display: none; }
  .he-filters__body { padding: 0; }
}
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; gap: 6px; }
.woocommerce-pagination .page-numbers li > * { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); font-size: .875rem; font-variant-numeric: tabular-nums; }
.woocommerce-pagination .page-numbers .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.he-empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* Product page */
.he-product-wrap { padding-bottom: var(--section); }
.he-product-wrap .woocommerce-breadcrumb { padding-bottom: 16px; }
div.product.he-product, .he-product { display: grid; gap: 24px clamp(28px, 5vw, 80px); position: relative; }
.he-product > * { min-width: 0; }
.woocommerce-product-gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--cream); }
.woocommerce-product-gallery__image img, .he-gallery__main img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.woocommerce-product-gallery__trigger { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs, .he-gallery__thumbs { display: flex; gap: 8px; padding: 8px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.flex-control-thumbs li, .he-gallery__thumbs button { flex: none; width: 64px; padding: 0; border: 0; background: none; }
.flex-control-thumbs img, .he-gallery__thumbs img { width: 64px; height: 72px; object-fit: cover; opacity: .6; cursor: pointer; border: 1px solid transparent; background: var(--cream); }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover, .he-gallery__thumbs button[aria-current=true] img { opacity: 1; border-color: var(--gold); }
.he-product .summary { display: grid; align-content: start; gap: 0; }
.he-product .product_title { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 8px; }
.he-product .summary > .price, .he-product .summary > p.price { font-size: 1.375rem; font-weight: 500; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.he-product .woocommerce-product-details__short-description { color: var(--muted); max-width: 34em; }
.he-product .woocommerce-product-rating { display: flex; gap: 8px; align-items: center; font-size: .8125rem; margin-bottom: 10px; }
.he-profile { margin: 6px 0 18px; }
.he-label, .he-product table.variations th.label label { display: block; font-size: .8125rem; font-weight: 700; margin-bottom: 8px; }
.he-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.he-chips li { padding: 6px 14px; background: var(--cream); border: 1px solid var(--line); font-size: .8125rem; }
.he-product table.variations { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.he-product table.variations tr { display: block; margin-bottom: 14px; }
.he-product table.variations th, .he-product table.variations td { display: block; padding: 0; text-align: left; }
.he-product table.variations select { min-height: 48px; max-width: 320px; }
.he-product td.he-has-pills select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.he-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.he-pill { min-width: 64px; min-height: 46px; padding: 8px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .12s ease; }
.he-pill:hover { border-color: var(--ink); }
.he-pill[aria-pressed=true] { border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); font-weight: 700; }
.he-pill[disabled] { color: #A9A296; text-decoration: line-through; cursor: not-allowed; background: var(--ivory); }
.he-product .reset_variations { display: none !important; }
.he-product .woocommerce-variation-price, .he-product .woocommerce-variation-description:empty { display: none; }
.he-stock, .he-product .stock { display: flex; align-items: center; gap: 8px; font-size: .8125rem; margin: 2px 0 16px; color: var(--muted); }
.he-stock::before, .he-product .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.he-stock.is-out::before, .he-product .stock.out-of-stock::before { background: var(--danger); }
.he-product .woocommerce-variation-availability .stock.in-stock { display: none; }
.he-buy, .he-product .woocommerce-variation-add-to-cart, .he-product form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.he-product form.cart { margin: 0 0 4px; }
.he-product .quantity { flex: none; }
.he-product .quantity .qty, .he-qty input { width: 76px; height: 52px; text-align: center; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.he-qty { display: inline-flex; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); }
.he-qty button { width: 44px; background: none; border: 0; font-size: 1.125rem; }
.he-qty input { width: 44px; border: 0; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.he-qty input::-webkit-outer-spin-button, .he-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.he-product .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: .9375rem; }
.he-express { margin-top: 10px; }
.he-express__ph { display: grid; place-items: center; min-height: 52px; border: 1px dashed #A9A296; color: var(--muted); font-size: .8125rem; text-align: center; padding: 6px 12px; }
.he-assure { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--line); }
.he-assure li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.he-assure .he-ico { color: var(--gold-deep); margin-top: 2px; }
.he-assure strong { display: block; font-weight: 600; }
.he-assure span { color: var(--muted); font-size: .8125rem; }
.he-product .product_meta { display: none; }
@media (min-width: 900px) {
  .he-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .he-product > .he-tabs, .he-product > .related, .he-product > .upsells, .he-product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  .woocommerce-product-gallery { margin-inline: 0; position: sticky; top: calc(var(--header-h) + 20px); }
  .woocommerce-product-gallery:has(.flex-control-thumbs), .he-gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .flex-control-thumbs, .he-gallery__thumbs { flex-direction: column; padding: 0; order: -1; grid-column: 1; grid-row: 1; overflow: visible; }
  .flex-control-thumbs li, .he-gallery__thumbs button { width: 76px; }
  .flex-control-thumbs img, .he-gallery__thumbs img { width: 76px; height: 86px; }
  .woocommerce-product-gallery .flex-viewport, .he-gallery__main { grid-column: 2; grid-row: 1; }
  .he-product .summary { padding-top: 4px; max-width: 520px; }
}

/* Product tabs: tabs on desktop, accordion on phones */
.he-tabs { margin-top: clamp(16px, 4vw, 56px); }
.he-tabs__list { display: none; }
.he-tabs__panel { border-bottom: 1px solid var(--line); }
.he-tabs__panel:first-of-type { border-top: 1px solid var(--line); }
.he-tabs__acc { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
.he-tabs__acc button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; background: none; border: 0; padding: 0; font-weight: 600; text-align: left; }
.he-tabs__acc svg { width: 18px; height: 18px; transition: transform .15s ease; flex: none; }
.he-tabs__acc button[aria-expanded=true] svg { transform: rotate(180deg); }
.he-tabs__body { display: none; padding: 0 0 22px; }
.he-tabs__panel.is-open .he-tabs__body { display: block; }
.he-tabs__body > h2:first-child { display: none; }
@media (min-width: 900px) {
  .he-tabs__list { display: flex; gap: clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); overflow-x: auto; }
  .he-tabs__list button { background: none; border: 0; padding: 0; min-height: 52px; font-size: .875rem; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
  .he-tabs__list button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
  .he-tabs__panel, .he-tabs__panel:first-of-type { border: 0; }
  .he-tabs__acc { display: none; }
  .he-tabs__body, .he-tabs__panel.is-open .he-tabs__body { display: none; padding: 32px 0 0; }
  .he-tabs__panel.is-current .he-tabs__body { display: block; }
}
.he-prose { max-width: 46em; }
.he-prose h2 { font-size: 1.75rem; margin: 1.6em 0 .5em; }
.he-prose h3 { font-size: 1.375rem; margin: 1.4em 0 .4em; }
.he-prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.he-prose ol { list-style: decimal; padding-left: 1.2em; margin-bottom: 1em; }
.he-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.he-notes { display: grid; gap: 12px; }
.he-note { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.he-note h3 { font-family: var(--sans); font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; }
.he-note p { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.he-note small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 8px; }
@media (min-width: 700px) { .he-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.he-spec { display: grid; gap: 0; max-width: 46em; margin: 0; }
.he-spec div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.he-spec dt { font-size: .8125rem; font-weight: 700; }
.he-spec dd { margin: 0; color: var(--muted); font-size: .9375rem; }
.related.products, .upsells.products { margin-top: clamp(40px, 6vw, 88px); }
.related.products > h2, .upsells.products > h2 { margin-bottom: clamp(20px, 3vw, 36px); }

/* Reviews (native WooCommerce reviews) */
#reviews .woocommerce-Reviews-title { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
#reviews .commentlist li { padding: 16px 0; border-bottom: 1px solid var(--line); }
#reviews .commentlist img.avatar { display: none; }
#reviews .comment-reply-title { display: block; font-weight: 600; margin: 20px 0 8px; }
#reviews .comment-form { display: grid; gap: 14px; max-width: 34em; }
#reviews .comment-form p { margin: 0; }
#reviews p.stars a { display: inline-block; width: 28px; height: 28px; text-indent: -999em; overflow: hidden; position: relative; }
#reviews p.stars a::before { content: "\2606"; position: absolute; inset: 0; text-indent: 0; font-size: 1.5rem; line-height: 28px; color: var(--gold-deep); }
#reviews p.stars.selected a.active::before, #reviews p.stars.selected a:not(.active)::before { content: "\2605"; }
#reviews p.stars.selected a.active ~ a::before { content: "\2606"; }
.star-rating { display: inline-block; position: relative; width: 5.4em; height: 1.1em; line-height: 1.1; font-size: .875rem; overflow: hidden; color: var(--gold-deep); }
.star-rating::before { content: "\2606\2606\2606\2606\2606"; position: absolute; left: 0; top: 0; letter-spacing: .08em; }
.star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.2em; height: 0; }
.star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; letter-spacing: .08em; }

/* Sticky add to basket (phones) */
.he-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--white); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .2s ease; }
.he-sticky-atc.is-visible { transform: none; }
.he-sticky-atc__info { flex: 1; min-width: 0; display: grid; }
.he-sticky-atc__info strong { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.he-sticky-atc__info span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.he-sticky-atc .he-btn { min-height: 46px; padding-inline: 20px; flex: none; }
@media (min-width: 900px) { .he-sticky-atc { display: none; } }
@media (prefers-reduced-motion: reduce) { .he-sticky-atc { transition: none; } }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .he-toast { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; margin: 0 0 20px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); font-size: .9375rem; }
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: 8px 16px; }
.he-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; width: max-content; max-width: calc(100vw - 32px); margin: 0; box-shadow: 0 8px 28px rgba(25,25,25,.14); }

/* Pages, journal, account */
.he-page { padding-block: clamp(28px, 5vw, 64px) var(--section); }
.he-page__head { margin-bottom: clamp(20px, 3vw, 36px); }
.he-page__head .he-meta { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.he-article-img { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 28px; }
.he-archive { display: grid; gap: 32px 20px; }
@media (min-width: 760px) { .he-archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.he-404 { text-align: center; padding-block: clamp(56px, 10vw, 140px); display: grid; justify-items: center; gap: 14px; }
.woocommerce-account .woocommerce { display: grid; gap: 28px 48px; }
.woocommerce-MyAccount-navigation li a { display: flex; min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.woocommerce-MyAccount-navigation li.is-active a { font-weight: 700; }
@media (min-width: 900px) { .woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: 220px minmax(0, 1fr); } }
.woocommerce form .form-row { margin: 0 0 14px; display: grid; gap: 6px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.wc-block-cart, .wc-block-checkout { font-family: var(--sans); }
