/* =========================================================
   Helfenfinger & Piatti — 2026 redesign
   Magazine direction: oxblood + copper + bone, sharp corners,
   transparent navigation over a full-bleed photographic hero.
   This layer sits after style.css and deliberately retunes the
   palette so shop, cart and legal pages follow the same system.
   ========================================================= */

:root {
  --forest: #4b1a23;
  --forest-2: #5e2430;
  --forest-3: #2a0f15;
  --cream: #f7f2e8;
  --cream-2: #ece0d1;
  --paper: #fffdf9;
  --clay: #b06a3b;
  --clay-dark: #8f5228;
  --sand: #dbaf86;
  --ink: #211416;
  --muted: #6d5b58;
  --line: rgba(75, 26, 35, 0.2);
  --line-soft: rgba(75, 26, 35, 0.11);
  --radius: 2px;
  --radius-lg: 4px;
  --shadow: 0 24px 50px -34px rgba(42, 15, 21, 0.55);
  --shadow-soft: 0 12px 26px -20px rgba(42, 15, 21, 0.4);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wrap: 1240px;
}

body { background: var(--cream); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; }

/* ---------- Logo ---------- */
.brand-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  transition: width 0.25s ease;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }

.brand .brand-word,
.brand-lockup .brand-word {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand-lockup .brand-word__name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.34rem;
  letter-spacing: -0.02em;
  color: var(--forest-3);
}
.brand-lockup .brand-word__suffix {
  font-size: 0.54rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
.brand-word--light .brand-word__name { color: var(--cream); }
.brand-word--light .brand-mark { --mark-bg: #f7f2e8; --mark-ink: #4b1a23; --mark-accent: #b06a3b; }
.site-footer .brand-lockup .brand-word__name { font-size: 1.6rem; }

/* ---------- Header: transparent over the hero ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: none;
}
.header-inner { padding-top: 18px; padding-bottom: 18px; }

.hh-front .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* a soft scrim keeps the white nav readable over a bright sky */
  background: linear-gradient(180deg, rgba(28, 10, 14, 0.55) 0%, rgba(28, 10, 14, 0.18) 60%, rgba(28, 10, 14, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hh-front .site-header .brand-lockup .brand-word__name { color: #fff; }
.hh-front .site-header .brand-lockup .brand-word__suffix { color: var(--sand); }
.hh-front .site-header .brand-mark {
  --mark-bg: #f7f2e8;
  --mark-ink: #4b1a23;
  --mark-accent: #b06a3b;
}
.hh-front .site-header .main-nav a { color: rgba(255, 255, 255, 0.9); }
.hh-front .site-header .main-nav a::after { background: var(--sand); }
.hh-front .site-header .main-nav .current-menu-item > a,
.hh-front .site-header .main-nav .current-menu-parent > a { color: #fff; }
.hh-front .site-header .icon-btn { color: #fff; }
.hh-front .site-header .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.hh-front .site-header .cart-count { background: var(--clay); color: #fff; }

.hh-front .site-header.is-stuck {
  position: fixed;
  background: rgba(247, 242, 232, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 30px -26px rgba(42, 15, 21, 0.6);
}
.hh-front .site-header.is-stuck .brand-lockup .brand-word__name { color: var(--forest-3); }
.hh-front .site-header.is-stuck .brand-lockup .brand-word__suffix { color: var(--clay); }
.hh-front .site-header.is-stuck .main-nav a { color: var(--ink); }
.hh-front .site-header.is-stuck .icon-btn { color: var(--ink); }
.hh-front .site-header.is-stuck .brand-mark {
  --mark-bg: #4b1a23;
  --mark-ink: #f7f2e8;
  --mark-accent: #dbaf86;
}

/* ---------- Buttons: square, tracked ---------- */
.btn,
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--forest-3);
  border-radius: 0;
  background: var(--forest-3);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
.x-btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.x-btn--line { background: transparent; border-color: currentColor; color: #fff; }
.x-btn--line:hover { background: #fff; border-color: #fff; color: var(--forest-3); }
.x-btn--light { background: var(--cream); border-color: var(--cream); color: var(--forest-3); }
.x-btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--forest-3); }

/* ---------- Hero ---------- */
.x-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 92vh, 900px);
  background: var(--forest-3);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.x-hero__bg { position: absolute; inset: 0; z-index: -1; }
.x-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.x-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 15, 21, 0.72) 0%, rgba(42, 15, 21, 0.28) 42%, rgba(42, 15, 21, 0.86) 100%);
}
.x-hero__inner { position: relative; padding: 200px 0 64px; }

.x-eyebrow {
  margin: 0 0 20px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sand);
}
/* Over the photo the label needs more punch than the flat sand tone. */
.x-hero .x-eyebrow {
  color: #f3d6b4;
  text-shadow: 0 1px 12px rgba(28, 10, 14, 0.75);
}

.x-hero h1 {
  margin: 0 0 24px;
  max-width: 19ch;
  font-size: clamp(2.5rem, 5.6vw, 4.7rem);
  line-height: 1.02;
  color: #fff;
  font-weight: 500;
}
.x-hero h1 em { font-style: italic; color: var(--sand); }
.x-lead {
  max-width: 52ch;
  margin: 0 0 32px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 253, 249, 0.82);
}
.x-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.x-hero__actions .x-btn { min-width: 190px; }

.x-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 46px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
}
.x-hero__meta li {
  padding: 0 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.x-hero__meta li:first-child { border-left: 0; padding-left: 0; }
.x-hero__meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  color: #fff;
  font-weight: 500;
}
.x-hero__meta span {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.62);
}

