/* =====================================================================
   Ereca Home storefront layer (preview)
   Patterns from the owner's reference screenshots, drawn in the
   original Ereca palette and fonts:
   cream #f4f0e8 · ink #24251f · clay #a3563c · sage #aab39b · stone #e6e0d4
   Playfair Display (display) · DM Sans (text) · DM Mono (labels)
   ===================================================================== */

:root {
  --st-cream: #f4f0e8;
  --st-tile: #ebe6dc;      /* light product tile, like the reference cards */
  --st-stone: #e6e0d4;
  --st-ink: #24251f;
  --st-muted: #66665f;
  --st-clay: #a3563c;
  --st-sage: #aab39b;
  --st-line: #d6d0c4;
  --st-radius: 14px;
  --st-radius-sm: 10px;
  --st-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------- Promo + utility bars ---------------- */
.st-promo {
  background: var(--st-ink); color: #eeeadf; text-align: center;
  font: 11px/1.4 "DM Mono", monospace; letter-spacing: .06em; padding: 10px 16px;
}
.st-util { border-bottom: 1px solid var(--st-line); background: var(--st-cream); }
.st-util-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 8px 4.7%; font: 12px "DM Sans", sans-serif; color: var(--st-muted);
}
.st-util nav { display: flex; gap: 22px; }
.st-util a { color: var(--st-muted); text-decoration: none; }
.st-util a:hover { color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .st-util { display: none; } }

/* ---------------- Header ---------------- */
header.store-header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  height: auto; min-height: 76px; padding: 0 4.7%; margin: 0;
  background: rgba(244, 240, 232, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--st-line);
}
.store-logo img { width: 62px; height: auto; display: block; }
.store-nav { display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 34px); margin: 0; }
.store-nav a {
  position: relative; color: var(--st-ink); text-decoration: none;
  font: 500 14px "DM Sans", sans-serif; letter-spacing: 0; padding: 10px 0; text-transform: none;
}
.store-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--st-ease);
}
.store-nav a:hover::after, .store-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.store-nav a.is-sale { color: var(--st-clay); }
.store-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--st-ink); display: inline-grid; place-items: center;
  cursor: pointer; text-decoration: none; transition: background-color .2s;
}
.icon-btn:hover { background: var(--st-stone); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--st-clay); color: #fff;
  font: 10px/17px "DM Sans", sans-serif; text-align: center;
}
.icon-count[hidden] { display: none; }
.menu-open-btn { display: none; }
@media (max-width: 960px) {
  header.store-header { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 64px; padding: 0 4%; }
  .store-nav { display: none; }
  .menu-open-btn { display: inline-grid; }
  .store-logo { justify-self: center; grid-column: 2; }
  .store-icons { grid-column: 3; }
  .store-logo img { width: 52px; }
}

