/* Shared presentation; existing storefront and WooCommerce contracts are retained. */
:root {
  --aroma-muted:#706256;
  --aroma-radius:14px;
  --aroma-focus:#543b21;
  --aroma-space:clamp(3rem,6vw,5.5rem);
}
[hidden] { display:none !important; }
html { scroll-padding-top:10rem; }
#content { min-width:0; }
#content:focus { outline:none; }
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible {
  outline:3px solid var(--aroma-focus);
  outline-offset:4px;
  box-shadow:0 0 0 6px var(--paper);
}
:where(button,input,select,textarea) { font-family:var(--sans); }
:where(p,li,dd,td,h1,h2,h3) { overflow-wrap:anywhere; }
.aroma-skip { position:fixed; top:.5rem; left:1rem; z-index:100000; transform:translateY(-160%); background:var(--paper); color:var(--ink); padding:.75rem 1rem; border:1px solid var(--moss); border-radius:6px; }
.aroma-skip:focus { transform:translateY(0); }
.announcement { font-size:.75rem; line-height:1.8; letter-spacing:.04em; }
.site-header { background:var(--cream); background:color-mix(in srgb,var(--cream) 96%,transparent); }
.site-header .header-inner { gap:1.25rem; padding:.85rem 0; }
.site-header .brand-mark { display:inline-flex; gap:.5rem; flex-shrink:0; text-decoration:none; }
.site-header .brand-symbol-img { width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.site-header .brand-name-text { font-family:var(--serif); font-size:1.2rem; color:var(--ink); font-weight:500; letter-spacing:.01em; }
.site-header .main-nav { display:flex; align-items:center; min-width:0; }
.aroma-nav-list { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.25rem 1.5rem; margin:0; padding:0; list-style:none; }
.site-header .main-nav li { list-style:none; margin:0; padding:0; }
.site-header .main-nav a { display:inline-flex; align-items:center; min-height:44px; padding:.3rem .15rem; text-underline-offset:6px; }
.site-header .main-nav a:hover,.site-header .current-menu-item>a,.site-header .current_page_item>a { text-decoration:underline; text-decoration-thickness:2px; }
.site-header .header-actions { gap:.75rem; }
.site-header .account-link,.site-header .cart-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; }
.site-header .account-icon { display:none; }
.site-header .cart-button { background:var(--paper); border-color:var(--line); }
.site-footer { margin-top:var(--aroma-space); }
.site-footer .footer-grid { gap:2rem; }
.site-footer .footer-label,.site-footer .footer-note { opacity:1; }
.site-footer a { opacity:1; width:fit-content; padding:.3rem 0; text-underline-offset:4px; }
.site-footer a:hover { text-decoration:underline; }
.site-footer :where(a,button):focus-visible { outline-color:var(--cream); box-shadow:none; }
.site-footer .footer-note { color:var(--cream); line-height:1.8; }
/* Shared content and product surfaces. */
#content>.wrap { padding-block:clamp(2rem,5vw,3.5rem) !important; }
#content>.wrap>h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.35; margin-bottom:1.5rem; }
.woocommerce :where(.woocommerce-message,.woocommerce-info,.woocommerce-error) { border-radius:8px; line-height:1.8; }
.woocommerce :where(input.input-text,select,textarea) { min-height:46px; }
.woocommerce :where(a.button,button.button,input.button) { min-height:44px; line-height:1.5; }
.woocommerce table.shop_table { background:var(--paper); }
.spec-table th { color:var(--aroma-muted); }
.spec-table td { overflow-wrap:anywhere; }
.safety-note { color:var(--aroma-muted); border-radius:0 8px 8px 0; }
.aromatica-buybox-highlights { background:var(--paper); border:1px solid var(--line); border-radius:var(--aroma-radius); padding:1.25rem; color:var(--ink); }
.aromatica-buybox-highlights .feature-item { gap:.75rem; }
.aromatica-buybox-highlights .feature-item .label { flex:0 0 5rem; min-width:0; margin:0; color:var(--moss); }
.aromatica-buybox-highlights .feature-item .value { min-width:0; }
.aromatica-buybox-highlights .safety-line { color:var(--aroma-muted); border-color:var(--line); line-height:1.85; }
.single-product {
  --aromatica-forest:var(--ink);
  --aromatica-amber:#876035;
  --aromatica-parchment:var(--paper);
  --aromatica-sage:#eee6da;
  --aromatica-border:var(--line);
}
.single-product .aromatica-product-summary .product_title { line-height:1.35; letter-spacing:-.02em; }
.single-product .aromatica-product-breadcrumb { color:var(--aroma-muted); line-height:1.8; }
.single-product .aromatica-product-layout>* { min-width:0; }
.single-product .aromatica-product-details { line-height:1.85; }
.single-product .aromatica-product-gallery .woocommerce-product-gallery { float:none; width:100%; }
.single-product .aromatica-mobile-cart-bar__name { color:var(--aroma-muted); }
.single-product .aromatica-mobile-cart-bar__button:hover { background:var(--moss); }
/* Archive markup keeps its existing AJAX selectors. */
.shop-archive-page { padding:clamp(2rem,5vw,3.5rem) 0 var(--aroma-space) !important; }
.shop-archive-page .products-grid-four-cols { grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.5rem; }
.shop-archive-page .product-card { min-width:0; border-radius:var(--aroma-radius) !important; background:var(--paper); }
.shop-archive-page .product-card>a { background:#e9e0d4 !important; aspect-ratio:1/1.12 !important; }
.shop-archive-page .product-card>div { padding:1.15rem !important; gap:1rem; }
.shop-archive-page .product-card>div>div:last-child { flex-wrap:wrap; gap:.75rem; }
.shop-archive-page .product-card h3 { line-height:1.55; }
.shop-archive-page .product-card .ajax-add-to-cart-btn { min-height:44px; border-radius:6px !important; line-height:1.5; }
.shop-archive-page .product-card:hover { transform:none; box-shadow:0 8px 24px rgb(58 47 36 / 7%); border-color:var(--moss) !important; }
.shop-archive-page .product-card:focus-within { border-color:var(--moss) !important; }
.shop-pagination a,.shop-pagination span { min-width:44px; min-height:44px; }
#aromatica-toast { max-width:calc(100vw - 2rem); width:max-content; text-align:center; border-radius:10px !important; }
/* Catalog title and cards share the home collection layout. */
.shop-archive-page .aroma-breadcrumb { color:var(--aroma-muted); font-size:.82rem; margin:0 0 2rem; line-height:1.8; }
.shop-archive-page .aroma-breadcrumb a { color:inherit; text-decoration:underline; text-underline-offset:4px; }
.shop-archive-page .aroma-archive-heading h1 { font-size:clamp(1.85rem,3vw,2.7rem); line-height:1.45; letter-spacing:-.02em; margin:0; }
.shop-archive-page .aroma-archive-intro { margin:.75rem 0 0; color:var(--aroma-muted); font-size:.9rem; line-height:1.9; }
.shop-archive-page .shop-pagination { margin:3rem 0 0; text-align:center; }
.shop-archive-page .aroma-empty { color:var(--aroma-muted); line-height:1.8; padding:2rem 0; }
/* Home: clear progression from introduction to collection and advisor. */
.aroma-kicker { margin:0 0 1rem; color:#795c36; font-size:.7rem; letter-spacing:.16em; font-weight:600; line-height:1.8; }
.aroma-hero { padding:clamp(2.5rem,6vw,5.5rem) 0 3.5rem; border-bottom:1px solid var(--line); }
.aroma-hero-grid { display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:clamp(2rem,5vw,4.5rem); }
.aroma-hero-grid>* { min-width:0; }
.aroma-hero-copy { padding:1rem 0; }
.aroma-hero h1 { font-size:clamp(2.5rem,4.5vw,4.35rem); line-height:1.35; letter-spacing:-.035em; margin:1rem 0 1.5rem; }
.aroma-hero h1 span { color:#82663e; }
.aroma-lead { font-size:1rem; color:var(--aroma-muted); line-height:2; margin:0 0 2rem; max-width:38ch; }
.aroma-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.4rem; }
.aroma-btn { display:inline-flex; align-items:center; justify-content:center; gap:1.3rem; border:1px solid var(--moss); border-radius:8px; padding:.9rem 1.35rem; background:var(--moss); color:#fff; font-family:var(--sans); font-size:.9rem; font-weight:500; cursor:pointer; min-height:48px; line-height:1.5; text-decoration:none; transition:background .2s; }
.aroma-btn:hover { background:#4e3c2e; border-color:#4e3c2e; color:white; }
.aroma-btn:disabled { opacity:.65; cursor:default; }
.aroma-text-link { display:inline-flex; align-items:center; gap:.5rem; font-size:.86rem; min-height:44px; text-decoration:underline; text-underline-offset:5px; }
.aroma-hero-meta { display:flex; flex-wrap:wrap; gap:.75rem 1.2rem; margin-top:2rem; color:var(--aroma-muted); font-size:.75rem; }
.aroma-hero-meta span+span { border-left:1px solid #b8aa94; padding-left:1.2rem; }
.aroma-hero-visual { margin:0; position:relative; }
.aroma-hero-photo { width:100%; aspect-ratio:1/1.04; object-fit:cover; border-radius:var(--aroma-radius); background:#e6ddcf; }
.aroma-hero-visual figcaption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; margin-top:.8rem; font-size:.75rem; color:var(--aroma-muted); }
.aroma-fig-index { font-size:.6rem; letter-spacing:.1em; }
.aroma-collection { padding:var(--aroma-space) 0; }
#shop,#advisor { scroll-margin-top:10rem; }
.aroma-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; margin-bottom:2rem; }
.aroma-section-heading h2,.aroma-advisor h2,.aroma-guide h2 { font-size:clamp(1.85rem,3vw,2.7rem); line-height:1.45; margin:0; letter-spacing:-.02em; }
.aroma-filter-bar { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; margin:0 0 1.75rem; padding-block:1rem; border-block:1px solid var(--line); }
.aroma-filters { display:flex; flex-wrap:wrap; gap:.5rem; }
.aroma-filters button { border:1px solid #b8aa98; border-radius:30px; padding:.55rem 1.1rem; color:var(--moss); background:transparent; cursor:pointer; font:inherit; font-size:.82rem; min-height:44px; }
.aroma-filters button:hover { background:var(--paper); }
.aroma-filters button.is-active { background:var(--moss); color:white; border-color:var(--moss); }
#aroma-filter-count { color:var(--aroma-muted); font-size:.78rem; margin:0; }
.aroma-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.75rem; }
.aroma-product { min-width:0; display:flex; flex-direction:column; background:var(--paper); border:1px solid var(--line); border-radius:var(--aroma-radius); }
.aroma-product:focus-within { border-color:var(--moss); }
.aroma-product-image { display:block; position:relative; overflow:hidden; border-radius:13px 13px 0 0; background:#e9e0d4; margin:0; }
.aroma-product-image img { width:100%; aspect-ratio:1/1.12; object-fit:cover; transition:transform .35s; }
.aroma-product-image:hover img { transform:scale(1.025); }
.aroma-product-image:focus-visible { outline-offset:-6px; box-shadow:none; }
.aroma-image-label { position:absolute; left:.85rem; top:.85rem; max-width:calc(100% - 1.7rem); background:#faf6f0; color:var(--moss); padding:.35rem .65rem; font-size:.7rem; border-radius:5px; }
.aroma-product-copy { padding:1.2rem; display:flex; flex:1; flex-direction:column; }
.aroma-botanical { color:var(--aroma-muted); font-family:Georgia,serif; font-style:italic; font-size:.78rem; min-height:1.2rem; margin:0 0 .4rem; }
.aroma-product h3 { font-size:1.2rem; line-height:1.6; margin:0; }
.aroma-product h3 a { color:var(--ink); }
.aroma-product h3 a:hover { text-decoration:underline; text-underline-offset:4px; }
.aroma-product-notes { color:var(--aroma-muted); font-size:.84rem; line-height:1.8; margin:.4rem 0 1rem; }
.aroma-product-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.75rem; padding-top:1rem; margin-top:auto; border-top:1px solid var(--line); }
.aroma-product-price { font-size:.95rem; font-weight:500; }
.aroma-product-price del { color:var(--aroma-muted); }
.aroma-product-price ins { text-decoration:none; }
.aroma-add { display:inline-flex; align-items:center; justify-content:center; gap:.8rem; border:1px solid #b8aa98; color:var(--moss); background:var(--paper); border-radius:6px; min-height:44px; padding:.5rem .8rem; font:inherit; font-size:.8rem; cursor:pointer; }
.aroma-add:hover { border-color:var(--moss); background:var(--cream); }
.aroma-add:disabled { opacity:.65; cursor:default; }
.aroma-advisor { padding:var(--aroma-space) 0; background:#e7dfd1; border-block:1px solid #d8ccba; }
.aroma-advisor-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(2rem,6vw,5rem); align-items:start; }
.aroma-advisor-grid>* { min-width:0; }
.aroma-advisor-intro>p:not(.aroma-kicker) { color:var(--aroma-muted); line-height:1.9; margin:1.2rem 0; max-width:35ch; font-size:.95rem; }
.aroma-advisor-note { font-size:.8rem; color:var(--aroma-muted); line-height:1.85; margin:1rem 0; }
.aroma-advisor-intro .aroma-advisor-note { max-width:40ch; }
.aroma-advisor-panel { padding:clamp(1.25rem,3vw,2rem); background:var(--paper); border:1px solid #c6b8a4; border-radius:var(--aroma-radius); }
.aroma-advisor-tags { display:flex; gap:.5rem; flex-wrap:wrap; margin:0 0 1.5rem; }
.aroma-advisor-tags button { border:1px solid #b8aa98; background:transparent; border-radius:24px; padding:.5rem .9rem; font:inherit; font-size:.8rem; color:var(--moss); cursor:pointer; min-height:44px; }
.aroma-advisor-tags button:hover { background:#e9dfd0; }
#aroma-advisor-form label { display:block; font-size:.95rem; font-weight:500; margin:0 0 .65rem; }
#aroma-advisor-input { display:block; width:100%; resize:vertical; min-height:120px; padding:.9rem; border:1px solid #a4937b; border-radius:8px; font-size:16px; background:#fffdf9; line-height:1.8; }
/* Match the existing textarea maxlength without changing the advisor contract. */
#aroma-advisor-help { font-size:.875rem; line-height:1.75; color:var(--aroma-muted); margin:.65rem 0 1.25rem; }
#aroma-advisor-submit { width:100%; }
.aroma-status { color:var(--aroma-muted); font-size:.86rem; line-height:1.85; margin:1rem 0 0; }
.aroma-status:empty { display:none; }
#aroma-advisor-result { border-top:1px solid var(--line); margin-top:1.5rem; padding-top:1.5rem; }
#aroma-formula-title { font-size:1.55rem; line-height:1.5; margin:.4rem 0 .8rem; }
#aroma-recommendation { font-size:.9rem; line-height:1.85; }
.aroma-recipe-item { padding:1rem 0; border-bottom:1px solid var(--line); }
.aroma-recipe-heading { display:flex; justify-content:space-between; align-items:baseline; gap:.75rem; font-size:.95rem; }
.aroma-recipe-heading a { text-decoration:underline; text-underline-offset:4px; }
.aroma-recipe-heading span { font-size:.85rem; white-space:nowrap; }
.aroma-ratio-bar { height:4px; background:#e2d7c7; border-radius:4px; margin:.65rem 0; overflow:hidden; }
.aroma-ratio-bar span { display:block; height:100%; background:#90734c; }
.aroma-recipe-item p { font-size:.8rem; line-height:1.85; color:var(--aroma-muted); margin:.5rem 0 0; }
.aroma-recipe-item .aroma-stock-note { color:#923b2a; }
.aroma-bundle { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; margin-top:1.5rem; }
.aroma-bundle span { display:block; font-size:.78rem; color:var(--aroma-muted); }
.aroma-bundle strong { display:block; font-size:1.5rem; font-weight:500; margin:.25rem 0; }
.aroma-cart-result { display:inline-flex; align-items:center; min-height:44px; padding:.75rem 0; font-size:.86rem; text-decoration:underline; text-underline-offset:4px; }
.aroma-guide { padding:var(--aroma-space) 0 0; }
.aroma-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; margin-top:2rem; }
.aroma-guide-grid article { border-top:1px solid #bdac94; padding:1.25rem 0; }
.aroma-guide-grid article>span { color:#82663e; font-size:.8rem; }
.aroma-guide-grid h3 { font-size:1.25rem; line-height:1.5; margin:.85rem 0 .75rem; }
.aroma-guide-grid p { color:var(--aroma-muted); font-size:.9rem; line-height:1.9; margin:0; }
.aroma-toast { position:fixed; bottom:calc(1rem + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 2rem); z-index:1000; background:#3f3328; color:white; padding:1rem 1.25rem; border-radius:10px; font-size:.88rem; line-height:1.8; box-shadow:0 8px 30px #30231830; }
@media(min-width:768px) {
  .single-product .aromatica-product-summary { position:static; }
}
@media(max-width:1100px) {
  .shop-archive-page .products-grid-four-cols { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
  .aroma-hero-grid { gap:2rem; }
  .aroma-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:880px) {
  .site-header .header-inner { flex-wrap:wrap !important; gap:.25rem 1rem !important; }
  .site-header .main-nav { display:flex !important; order:3; flex:1 0 100%; justify-content:center; border-top:1px solid var(--line); margin-top:.5rem; padding-top:.25rem; }
  .aroma-nav-list { column-gap:1.5rem; }
}
@media(max-width:767px) {
  .site-header .header-inner { width:min(100% - 2rem,var(--wrap)) !important; padding:.65rem 0 !important; }
  .site-header .brand-mark { max-width:none !important; flex:1 1 auto !important; }
  .site-header .brand-name-text { font-size:1.1rem !important; }
  .site-header .header-actions { gap:.5rem !important; }
  .site-header .account-link { width:44px !important; height:44px !important; }
  .site-header .account-icon { display:inline; }
  .site-header .cart-button { height:44px !important; min-height:44px; padding:0 .8rem !important; background:var(--paper) !important; border-color:var(--line) !important; }
  .site-header .main-nav { display:flex !important; font-size:.84rem; }
  .single-product .aromatica-product-details { padding-bottom:160px; }
  .single-product .aromatica-product-container { width:calc(100% - 2rem); }
  .single-product .aromatica-product-summary { margin-top:1.5rem; }
  .aroma-hero { padding:2.25rem 0 2.5rem; }
  .aroma-hero-grid { grid-template-columns:1fr; gap:1.75rem; }
  .aroma-hero-copy { padding:0; }
  .aroma-hero h1 { font-size:clamp(2.35rem,8vw,3.6rem); margin:.8rem 0 1rem; }
  .aroma-lead { font-size:.95rem; margin-bottom:1.5rem; }
  .aroma-actions { gap:.75rem 1.25rem; }
  .aroma-hero-meta { margin-top:1.25rem; gap:.65rem; font-size:.72rem; }
  .aroma-hero-meta span+span { padding-left:.65rem; }
  .aroma-hero-photo { aspect-ratio:5/4; }
  .aroma-section-heading { display:block; margin-bottom:1.25rem; }
  .aroma-section-heading h2 { margin-bottom:.5rem; }
  .aroma-advisor-grid { grid-template-columns:1fr; gap:1.5rem; }
  .aroma-advisor h2 br { display:none; }
  .aroma-advisor-intro>p:not(.aroma-kicker),.aroma-advisor-intro .aroma-advisor-note { max-width:none; }
  .aroma-guide-grid { grid-template-columns:1fr; gap:.75rem; margin-top:1.5rem; }
  .aroma-guide-grid h3 { margin:.65rem 0; }
  .aroma-advisor { background:#f5efe6; }
}
@media(max-width:640px) {
  .shop-archive-page .products-grid-four-cols { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
}
@media(max-width:540px) {
  .wrap { width:calc(100% - 2rem); }
  .aroma-product-grid { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .aroma-product-image img { aspect-ratio:1/1; }
  .aroma-product-copy { padding:1.15rem; }
  .aroma-product h3 { font-size:1.3rem; }
  .aroma-bundle { align-items:stretch; }
  .aroma-bundle .aroma-btn { width:100%; }
  .aroma-desktop-break { display:none; }
  .aroma-advisor-panel { padding:1.25rem 1rem; }
  .site-footer .footer-grid { grid-template-columns:minmax(0,1fr); gap:1.75rem; }
  .aromatica-buybox-highlights { padding:1rem; }
}
@media(max-width:360px) {
  .site-header .header-inner { gap:.25rem .5rem !important; }
  .site-header .brand-name-text { font-size:.95rem !important; }
  .site-header .brand-symbol-img { width:28px !important; height:28px !important; }
  .site-header .header-actions { gap:.25rem !important; }
  .site-header .cart-button { padding:0 .6rem !important; }
  .aroma-actions>.aroma-btn { width:100%; }
}
@media(forced-colors:active) {
  :where(a,button,input,textarea,select,summary,[tabindex]):focus-visible { outline:3px solid Highlight; box-shadow:none; }
  .aroma-filters button.is-active { border:3px solid Highlight; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
}