.x-hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 46px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.x-hero__scroll:hover { background: #fff; color: var(--forest-3); }

/* ---------- Ticker ---------- */
.x-ticker {
  background: var(--clay);
  color: #2a0f15;
  overflow: hidden;
  border-top: 1px solid rgba(42, 15, 21, 0.15);
  border-bottom: 1px solid rgba(42, 15, 21, 0.15);
}
.x-ticker__row {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 0;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: x-ticker 38s linear infinite;
}
@keyframes x-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .x-ticker__row { animation: none; }
}

/* ---------- Sections ---------- */
.x-section { padding: 92px 0; }
.x-section--paper { background: var(--paper); }

.x-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.x-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.x-head .x-eyebrow { margin-bottom: 12px; color: var(--clay); }

.x-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.x-link:hover { color: var(--clay); gap: 12px; }

/* ---------- Category rail ---------- */
/* Every category is visible at once: five tiles on desktop, two on phones. */
.x-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1120px) {
  .x-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .x-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.x-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.x-card:hover { border-color: var(--forest); transform: translateY(-4px); color: var(--ink); }
.x-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-2);
}
.x-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.x-card:hover .x-card__media img { transform: scale(1.04); }
.x-card__blank { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--forest-2), var(--forest-3)); }
.x-card__index {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 10px;
  background: rgba(42, 15, 21, 0.78);
  color: var(--sand);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.x-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; }
.x-card__body strong { font-family: var(--display); font-size: 1.24rem; font-weight: 500; }
.x-card__body span { font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.x-card__body em {
  font-style: normal;
  margin-top: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Spotlight ---------- */
.x-spot {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.x-spot__media { min-height: 520px; overflow: hidden; }
.x-spot__media img { width: 100%; height: 100%; object-fit: cover; }
.x-spot__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 72px clamp(28px, 5vw, 84px);
}
.x-spot__body .x-eyebrow { color: var(--clay); margin-bottom: 0; }
.x-spot__body h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.x-spot__lead { margin: 0; color: var(--muted); font-size: 0.98rem; max-width: 44ch; }
.x-spot__price {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--forest-3);
}
.x-spot__price .amount { font-size: inherit; }
.x-spot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.x-spot__stock {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Story ---------- */
.x-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest-3);
  color: var(--cream);
}
.x-story__media { min-height: 580px; overflow: hidden; }
.x-story__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.x-story__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 78px clamp(28px, 5vw, 86px);
}
.x-story__body h2 { color: var(--cream); margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; }
.x-story__body .x-eyebrow { color: var(--sand); margin-bottom: 0; }
.x-story__body .x-link { color: var(--cream); }