/* ---------------- Drawers (menu, search, wishlist) ---------------- */
.st-drawer {
  position: fixed; inset: 0; z-index: 60; display: flex;
  visibility: hidden; pointer-events: none;
}
.st-drawer.is-open { visibility: visible; pointer-events: auto; }
.st-scrim { position: absolute; inset: 0; background: rgba(36, 37, 31, .38); opacity: 0; transition: opacity .3s; }
.st-drawer.is-open .st-scrim { opacity: 1; }
.st-panel {
  position: relative; margin-left: auto; width: min(420px, 92vw); height: 100%;
  background: var(--st-cream); padding: 22px 24px 28px; overflow-y: auto;
  transform: translateX(100%); transition: transform .4s var(--st-ease);
  display: flex; flex-direction: column; gap: 18px;
}
.st-drawer.from-left .st-panel { margin-left: 0; margin-right: auto; transform: translateX(-100%); }
.st-drawer.is-open .st-panel { transform: none; }
.st-panel-head { display: flex; justify-content: space-between; align-items: center; }
.st-panel-head h2 { font: 400 26px "Playfair Display", serif; margin: 0; letter-spacing: -.02em; }
.st-drawer-nav { display: grid; }
.st-drawer-nav a {
  font: 400 24px "Playfair Display", serif; color: var(--st-ink); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--st-line);
}
.st-search-input {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--st-line);
  border-radius: 999px; background: #fffdf8; font: 16px "DM Sans", sans-serif; color: var(--st-ink);
}
.st-hint { font: 11px "DM Mono", monospace; letter-spacing: .08em; color: var(--st-muted); margin: 0; text-transform: uppercase; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips button {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--st-line);
  background: transparent; font: 13px "DM Sans", sans-serif; color: var(--st-ink); cursor: pointer;
}
.st-chips button:hover { border-color: var(--st-ink); }
.st-result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-result-list a, .st-result-list .row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: var(--st-radius-sm); color: var(--st-ink); text-decoration: none;
}
.st-result-list a:hover { background: var(--st-stone); }
.st-result-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--st-tile); }
.st-result-list b { font: 400 16px "Playfair Display", serif; display: block; }
.st-result-list small { font: 12px "DM Mono", monospace; color: var(--st-muted); }
.st-empty { color: var(--st-muted); font-size: 14px; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--st-ink);
  background: var(--st-ink); color: var(--st-cream); text-decoration: none; cursor: pointer;
  font: 12px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase;
}
.st-btn:hover { background: #3a3b33; }
.st-btn.ghost { background: transparent; color: var(--st-ink); }
.st-btn.ghost:hover { background: var(--st-stone); }
.st-remove { border: 0; background: none; color: var(--st-muted); cursor: pointer; font-size: 13px; text-decoration: underline; min-height: 44px; }

/* ---------------- Quick-path cards overlapping the hero ---------------- */
.st-paths {
  position: relative; z-index: 2; margin: -54px 4.7% 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.st-path {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start;
  background: #fffdf8; border-radius: var(--st-radius); padding: 20px 22px;
  box-shadow: 0 16px 40px -24px rgba(36, 37, 31, .35);
  color: var(--st-ink); text-decoration: none;
  transition: transform .35s var(--st-ease), box-shadow .35s var(--st-ease);
}
.st-path:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(36, 37, 31, .45); }
.st-path-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--st-stone); display: grid; place-items: center; color: var(--st-clay); }
.st-path-icon svg { width: 22px; height: 22px; }
.st-path b { display: block; font: 400 21px/1.15 "Playfair Display", serif; letter-spacing: -.02em; margin-bottom: 4px; }
.st-path span { font-size: 14px; line-height: 1.5; color: var(--st-muted); }
.st-path em { display: inline-block; margin-top: 10px; font: normal 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--st-ink); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (max-width: 860px) {
  .st-paths { grid-template-columns: 1fr; margin: 18px 5% 0; }
}

/* ---------------- Shop by category (dark band, rounded cards) ---------------- */
.st-cats { background: var(--st-ink); color: #f3eee4; padding: 96px 4.7% 104px; margin-top: 56px; }
.st-cats-head { text-align: center; margin-bottom: 44px; }
.st-cats-head h2 { font: 400 clamp(36px, 4vw, 54px)/1 "Playfair Display", serif; letter-spacing: -.04em; margin: 0; }
.st-cats-head h2::after { content: ""; display: block; width: 46px; height: 1px; background: #d8aa59; margin: 18px auto 0; }
.st-cats-head p { color: #cfc9bc; font-size: 15px; margin: 16px auto 0; max-width: 46ch; }
.st-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-cat { color: #f3eee4; text-decoration: none; display: grid; gap: 14px; }
.st-cat-img { aspect-ratio: 4 / 5; border-radius: var(--st-radius); overflow: hidden; background: #3a3b33; }
.st-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--st-ease); }
.st-cat:hover .st-cat-img img { transform: scale(1.05); }
.st-cat b { font: 400 22px "Playfair Display", serif; letter-spacing: -.02em; }
.st-cat span { font: 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #cfc9bc; }
.st-cat:hover span { color: #d8aa59; }
@media (max-width: 860px) {
  .st-cats { padding: 72px 5% 80px; margin-top: 60px; }
  .st-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ---------------- Product tiles (homepage rail + shop page) ---------------- */
.st-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
.st-card-img {
  position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--st-radius);
  overflow: hidden; background: var(--st-tile);
}
.st-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--st-ease); }
.st-card:hover .st-card-img img { transform: scale(1.04); }
.st-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 6px 10px; border-radius: 999px; background: var(--st-ink); color: var(--st-cream);
  font: 10px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase;
}
.st-badge.soft { background: #fffdf8; color: var(--st-ink); }
.st-heart {
  position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 253, 248, .9); color: var(--st-ink); cursor: pointer;
  display: grid; place-items: center; transition: transform .2s var(--st-ease);
}
.st-heart:hover { transform: scale(1.06); }
.st-heart svg { width: 19px; height: 19px; }
.st-heart[aria-pressed="true"] { color: var(--st-clay); }
.st-heart[aria-pressed="true"] svg path { fill: currentColor; }
.st-card-order {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  min-height: 44px; border: 0; border-radius: 999px; background: var(--st-ink); color: var(--st-cream);
  font: 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s var(--st-ease);
}
.st-card:hover .st-card-order, .st-card-order:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .st-card-order { opacity: 1; transform: none; } }
.st-card-meta { font: 11px "DM Mono", monospace; letter-spacing: .06em; color: var(--st-muted); margin: 0; text-transform: uppercase; }
.st-card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st-card-row h3 { margin: 0; font: 400 18px/1.25 "Playfair Display", serif; letter-spacing: -.01em; }
.st-card-row h3 a { color: inherit; text-decoration: none; }
.st-card-row h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-price { font: 500 15px "DM Sans", sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* homepage rail uses the same tiles */
.products .product-grid.rail.st-rail { grid-auto-columns: clamp(240px, 22vw, 310px); gap: 18px; }

/* ---------------- Shop page ---------------- */
.shop-head { padding: 36px 4.7% 8px; }
.shop-crumb { font: 11px "DM Mono", monospace; letter-spacing: .08em; color: var(--st-muted); text-transform: uppercase; margin: 0 0 18px; }
.shop-crumb a { color: inherit; }
.shop-head h1 { font: 400 clamp(38px, 5vw, 64px)/1 "Playfair Display", serif; letter-spacing: -.045em; margin: 0; }
.shop-head p { color: var(--st-muted); max-width: 52ch; margin: 14px 0 0; font-size: 15px; line-height: 1.6; }
.shop-pills { display: flex; gap: 10px; overflow-x: auto; padding: 26px 4.7% 6px; scrollbar-width: none; }
.shop-pills::-webkit-scrollbar { display: none; }
.shop-pills a {
  flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 10px 20px;
  border-radius: 999px; background: var(--st-stone); color: var(--st-ink); text-decoration: none;
  font: 12px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase;
}
.shop-pills a[aria-current="page"] { background: var(--st-ink); color: var(--st-cream); }
.shop-pills a:hover:not([aria-current="page"]) { background: #ddd6c8; }
.shop-bar {
  position: sticky; top: 76px; z-index: 20; background: rgba(244, 240, 232, .97);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 4.7%; border-bottom: 1px solid var(--st-line);
}
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-filters label { position: relative; }
.shop-filters select, .shop-sort select {
  appearance: none; -webkit-appearance: none; min-height: 42px; padding: 8px 34px 8px 14px;
  border: 1px solid var(--st-line); border-radius: 999px; background: transparent;
  font: 14px "DM Sans", sans-serif; color: var(--st-ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2324251f' fill='none' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.shop-filters select.is-set { background-color: var(--st-ink); color: var(--st-cream); border-color: var(--st-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23f4f0e8' fill='none' stroke-width='1.3'/%3E%3C/svg%3E"); }
.shop-clear { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font: 14px "DM Sans", sans-serif; cursor: pointer; min-height: 42px; color: var(--st-ink); }
.shop-right { display: flex; align-items: center; gap: 14px; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--st-muted); }
.shop-view { display: flex; gap: 2px; }
.shop-view button {
  width: 42px; height: 42px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  color: var(--st-muted); display: grid; place-items: center;
}
.shop-view button[aria-pressed="true"] { color: var(--st-ink); background: var(--st-stone); }
.shop-view svg { width: 18px; height: 18px; }
.shop-count { padding: 18px 4.7% 0; font: 12px "DM Mono", monospace; letter-spacing: .06em; color: var(--st-muted); }
.shop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 20px; padding: 18px 4.7% 90px;
}
.shop-grid.is-list { grid-template-columns: 1fr; gap: 16px; }
.shop-grid.is-list .st-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; }
.shop-grid.is-list .st-card-body { display: grid; gap: 8px; }
.shop-grid.is-list .st-card-img { aspect-ratio: 1 / 1; }
.st-guide-tile {
  position: relative; border-radius: var(--st-radius); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-start; padding: 26px;
  background: var(--st-sage); color: var(--st-ink); text-decoration: none;
}
.st-guide-tile b { font: 400 28px/1.05 "Playfair Display", serif; letter-spacing: -.03em; }
.st-guide-tile span { margin-top: 10px; font-size: 14px; line-height: 1.5; max-width: 26ch; }
.st-guide-tile em { margin-top: auto; font: normal 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; width: max-content; padding-bottom: 3px; }
.shop-grid.is-list .st-guide-tile { min-height: 0; }
.shop-empty { padding: 30px 4.7% 90px; font-size: 15px; }
.shop-empty a { color: var(--st-clay); }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; padding: 14px 5% 70px; }
  .shop-bar { top: 64px; padding: 10px 5%; }
  .shop-right { width: 100%; justify-content: space-between; }
  .shop-grid.is-list .st-card { grid-template-columns: 110px 1fr; gap: 14px; }
  .st-card-row { flex-direction: column; gap: 4px; }
}