.x-facts { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 0; }
.x-facts li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(247, 242, 232, 0.16);
}
.x-facts__num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--sand);
  letter-spacing: 0.1em;
  padding-top: 4px;
  min-width: 26px;
}
.x-facts strong { display: block; font-size: 0.98rem; color: var(--cream); font-weight: 600; }
.x-facts p { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.55; color: rgba(247, 242, 232, 0.66); }

/* ---------- FAQ ---------- */
.x-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.x-faq__head h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.x-faq__head .x-eyebrow { color: var(--clay); }
.x-faq__note { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin: 0 0 22px; }
.x-faq__list { border-top: 1px solid var(--line); }
.x-faq__item { border-bottom: 1px solid var(--line); }
.x-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.16rem;
  color: var(--forest-3);
}
.x-faq__item summary::-webkit-details-marker { display: none; }
.x-faq__item summary span {
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--clay);
  transition: transform 0.2s ease;
}
.x-faq__item[open] summary span { transform: rotate(45deg); }
.x-faq__item p { margin: 0; padding: 0 46px 22px 0; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* ---------- Closing band ---------- */
.x-cta { background: var(--forest); color: var(--cream); padding: 76px 0; }
.x-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.x-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.x-cta p { margin: 0; max-width: 48ch; color: rgba(247, 242, 232, 0.72); }
.x-cta .x-eyebrow { color: var(--sand); }

/* ---------- Catalogue & shop surfaces ---------- */
.woocommerce ul.products li.product {
  border: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--paper);
  padding: 14px;
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.woocommerce ul.products li.product:hover { border-color: var(--forest); transform: translateY(-3px); }
.woocommerce ul.products li.product .price { color: var(--forest-3); font-family: var(--display); }
.woocommerce ul.products li.product .button,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order,
.woocommerce .checkout-button {
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.woocommerce ul.products.columns-4 > li { width: 23.5%; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-radius: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-3); color: rgba(247, 242, 232, 0.72); }
.footer-brandfile {
  display: inline-block;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid rgba(247, 242, 232, 0.25);
  color: var(--sand);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-brandfile:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .x-hero__inner { padding-top: 168px; }
  .x-spot { grid-template-columns: 1fr; }
  .x-spot__media { min-height: 360px; }
  .x-story { grid-template-columns: 1fr; }
  .x-story__media { min-height: 340px; }
  .x-faq { grid-template-columns: 1fr; }
  .x-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .x-hero { min-height: 88vh; }
  .x-hero__inner { padding: 150px 0 48px; }
  .x-hero__meta li { padding: 0 18px; }
  .x-hero__meta strong { font-size: 1.5rem; }
  .x-hero__scroll { display: none; }
  .x-section { padding: 64px 0; }
  .x-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .x-rail { grid-auto-columns: 72%; }
  .woocommerce ul.products.columns-4 > li { width: 48%; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-lockup .brand-word__name { font-size: 1.1rem; }
}

@media (max-width: 520px) {
  .woocommerce ul.products.columns-4 > li { width: 100%; }
  .x-hero__meta { gap: 14px 0; }
  .x-hero__meta li { padding: 0 14px; }
}

/* ---------- Refinements after the visual pass ---------- */
/* Categories read as a rail: fixed-width cards, the next one peeks in. */
/* Anchor targets clear the sticky header. */
.hh-front section[id] { scroll-margin-top: 92px; }

/* Catalogue cards: text-link add-to-cart instead of a solid block button,
   so the shop does not echo the Detter theme. */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  display: inline-block;
  width: auto;
  margin-top: 10px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--clay);
  background: none;
  color: var(--forest);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
  background: none;
  color: var(--clay);
  border-bottom-color: var(--forest);
}
.woocommerce ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 12px 0 4px;
}
.woocommerce ul.products li.product .price {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .x-rail { grid-auto-columns: 74%; }
}