/* ---------------- Footer ---------------- */
footer.store-footer {
  display: block; background: var(--st-cream); color: var(--st-ink); margin: 0;
  border-top: 1px solid var(--st-line); padding: 70px 4.7% 28px; height: auto;
  font: 14px "DM Sans", sans-serif; letter-spacing: 0;
}
.sf-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr; gap: 32px; }
.sf-brand img { width: 74px; height: auto; display: block; }
.sf-brand p { font: 14px/1.6 "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; color: var(--st-muted); margin: 14px 0 18px; max-width: 26ch; line-height: 1.6; }
.sf-social { display: flex; gap: 6px; }
.sf-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--st-ink); border: 1px solid var(--st-line); }
.sf-social a:hover { background: var(--st-stone); }
.sf-social svg { width: 17px; height: 17px; }
footer.store-footer h2 { font: 500 14px "DM Sans", sans-serif; margin: 6px 0 14px; letter-spacing: 0; text-transform: none; }
footer.store-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer.store-footer ul a { color: var(--st-muted); text-decoration: none; font: 14px "DM Sans", sans-serif; letter-spacing: 0; text-transform: none; padding: 0; border: 0; width: auto; }
footer.store-footer ul a:hover { color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
.sf-help { display: grid; gap: 8px; align-content: start; }
.sf-help h2 { margin-bottom: 4px !important; }
.sf-help p { font: 15px/1.6 "DM Sans", sans-serif; letter-spacing: 0; margin: 0 0 8px; color: var(--st-muted); max-width: 30ch; }
.sf-chat {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; width: max-content;
  min-height: 46px; padding: 10px 18px; border: 1px solid var(--st-line); border-radius: 999px;
  color: var(--st-ink); text-decoration: none; font: 14px "DM Sans", sans-serif; background: #fffdf8;
}
.sf-chat:hover { border-color: var(--st-ink); }
.sf-chat svg { width: 18px; height: 18px; }
.sf-news { display: flex; gap: 6px; margin-top: 10px; }
.sf-news input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--st-line); background: #fffdf8; font: 14px "DM Sans", sans-serif; color: var(--st-ink); }
.sf-news button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--st-ink); color: var(--st-cream); cursor: pointer; font: 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--st-line); font: 11px "DM Mono", monospace; letter-spacing: .06em; color: var(--st-muted); text-transform: uppercase; }
@media (max-width: 1100px) { .sf-grid { grid-template-columns: 1fr 1fr 1fr; } .sf-brand, .sf-help { grid-column: span 3; } }
@media (max-width: 640px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand, .sf-help { grid-column: span 2; } footer.store-footer { padding: 56px 5% 24px; } }

/* ---------------- Help page ---------------- */
.help-page { padding: 40px 4.7% 90px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; }
.help-toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; }
.help-toc a { color: var(--st-muted); text-decoration: none; padding: 8px 0; font-size: 14px; }
.help-toc a:hover { color: var(--st-ink); }
.help-body h1 { font: 400 clamp(38px, 5vw, 60px)/1 "Playfair Display", serif; letter-spacing: -.045em; margin: 0 0 14px; }
.help-body > p { color: var(--st-muted); max-width: 56ch; line-height: 1.6; }
.help-body section { border-top: 1px solid var(--st-line); padding: 34px 0; scroll-margin-top: 100px; }
.help-body h2 { font: 400 30px "Playfair Display", serif; letter-spacing: -.03em; margin: 0 0 14px; }
.help-body li, .help-body section p { max-width: 62ch; line-height: 1.7; font-size: 15px; }
.help-body ol { padding-left: 20px; }
.help-note { background: var(--st-stone); border-radius: var(--st-radius-sm); padding: 14px 16px; font-size: 14px; }
@media (max-width: 860px) { .help-page { grid-template-columns: 1fr; gap: 10px; padding: 26px 5% 70px; } .help-toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; } }

.st-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .st-panel, .st-scrim, .st-path, .st-card-img img, .st-cat-img img { transition: none !important; }
}

/* ---------------- Base for pages built only on this layer (shop, help) ---------------- */
body.shop-page, body.help-page-body {
  margin: 0; background: var(--st-cream); color: var(--st-ink);
  font: 16px/1.5 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
body.shop-page *, body.help-page-body * { box-sizing: border-box; }
body.shop-page img, body.help-page-body img { max-width: 100%; display: block; }
/* neutralise older page styles that target bare nav/header/footer elements */
.st-util nav, .st-drawer-nav, .shop-pills, .store-nav { margin: 0; }
.st-util nav a, .st-drawer-nav a { letter-spacing: 0; text-transform: none; }

/* ---- Footer colours from the original site (dark ink, cream text, gold accent) ---- */
footer.store-footer { background: #20211d; color: #f1ece2; border-top: 0; }
.sf-brand img { width: 120px; filter: brightness(0) saturate(100%) invert(91%) sepia(12%) saturate(350%) hue-rotate(354deg) brightness(100%) contrast(93%); }
.sf-brand p, .sf-help p { color: #aaa59a; }
footer.store-footer h2 { color: #f1ece2; }
footer.store-footer ul a { color: #ddd8cf; }
footer.store-footer ul a:hover { color: #d8aa59; }
.sf-social a { color: #f1ece2; border-color: #4c4d47; }
.sf-social a:hover { background: #2c2d28; border-color: #d8aa59; color: #d8aa59; }
.sf-chat { background: transparent; color: #f1ece2; border-color: #aaa59a; }
.sf-chat:hover { border-color: #d8aa59; color: #d8aa59; }
.sf-news input { background: transparent; color: #f1ece2; border-color: #aaa59a; }
.sf-news input::placeholder { color: #aaa59a; }
.sf-news button { background: #d8aa59; color: #1f201c; }
.sf-news button:hover { background: #e4bb72; }
.sf-bottom { border-top-color: #4c4d47; color: #aaa59a; }
.sf-bottom a { color: #aaa59a; }
footer.store-footer :focus-visible { outline-color: #d8aa59; }

/* ---- Shop by category: soft sage band, arched frames ---- */
.st-cats {
  background: #e1e4d6;
  background-image: radial-gradient(120% 80% at 50% 0%, #e9ebdf 0%, #e1e4d6 60%, #d9ddcc 100%);
  color: var(--st-ink); padding: 104px 4.7% 112px; margin-top: 56px;
}
.st-cats-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; text-align: left; margin-bottom: 52px; }
.st-cats-head .eyebrow { color: #5c6150; margin: 0 0 18px; }
.st-cats-head h2 { font: 500 clamp(40px, 4.4vw, 58px)/1 "Playfair Display", serif; letter-spacing: -.045em; color: var(--st-ink); }
.st-cats-head h2::after { display: none; }
.st-cats-head > p { color: #5c6150; font-size: 15px; line-height: 1.6; margin: 0; max-width: 34ch; }
.st-cat-grid { gap: 22px; }
.st-cat { color: var(--st-ink); gap: 16px; }
.st-cat-img {
  aspect-ratio: 3 / 4; border-radius: 999px 999px 16px 16px; background: #cfd4c0;
  box-shadow: 0 0 0 1px rgba(36,37,31,.06); transition: transform .6s var(--st-ease), box-shadow .6s var(--st-ease);
}
.st-cat:nth-child(even) { margin-top: 40px; }
.st-cat b { font: 400 24px "Playfair Display", serif; text-align: center; }
.st-cat span { color: #5c6150; text-align: center; margin-top: -8px; }
.st-cat span i { display: inline-block; font-style: normal; transition: transform .3s var(--st-ease); }
@media (hover: hover) {
  .st-cat:hover .st-cat-img { transform: translateY(-6px); box-shadow: 0 18px 40px -22px rgba(36,37,31,.35); }
  .st-cat:hover span { color: var(--st-clay); }
  .st-cat:hover span i { transform: translateX(4px); }
}
@media (max-width: 860px) {
  .st-cats { padding: 76px 5% 84px; margin-top: 48px; }
  .st-cats-head { display: block; margin-bottom: 36px; }
  .st-cats-head > p { margin-top: 14px; }
  .st-cat-grid { gap: 16px 12px; }
  .st-cat:nth-child(even) { margin-top: 28px; }
  .st-cat b { font-size: 20px; }
}

/* ---- Category cards: original rounded shape, blended into the sage band ---- */
.st-cat-img { aspect-ratio: 4 / 5; border-radius: var(--st-radius); background: #d5dac8; box-shadow: none; }
.st-cat:nth-child(even) { margin-top: 0; }
.st-cat b, .st-cat span { text-align: left; }
.st-cat span { margin-top: -10px; }
@media (hover: hover) { .st-cat:hover .st-cat-img { transform: translateY(-4px); box-shadow: 0 16px 34px -24px rgba(36,37,31,.3); } }
@media (max-width: 860px) { .st-cat:nth-child(even) { margin-top: 0; } }

/* ---- Category band: editorial style matching "The Ereca edit" ---- */
.st-cats { background: #ece6db; background-image: none; padding: 110px 4.7% 116px; border-block: 1px solid #ddd5c6; }
.st-cats-head .eyebrow, .st-cats-head > p { color: var(--st-muted); }
.st-cats-head h2 { font: 500 clamp(43px, 4.4vw, 60px)/.98 "Playfair Display", serif; letter-spacing: -.05em; }
.st-cat-grid { gap: 30px; }
.st-cat { gap: 0; }
.st-cat-img { aspect-ratio: 4 / 5; border-radius: 0; background: #ddd6c8; box-shadow: none; }
.st-cat b { font: 400 22px "Playfair Display", serif; letter-spacing: -.02em; margin-top: 18px; }
.st-cat span { margin-top: 6px; font: 11px "DM Mono", monospace; letter-spacing: .08em; color: var(--st-muted); }
@media (hover: hover) {
  .st-cat:hover .st-cat-img { transform: none; box-shadow: none; }
  .st-cat:hover .st-cat-img img { transform: scale(1.04); }
  .st-cat:hover span { color: var(--st-clay); }
}
@media (max-width: 860px) {
  .st-cats { padding: 80px 5% 86px; }
  .st-cat-grid { gap: 28px 14px; }
  .st-cat b { font-size: 19px; margin-top: 14px; }
}

/* ---- Category section: identical treatment to "The Ereca edit" ---- */
.st-cats { background: none; border: 0; margin-top: 0; padding: 115px 4.7% 0; color: var(--st-ink); }
.st-cats .section-heading { margin-bottom: 45px; }
.st-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.st-cats .st-cat { color: var(--st-ink); text-decoration: none; gap: 10px; margin-top: 0; }
.st-cats .st-card-img { margin-bottom: 14px; }
.st-cats .st-price { transition: transform .3s var(--st-ease); }
@media (hover: hover) { .st-cats .st-cat:hover .st-price { transform: translateX(4px); color: var(--st-clay); } .st-cats .st-cat:hover .st-card-meta { color: var(--st-clay); } }
@media (max-width: 860px) {
  .st-cats { padding: 80px 6% 0; }
  .st-cat-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
}
.st-cats .st-price { font-size: 18px; }

/* ---- Tighter spacing between Best sellers and Shop the look; hide heavy rail scrollbar (arrows, drag and swipe remain) ---- */
section.products { padding-bottom: 48px; }
section.look { padding-top: 72px; }
.products .product-grid.rail { scrollbar-width: none; padding-bottom: 4px; }
.products .product-grid.rail::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { section.products { padding-bottom: 36px; } section.look { padding-top: 52px; } }

/* ---------------- 404 page ---------------- */
.nf-page { min-height: 62vh; display: grid; align-content: center; justify-items: start; padding: 90px 4.7% 110px; max-width: 900px; }
.nf-page h1 { font: 500 clamp(44px, 6vw, 80px)/.98 "Playfair Display", serif; letter-spacing: -.05em; margin: 0 0 20px; }
.nf-page > p:not(.eyebrow) { color: var(--st-muted); font-size: 16px; line-height: 1.6; max-width: 46ch; margin: 0 0 32px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.nf-actions a { color: var(--st-ink); font: 12px "DM Mono", monospace; letter-spacing: .06em; text-decoration: underline; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.nf-actions .nf-primary { background: var(--st-ink); color: var(--st-cream); text-decoration: none; padding: 0 22px; }

/* ---- newsletter validation + honeypot ---- */
.sf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sf-msg { min-height: 20px; margin: 8px 0 0; font: 13px/1.4 "DM Sans", sans-serif; color: #c9c4b7; }
.sf-msg.is-error { color: #f0b9a3; }
.sf-news input[aria-invalid="true"] { border-color: #f0b9a3; }

/* ---- privacy notice ---- */
.st-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 380px;
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px;
  background: #fffdf8; color: var(--st-ink); border: 1px solid var(--st-line); border-radius: var(--st-radius);
  box-shadow: 0 18px 40px -24px rgba(36,37,31,.45); font: 13px/1.5 "DM Sans", sans-serif;
}
.st-notice p { margin: 0; }
.st-notice a { color: var(--st-ink); text-underline-offset: 3px; }
.st-notice button { flex: none; min-height: 44px; min-width: 64px; border: 0; border-radius: 999px; background: var(--st-ink); color: var(--st-cream); font: 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 520px) { .st-notice { left: 12px; right: 12px; max-width: none; } }
