/* ============================================
   BLOOMERY — A LITTLE GARDEN OF MAGIC
   Brand: vintage botanical · enchanted · refined
   ============================================ */

:root {
  /* Brand palette from the guide */
  --ink:        #3a2a2c;   /* deep oxblood-ink (text) */
  --wine:       #5a2a31;   /* primary wine */
  --wine-deep:  #4a1f25;
  --blue:       #a8bdc8;   /* dusty blue */
  --blue-soft:  #c5dae3;
  --blue-pale:  #dceaf0;
  --peach:      #f4e4d4;   /* peach blush */
  --cream:      #f7f1e3;   /* paper cream */
  --cream-2:    #f4eedf;
  --paper:      #f4f1ea;
  --gold:       #c89a4e;
  --leaf:       #7a8a5a;

  --r-soft: 4px;
  --r-pill: 999px;

  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);

  --f-display: 'Readex Pro', system-ui, -apple-system, sans-serif;
  --f-serif:   'Readex Pro', system-ui, -apple-system, sans-serif;
  --f-mono:    'Readex Pro', system-ui, sans-serif;
  --f-sans:    'Readex Pro', system-ui, -apple-system, sans-serif;
  /* Overridden from layout settings (typography_font_size_*); keep defaults here for offline preview */
  --fs-body: 17px;
  --fs-h1: 52px;
  --fs-h2: 26px;
  --fs-small: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-serif);
  color: var(--ink);
  background: var(--cream);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
img, svg { display: block; max-width: 100%; }

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.ann-bar {
  background: var(--wine);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.ann-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  white-space: nowrap;
  animation: marqueeRun 50s linear infinite;
  padding-inline-start: 60px;
  will-change: transform;
}
.ann-group {
  display: flex;
  flex-shrink: 0;
  gap: 60px;
}
@keyframes marqueeRun {
  to { transform: translateX(-50%); }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  min-height: 56px;
  background: rgba(247, 241, 227, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 42, 44, 0.1);
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 10px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-start {
  display: contents;
}
.nav-account--toolbar-mobile {
  display: none !important;
}
.nav.nav-is-open .nav-burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.nav.nav-is-open .nav-burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.nav-links {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links-list {
  flex: 1 1 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  justify-content: flex-start;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
  flex-shrink: 0;
}
.nav-item__link,
.nav-item__trigger {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}
.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-item__trigger-text {
  pointer-events: none;
}
.nav-item__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-item__link:hover,
.nav-item__trigger:hover {
  color: var(--wine);
}
.nav-item__link::after,
.nav-item__trigger::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--wine);
  transition: width 0.4s ease;
}
.nav-item__link:hover::after,
.nav-item__trigger:hover::after {
  width: 100%;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, 70vw);
  padding: 12px 0;
  background: var(--paper);
  border: 1px solid rgba(58, 42, 44, 0.12);
  border-radius: var(--r-soft);
  box-shadow: 0 16px 40px rgba(58, 42, 44, 0.12);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
[dir="rtl"] .nav-dropdown {
  left: auto;
  right: 0;
}
.nav-dropdown__link {
  display: block;
  padding: 10px 18px;
  font-family: var(--f-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown__link:hover {
  background: rgba(176, 56, 56, 0.06);
  color: var(--wine);
}
.nav-dropdown__link--overview {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid rgba(58, 42, 44, 0.08);
  margin-bottom: 4px;
  padding-bottom: 12px;
}
@media (min-width: 981px) {
  .nav-item--has-sub:hover .nav-dropdown,
  .nav-item--has-sub:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-item--has-sub:hover .nav-item__caret,
  .nav-item--has-sub:focus-within .nav-item__caret {
    transform: rotate(180deg);
  }
}

.nav-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  pointer-events: auto;
}
.nav-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
  max-width: min(240px, 46vw);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
}
.nav-logo-text {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--wine);
}

.nav-actions {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}
.nav-icon {
  width: 18px;
  color: var(--ink);
  transition: color 0.3s;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon:hover { color: var(--wine); }
.nav-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 42px;
  background: var(--wine);
  color: var(--cream);
  border: 1px solid var(--wine);
  border-radius: var(--r-pill);
  transition: background 0.3s, border-color 0.3s;
}
.nav-cart:hover {
  background: var(--wine-deep);
  border-color: var(--wine-deep);
}
.nav-cart svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  flex-shrink: 0;
}
.nav-cart .cart-count {
  background: var(--cream);
  color: var(--wine);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.cart-label { display: inline; }

/* Mobile menu overlay + drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(58, 42, 44, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav.nav-is-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  /* Drawer above embedded widgets / vitrin layers */
  .nav.nav-is-open {
    z-index: 50000;
  }
  .nav.nav-is-open .nav-overlay {
    z-index: 49990;
  }
  .nav.nav-is-open .nav-links {
    z-index: 50010;
  }
  .nav.nav-is-open .nav-start {
    z-index: 50020;
  }
  .nav.nav-is-open .nav-logo {
    z-index: 50005;
  }
}

@media (min-width: 981px) {
  .nav-start {
    display: contents;
  }
  .nav-account--toolbar-mobile {
    display: none !important;
  }
  .nav-account--toolbar-desktop {
    display: inline-flex;
  }
  /* Scroll away with the page on desktop (no sticky header) */
  .nav {
    position: relative;
    top: auto;
    z-index: 20;
  }
  .nav-links {
    padding-inline-end: clamp(72px, 11vw, 140px);
  }
  .nav-actions {
    padding-inline-start: clamp(72px, 11vw, 140px);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 30px var(--gutter) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  overflow: hidden;
}

.diamond-border {
  height: 14px;
  background-image:
    linear-gradient(135deg, var(--wine) 50%, transparent 50%),
    linear-gradient(225deg, var(--wine) 50%, transparent 50%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 0;
  background-repeat: repeat-x;
  opacity: 0.12;
  margin-bottom: 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wine);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: lineRise 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title .line-1 { animation-delay: 0.05s; }
.hero-title .line-2 { animation-delay: 0.18s; padding-left: 1.2em; }
.hero-title .line-3 { animation-delay: 0.31s; padding-left: 0.4em; }
.hero-title .line-4 { animation-delay: 0.44s; padding-left: 1.8em; }
.hero-title .line-5 { animation-delay: 0.57s; padding-left: 0.8em; }
.hero-title .line-6 { animation-delay: 0.70s; padding-left: 0.2em; color: var(--wine); }

.hero-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  color: var(--wine);
}

@keyframes lineRise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  margin-top: 40px;
  max-width: 440px;
  opacity: 0;
  animation: lineRise 1s 0.9s forwards;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(58, 42, 44, 0.78);
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.4s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--wine);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--wine-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(90, 42, 49, 0.5);
}
.btn-ghost {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 4px;
}
.btn-ghost:hover { color: var(--wine); border-color: var(--wine); }
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Hero right (gate frame) */
.hero-right {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 720px;
}
.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper);
  border: 1px solid rgba(58, 42, 44, 0.15);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 80px -30px rgba(58, 42, 44, 0.25);
  overflow: hidden;
}
.hero-frame::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid rgba(90, 42, 49, 0.25);
  pointer-events: none;
}
.hero-gate {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.corner {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--wine);
  opacity: 0.7;
}
.corner.tl { top: 22px; left: 22px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 22px; right: 22px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 22px; left: 22px; border-right: 0; border-top: 0; }
.corner.br { bottom: 22px; right: 22px; border-left: 0; border-top: 0; }

.hero-tag {
  position: absolute;
  bottom: 24px;
  left: -30px;
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 14px 22px;
  box-shadow: 0 12px 30px -10px rgba(58, 42, 44, 0.3);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-tag-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-tag-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
}
.hero-tag-title {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--wine);
}
.hero-tag-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 2px;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  display: none;  /* hide on small screens via responsive */
}
.hero-scroll svg { width: 14px; height: 14px; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 30px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }

.marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: 0.04em;
  animation: marqueeRun 35s linear infinite;
  align-items: center;
  will-change: transform;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 50px;
}
.marquee-track i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.5em;
}

/* ============================================
   STORY
   ============================================ */
.story {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.story-label {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--ink);
}
.story-label.dark { border-top-color: var(--cream); color: var(--cream); }
.label-num {
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--wine);
}
.label-text {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.story-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin-bottom: 30px;
}
.story-title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
  font-size: 1.2em;
}

.story-lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 24px;
  max-width: 640px;
}
.story-body {
  color: rgba(58, 42, 44, 0.78);
  margin-bottom: 50px;
  max-width: 640px;
  font-size: 17px;
}

.story-elements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
}
.elem {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.15);
}
.elem-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--wine);
  background: var(--paper);
}
.elem-icon svg { width: 24px; height: 24px; }
.elem-name {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--wine);
  margin-bottom: 2px;
}
.elem-meaning {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
}

.story-aside {
  position: sticky;
  top: 120px;
  align-self: start;
}
.story-quote {
  background: var(--blue-pale);
  border: 1px solid var(--blue);
  padding: 50px 40px 40px;
  position: relative;
  border-radius: 4px;
}
.story-quote::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--blue);
  pointer-events: none;
  border-radius: 2px;
}
.quote-mark {
  position: absolute;
  top: 0; left: 30px;
  font-family: var(--f-display);
  font-size: 90px;
  line-height: 1;
  color: var(--wine);
}
.story-quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--wine-deep);
  margin-bottom: 20px;
}
.quote-sig {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
}

/* ============================================
   SHOP
   ============================================ */
.shop {
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.shop-head {
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shop-featured .shop-head {
  margin-bottom: 36px;
}
.shop-head .story-label {
  position: static;
  border: 0;
  padding: 0;
  align-items: center;
  margin-bottom: 16px;
}
.shop-title {
  font-family: var(--f-display);
  font-size: clamp(max(28px, calc(var(--fs-h2) * 1.15)), 5.5vw, min(88px, var(--fs-h1)));
  font-weight: 400;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.shop-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--wine);
  font-size: 1.15em;
}
.shop-sub {
  max-width: 480px;
  color: rgba(58, 42, 44, 0.7);
  font-size: var(--fs-small);
  font-style: italic;
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: all 0.3s;
  background: transparent;
}
.chip:hover { border-color: var(--ink); }
.chip-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.prod {
  background: transparent;
  position: relative;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.prod:hover { transform: translateY(-4px); }

.prod-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(58, 42, 44, 0.12);
  transition: border-color 0.4s;
  background: var(--paper);
}
.prod-media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(247, 241, 227, 0.94) 0%, rgba(247, 241, 227, 0.35) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.prod-media-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.prod:hover .prod-media { border-color: var(--ink); }
.prod-media-rose { background: linear-gradient(135deg, #f7e4dd 0%, #f0d4ca 100%); }
.prod-media-peach { background: linear-gradient(135deg, var(--peach) 0%, #ead0b8 100%); }
.prod-media-cream { background: linear-gradient(135deg, var(--cream) 0%, #ebe1c8 100%); }
.prod-media-blue { background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-soft) 100%); }

.prod-illu {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.prod-illu--demo {
  width: 100%;
  height: 100%;
}
.prod-illu--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream) 0%, var(--blue-pale) 100%);
}
.prod:hover .prod-illu { transform: scale(1.03); }

.prod-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.prod-info { padding: 0 4px; }
.prod-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.prod-name {
  font-family: var(--f-display);
  font-size: clamp(17px, 2.4vw, calc(var(--fs-h2) * 0.92));
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.prod-price {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--wine);
  white-space: nowrap;
}
.prod-desc {
  font-size: calc(var(--fs-small) * 0.95);
  color: rgba(58, 42, 44, 0.7);
  font-style: italic;
  margin-bottom: 14px;
}
.prod-cta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  transition: all 0.3s;
}
.prod-cta:hover { color: var(--wine); border-color: var(--wine); }

/* ============================================
   FEATURE / EDITORIAL
   ============================================ */
.feature {
  background: var(--cream-2);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px); max-width: 1100px;
  height: 1px;
  background: var(--ink);
  opacity: 0.15;
}

.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.feature-img-frame {
  position: relative;
  border: 1px solid var(--ink);
  padding: 16px;
  background: var(--cream);
  box-shadow: 0 30px 80px -30px rgba(58, 42, 44, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.feature-img-frame:hover { transform: rotate(0deg); }
.feature-img-frame svg { width: 100%; height: auto; display: block; }

.feature-text { padding: 20px 0; }
.feature-text .story-label {
  position: static; border: 0; padding: 0;
  margin-bottom: 24px;
}

.feature-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}
.feature-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--wine);
  font-size: 1.15em;
}
.feature-body {
  color: rgba(58, 42, 44, 0.78);
  margin-bottom: 36px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
}
.feature-list {
  list-style: none;
  margin-bottom: 40px;
  border-top: 1px solid rgba(58, 42, 44, 0.2);
}
.feature-list li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(58, 42, 44, 0.2);
}
.feat-num {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--wine);
  padding-top: 4px;
  width: 30px;
}
.feature-list strong {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-list p {
  font-size: 15px;
  color: rgba(58, 42, 44, 0.7);
  font-style: italic;
}

/* ============================================
   PRAISE
   ============================================ */
.praise {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  position: relative;
  overflow: hidden;
}

.praise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 14px;
  background-image:
    linear-gradient(135deg, var(--wine) 50%, transparent 50%),
    linear-gradient(225deg, var(--wine) 50%, transparent 50%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 0;
  background-repeat: repeat-x;
  opacity: 0.4;
}

.praise-head {
  max-width: var(--maxw);
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.praise-head .story-label { position: static; padding: 0; border: 0; align-items: center; margin-bottom: 16px; }

.praise-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 1;
}
.praise-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.15em;
}

.praise-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.praise-card {
  background: var(--cream);
  color: var(--ink);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.5s;
}
.praise-card:hover { transform: translateY(-6px); }
.praise-card::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(58, 42, 44, 0.2);
  pointer-events: none;
}
.praise-card-dark {
  background: var(--wine);
  color: var(--cream);
}
.praise-card-dark::before { border-color: rgba(244, 241, 234, 0.25); }

.praise-stars {
  font-family: var(--f-display);
  color: var(--gold);
  letter-spacing: 0.4em;
  font-size: 14px;
  margin-bottom: 20px;
}
.praise-card-dark .praise-stars { color: var(--peach); }

.praise-quote {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 30px;
}

.praise-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.praise-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--cream);
}
.praise-name {
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}
.praise-role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 2px;
}

/* ============================================
   JOURNAL
   ============================================ */
.journal {
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.journal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 60px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}
.journal-head .story-label {
  position: static; border: 0; padding: 0;
  margin-bottom: 20px;
  grid-column: 1;
}
.journal-title {
  grid-column: 1;
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.95;
}
.journal-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--wine);
  font-size: 1.15em;
}
.journal-all {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wine);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.post { display: flex; flex-direction: column; }
.post-img {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(58, 42, 44, 0.15);
  transition: transform 0.6s;
}
.post:hover .post-img { transform: scale(1.01); }
.post-feature .post-img { aspect-ratio: 4/5; }
.post-img-1 {
  background:
    radial-gradient(circle at 30% 40%, #c89aa0 0%, transparent 30%),
    radial-gradient(circle at 70% 60%, #5a2a31 0%, transparent 35%),
    linear-gradient(135deg, var(--peach) 0%, #e8c8a8 100%);
}
.post-img-2 {
  background:
    radial-gradient(circle at 50% 50%, #f5d568 0%, transparent 40%),
    linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-soft) 100%);
}
.post-img-3 {
  background:
    radial-gradient(circle at 40% 50%, #a8bdc8 0%, transparent 50%),
    linear-gradient(135deg, var(--cream) 0%, #d8c8b0 100%);
}
.post-cat {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--cream);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  color: var(--wine);
}

.post-meta {
  display: flex; gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
  margin-bottom: 12px;
}
.post-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.post-feature .post-title { font-size: 32px; }
.post-excerpt {
  font-size: 15px;
  color: rgba(58, 42, 44, 0.7);
  font-style: italic;
  margin-bottom: 14px;
}
.post-link {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  padding: 4px 0;
  border-bottom: 1px solid var(--wine);
  align-self: flex-start;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.news {
  padding: 0 var(--gutter);
  margin-bottom: 80px;
}
.news-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--wine);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 120px) clamp(30px, 6vw, 80px);
  border-radius: 4px;
}
.news-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.news-pattern svg { width: 100%; height: 100%; }
.news-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-content .story-label.dark { position: static; border: 0; padding: 0; align-items: center; margin-bottom: 16px; color: var(--cream); }
.news-content .label-num { color: var(--blue); }
.news-content .label-text { color: var(--cream); }

.news-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
}
.news-title em {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.15em;
}
.news-sub {
  color: rgba(244, 241, 234, 0.85);
  margin-bottom: 36px;
  font-size: 16px;
  font-style: italic;
}

.news-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-radius: var(--r-pill);
  padding: 6px;
  margin-bottom: 16px;
}
.news-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 18px;
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.news-form input::placeholder { color: rgba(58, 42, 44, 0.4); font-style: italic; }
.news-form button {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 22px;
  border-radius: var(--r-pill);
  transition: background 0.3s;
}
.news-form button:hover { background: var(--wine-deep); }

.news-fine {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--cream-2);
  padding: 80px var(--gutter) 30px;
  position: relative;
  border-top: 1px solid rgba(58, 42, 44, 0.15);
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.15);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo img,
.footer-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 88px;
  max-width: min(320px, 88vw);
  object-fit: contain;
  object-position: center left;
}
.footer-logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
}
.footer-logo-text {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--wine);
}
.footer-tagline {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0.75;
}

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(58, 42, 44, 0.78);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--wine); }

.footer-bigtype {
  font-family: var(--f-display);
  font-size: clamp(80px, 18vw, 280px);
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--wine);
  line-height: 0.9;
  margin: 30px 0 20px;
  opacity: 0.18;
  user-select: none;
  pointer-events: none;
}

.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
}
.footer-legal {
  display: flex;
  gap: 22px;
  justify-content: center;
}
.footer-legal a:hover { color: var(--wine); }
.footer-credit { text-align: right; }

/* ============================================
   REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  /* backdrop-filter on .nav creates a containing block: fixed .nav-links / .nav-overlay
     attach to the header strip only → drawer looks like a broken cream bar + missing logo.
     Solid bar + full-bleed width restores viewport-fixed overlay/drawer. */
  .nav {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--cream);
  }
  .nav-overlay {
    display: block;
    pointer-events: none;
  }
  .nav.nav-is-open .nav-overlay {
    pointer-events: auto;
  }
  .nav-burger {
    display: inline-flex;
  }
  .nav-start {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
  }
  .nav-account--toolbar-mobile {
    display: inline-flex !important;
  }
  .nav-account--toolbar-desktop {
    display: none !important;
  }
  /* Drawer: physical left/right so RTL works even when dir is only on body */
  .nav-links {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: min(300px, 88vw);
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: calc(72px + env(safe-area-inset-top, 0px)) var(--gutter) max(24px, env(safe-area-inset-bottom));
    background: var(--cream);
    border-right: 1px solid rgba(58, 42, 44, 0.12);
    box-shadow: 8px 0 40px rgba(58, 42, 44, 0.15);
    color: var(--ink);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s;
    z-index: 90;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  [dir="rtl"] .nav-links {
    left: auto;
    right: 0;
    border-right: 0;
    border-left: 1px solid rgba(58, 42, 44, 0.12);
    box-shadow: -8px 0 40px rgba(58, 42, 44, 0.15);
    transform: translateX(100%);
  }
  .nav.nav-is-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-item {
    border-bottom: 1px solid rgba(58, 42, 44, 0.1);
  }
  .nav-item:last-child {
    border-bottom: 0;
  }
  .nav-item__link,
  .nav-item__trigger {
    padding: 16px 0;
    font-size: 15px;
    letter-spacing: 0.06em;
    white-space: normal;
    color: var(--ink);
    text-decoration: none;
    width: 100%;
    justify-content: space-between;
    text-align: start;
  }
  .nav-item__link::after,
  .nav-item__trigger::after {
    display: none;
  }
  .nav-dropdown {
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: rgba(58, 42, 44, 0.04);
    border-radius: var(--r-soft);
    transition: max-height 0.35s ease;
  }
  .nav-item--has-sub.nav-item--open .nav-dropdown {
    max-height: 480px;
    padding: 6px 0 14px;
    margin-top: 4px;
  }
  .nav-item--open .nav-item__caret {
    transform: rotate(180deg);
  }
  .nav-dropdown__link {
    padding: 12px 14px 12px 22px;
    font-size: 14px;
    white-space: normal;
    border-radius: 0;
  }
  [dir="rtl"] .nav-dropdown__link {
    padding: 12px 22px 12px 14px;
  }
  .nav-dropdown__link--overview {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
  }
  /* Centered logo sits above the drawer; hide while open so links stay readable */
  .nav.nav-is-open .nav-logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .cart-label { display: none; }
  .nav-logo-img { max-height: 44px; max-width: min(200px, 52vw); }
  .nav-actions { gap: 10px; }
  .nav-cart {
    padding: 10px 12px;
    min-height: 44px;
    min-width: 44px;
    gap: 4px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Cap hero visual so image column cannot dwarf the screen (was easy to feel >100vh with wide aspect-ratio). */
  .hero-right {
    aspect-ratio: 4 / 5;
    max-height: min(560px, 72vh, 85svh);
    width: 100%;
    margin-inline: auto;
  }

  .story-grid { grid-template-columns: 1fr; }
  .story-label { position: static; border-top: 0; padding-top: 0; flex-direction: row; align-items: center; gap: 14px; margin-bottom: 8px; }
  .story-aside { position: static; }
  .story-elements { grid-template-columns: 1fr; }

  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .feature-grid { grid-template-columns: 1fr; gap: 50px; }
  .feature-img-frame { transform: none; }

  .praise-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; gap: 50px; }
  .journal-head { grid-template-columns: 1fr; }
  .journal-all { grid-column: 1; grid-row: auto; justify-self: start; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-credit { text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ann-bar { font-size: 10px; }
  /* 2 products per row on small phones (was 1fr — too sparse for storefront grids). */
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-tag { left: 10px; bottom: 10px; padding: 10px 16px; }
  .hero-tag-mark { width: 32px; height: 32px; font-size: 18px; }
  .hero-tag-title { font-size: 16px; }
  .news-form { flex-direction: column; padding: 8px; border-radius: 12px; }
  .news-form button { padding: 12px 20px; }
}

/* ============================================
   UX UPGRADES — keep the design, fix the flow
   ============================================ */

/* ---- Trust strip under hero CTAs ---- */
.hero-trust {
  list-style: none;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(58, 42, 44, 0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 480px;
}
.hero-trust li {
  display: flex; gap: 10px; align-items: flex-start;
}
.hero-trust svg {
  width: 22px; height: 22px; flex-shrink: 0;
  color: var(--wine); margin-top: 1px;
}
.hero-trust strong {
  display: block;
  font-family: var(--f-display);
  font-size: 15px; letter-spacing: 0.02em;
  color: var(--ink); margin-bottom: 1px;
}
.hero-trust span {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.6);
}

/* ---- Cart pill in nav ---- */
.nav-cart-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 16px;
  background: var(--wine);
  color: var(--cream);
  border-radius: var(--r-pill);
  border: 1px solid var(--wine);
  transition: all 0.3s;
}
.nav-cart-pill:hover { background: var(--wine-deep); transform: translateY(-1px); }
.nav-cart-pill svg { width: 16px; height: 16px; stroke: currentColor; }
.nav-cart-pill .cart-count {
  background: var(--cream);
  color: var(--wine);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  min-width: 22px;
  text-align: center;
}
.cart-flash { animation: cartPulse 0.6s ease; }
@keyframes cartPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Add-to-cart success — cart control + badge + optional source button */
.nav-cart.nav-cart--celebrate {
  animation: bloomeryCartCelebrate 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bloomeryCartCelebrate {
  0% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 rgba(200, 154, 78, 0); }
  35% { transform: scale(1.06) rotate(-2deg); box-shadow: 0 0 0 6px rgba(200, 154, 78, 0.25); }
  65% { transform: scale(1.1) rotate(2deg); box-shadow: 0 0 0 10px rgba(200, 154, 78, 0.12); }
  100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 0 0 rgba(200, 154, 78, 0); }
}
.nav-cart .cart-count.cart-count--celebrate {
  animation: bloomeryCartCountPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bloomeryCartCountPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.product-add-btn.bloomery-btn-added,
.prod-add.bloomery-btn-added {
  animation: bloomeryBtnAdded 0.55s ease;
}
@keyframes bloomeryBtnAdded {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.03); filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(122, 138, 90, 0.35); }
  100% { transform: scale(1); filter: brightness(1); box-shadow: none; }
}

/* ---- Category strip ---- */
.cats {
  padding: 50px var(--gutter) 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cats-head {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.18);
}
.cats-head h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.cats-all {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  border-bottom: 1px solid var(--wine);
  padding-bottom: 4px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 22px 14px 16px;
  background: var(--cat-bg);
  border: 1px solid rgba(58, 42, 44, 0.12);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
}
.cat:hover {
  transform: translateY(-3px);
  border-color: var(--cat-accent);
  box-shadow: 0 14px 30px -10px rgba(58, 42, 44, 0.25);
}
.cat-illu {
  width: 64px; height: 64px;
  margin-bottom: 10px;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.cat:hover .cat-illu { transform: scale(1.08) rotate(-3deg); }
.cat-name {
  font-family: var(--f-display);
  font-size: 17px; color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.cat-count {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
}

/* ---- Shop toolbar (filter + sort) ---- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding: 16px 0;
  border-top: 1px solid rgba(58, 42, 44, 0.15);
  border-bottom: 1px solid rgba(58, 42, 44, 0.15);
  flex-wrap: wrap;
}
.shop-toolbar .shop-filters {
  margin-bottom: 0;
}
.shop-sort {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.65);
}
.shop-sort select {
  font-family: var(--f-serif);
  font-size: 14px;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: var(--r-pill);
  padding: 8px 30px 8px 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233a2a2c' stroke-width='1.4'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* ---- Product card UX upgrade ---- */
.prod-foot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.prod-foot .prod-price {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--wine);
  font-weight: 500;
}
.prod-price-from {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(58, 42, 44, 0.55);
}

/* Variant dock — segmented bar + add button (mockup) */
.bloomery-variant-dock {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.bloomery-variant-dock > * {
  pointer-events: auto;
}
.bloomery-variant-bar {
  display: flex;
  width: 100%;
  border: 1px solid rgba(58, 42, 44, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 4px 20px rgba(58, 42, 44, 0.08);
}
.bloomery-variant-seg {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 11px 6px;
  border: 0;
  border-inline-end: 1px solid rgba(58, 42, 44, 0.14);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(10px, 2.2vw, 12px);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  text-align: center;
}
.bloomery-variant-seg:last-child {
  border-inline-end: 0;
}
.bloomery-variant-seg__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bloomery-variant-seg:hover {
  background: rgba(90, 42, 49, 0.08);
}
.bloomery-variant-seg.is-active {
  background: var(--wine);
  color: var(--cream);
}
.bloomery-variant-seg.is-active:hover {
  background: var(--wine-deep);
}
.bloomery-variant-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--wine);
  color: var(--cream);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 6px 20px rgba(90, 42, 49, 0.22);
}
.bloomery-variant-cart:hover {
  background: var(--wine-deep);
}
.bloomery-variant-cart svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
[dir="rtl"] .bloomery-variant-cart svg {
  transform: scaleX(-1);
}
.prod-card--variants .prod-actions {
  display: none;
}
.prod-card--variants .prod-variants {
  display: none;
}

.prod-actions {
  margin-top: 14px;
}

.prod-variants {
  display: none;
}
.prod-card-stockhint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 10px;
}

.prod-sizes {
  display: flex; gap: 4px;
}
.size {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.1em;
  padding: 7px 4px;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  transition: all 0.25s;
  white-space: nowrap;
}
.size:hover { border-color: var(--ink); }
.size-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.prod-add {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--wine);
  color: var(--cream);
  padding: 11px;
  border-radius: 3px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
}
.prod-add:hover { background: var(--wine-deep); }
.prod-add.is-loading { opacity: 0.65; pointer-events: none; }
.tag-soft {
  background: var(--cream) !important;
  color: var(--wine) !important;
  border: 1px solid var(--wine);
}

/* ---- How it works ---- */
.how {
  background: var(--cream-2);
  padding: 60px var(--gutter);
  border-top: 1px solid rgba(58, 42, 44, 0.1);
  border-bottom: 1px solid rgba(58, 42, 44, 0.1);
}
.how-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.how-step { text-align: center; max-width: 320px; margin: 0 auto; }
.how-num {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 44px;
  color: var(--wine);
  margin-bottom: 14px;
  position: relative;
}
.how-num::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--wine);
  margin: 6px auto 0;
}
.how-step h3 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.how-step p {
  font-size: 15px;
  color: rgba(58, 42, 44, 0.7);
  font-style: italic;
}

/* ---- Cart drawer ---- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58, 42, 44, 0);
  transition: background 0.4s;
  cursor: pointer;
}
.cart-drawer.open .cart-overlay {
  background: rgba(58, 42, 44, 0.45);
}
.cart-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  box-shadow: -20px 0 60px -20px rgba(58, 42, 44, 0.4);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.15);
}
.cart-header h3 {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wine);
}
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(58, 42, 44, 0.2);
  color: var(--ink);
  transition: all 0.3s;
}
.cart-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cart-close svg { width: 16px; height: 16px; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 28px; }
.cart-empty {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 18px;
  padding: 40px 0;
}
.cart-empty-icon {
  font-family: var(--f-display);
  font-size: 48px;
  color: var(--wine);
  opacity: 0.4;
}
.cart-empty p {
  font-style: italic;
  color: rgba(58, 42, 44, 0.7);
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58, 42, 44, 0.12);
}
.cart-item-img {
  width: 64px; height: 64px;
  border: 1px solid rgba(58, 42, 44, 0.15);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--wine);
  font-size: 26px;
}
.cart-item-name {
  font-family: var(--f-display);
  font-size: 17px; letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.cart-item-meta {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: rgba(58, 42, 44, 0.6);
  margin-bottom: 8px;
}
.cart-item-qty {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px;
}
.cart-item-qty button {
  width: 24px; height: 24px;
  border: 1px solid rgba(58, 42, 44, 0.3);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all 0.2s;
}
.cart-item-qty button:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}
.cart-rm {
  width: auto !important; height: auto !important;
  border: 0 !important; border-radius: 0 !important;
  font-family: var(--f-mono);
  font-size: 9px !important; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55) !important;
  padding: 0 !important;
  text-decoration: underline;
  margin-left: 6px;
}
.cart-rm:hover { background: transparent !important; color: var(--wine) !important; }
.cart-item-line {
  font-family: var(--f-mono);
  font-size: 12px; color: var(--wine);
  font-weight: 500;
  white-space: nowrap;
}
.cart-footer {
  padding: 22px 28px 28px;
  border-top: 1px solid rgba(58, 42, 44, 0.15);
  background: var(--cream-2);
}
.cart-row {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cart-row span {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-row strong {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 400;
  color: var(--wine);
}
.cart-row--line strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.cart-row--line span {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
}
.cart-note {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
  margin-bottom: 18px;
}
.cart-checkout {
  width: 100%;
  justify-content: center;
}

/* ---- Sticky delivery cue ---- */
.sticky-cue {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 14px 40px -10px rgba(58, 42, 44, 0.4);
}
.sticky-cue.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.sticky-cue strong { color: var(--peach); }
.cue-dot {
  width: 8px; height: 8px;
  background: #b8e0a0;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .how-inner { grid-template-columns: 1fr; gap: 30px; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-sort { justify-content: flex-end; }
  .hero-trust { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-panel { width: 100vw; }
  .sticky-cue { font-size: 10px; padding: 10px 16px; }
}

/* ---- Hero feature peek (replaces old hero-tag) ---- */
.hero-feature {
  position: absolute;
  bottom: 24px;
  left: -30px;
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 10px 14px 10px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px -12px rgba(58, 42, 44, 0.3);
  animation: heroFloat 6s ease-in-out infinite;
  transition: transform 0.4s, box-shadow 0.4s;
  max-width: 280px;
  z-index: 3;
}
.hero-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -16px rgba(58, 42, 44, 0.4);
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-feature-img {
  width: 60px; height: 60px;
  flex-shrink: 0;
  background: var(--blue-pale);
  border: 1px solid rgba(58, 42, 44, 0.15);
  border-radius: 4px;
  padding: 6px;
}
.hero-feature-img svg { width: 100%; height: 100%; }
.hero-feature-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hero-feature-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
}
.hero-feature-name {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-feature-price {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--wine);
}

@media (max-width: 600px) {
  .hero-feature { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

/* ---- story-label-inline (centered chapter label) ---- */
.story-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.story-label-inline.dark { color: var(--peach); }
.story-label-inline .label-num {
  color: var(--wine);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.15em;
}
.story-label-inline.dark .label-num { color: var(--blue); }

/* ---- Story section override (2-col simplified) ---- */
.story .story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.story .story-text { display: block; }
.story .story-text .story-title {
  margin: 14px 0 24px;
  font-size: clamp(36px, 4.5vw, 60px);
}
.story .story-aside { position: static; }

@media (max-width: 980px) {
  .story .story-grid { grid-template-columns: 1fr; }
}

/* ============================================
   IMAGE SLIDER
   ============================================ */
.img-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}
.img-slider-small    { height: 360px; }
.img-slider-medium   { height: 560px; }
.img-slider-large    { height: 720px; }
/* Fullscreen slider: avoid stacking min-height vh+dvh (felt taller than viewport on mobile). Prefer svh/small viewport. */
.img-slider-fullscreen {
  box-sizing: border-box;
  height: min(92vh, 92dvh);
  max-height: min(92vh, 92dvh);
  min-height: 0;
}
@supports (height: 92svh) {
  .img-slider-fullscreen {
    height: min(92vh, 92svh, 92dvh);
    max-height: min(92vh, 92svh, 92dvh);
  }
}

.img-slider-track { position: relative; width: 100%; height: 100%; }
.img-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.img-slide.active { opacity: 1; pointer-events: auto; }
.img-slide picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}
.img-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.img-slide-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
  container-name: img-slide-video;
}
/* Blocks YouTube play/pause chrome until JS marks slide as playing. */
.img-slide-yt-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.img-slide-yt-poster--veil {
  background-color: var(--cream);
  background-image:
    linear-gradient(to top, rgba(247, 241, 227, 0.92) 0%, rgba(247, 241, 227, 0.55) 40%, rgba(247, 241, 227, 0.92) 100%),
    radial-gradient(circle at 50% 50%, rgba(247, 241, 227, 0.98) 0%, rgba(247, 241, 227, 0.72) 42%, rgba(247, 241, 227, 0.35) 100%);
}
.img-slide--video.is-playing .img-slide-yt-poster {
  opacity: 0;
  visibility: hidden;
}
/* Soft veil over embed: dims YouTube end-card / logo if it flashes (background-video use). */
.img-slide-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* Matches default --cream (#f7f1e3); keeps end slate unreadable without hiding slide copy (sibling above). */
  background: linear-gradient(to top, rgba(247, 241, 227, 0.78) 0%, rgba(247, 241, 227, 0) 30%),
    linear-gradient(to bottom right, rgba(247, 241, 227, 0.62) 0%, rgba(247, 241, 227, 0) 24%);
}
.img-slide-yt {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  pointer-events: none;
  touch-action: none;
  /* 16:9 cover inside the slide box (not the viewport). */
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  /* Overscan hides YouTube tap / pause UI; stronger on small screens. */
  transform: translate(-50%, -50%) scale(1.12);
  transform-origin: center center;
}
@supports not (width: 1cqw) {
  .img-slide-yt {
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.12);
  }
}
@media (max-width: 768px) {
  .img-slide-yt {
    transform: translate(-50%, -50%) scale(1.48);
  }
  .img-slide--video:not(.is-playing) .img-slide-yt {
    opacity: 0;
  }
  .img-slide--video.is-playing .img-slide-yt {
    opacity: 1;
    transition: opacity 0.35s ease;
  }
  @supports not (width: 1cqw) {
    .img-slide-yt {
      transform: translate(-50%, -50%) scale(1.48);
    }
  }
  .img-slide-video::after {
    background: linear-gradient(to top, rgba(247, 241, 227, 0.88) 0%, rgba(247, 241, 227, 0) 38%),
      linear-gradient(to bottom right, rgba(247, 241, 227, 0.78) 0%, rgba(247, 241, 227, 0) 32%),
      radial-gradient(circle at 50% 52%, rgba(247, 241, 227, 0.55) 0%, rgba(247, 241, 227, 0) 38%);
  }
  .img-slide--video.is-playing .img-slide-video::after {
    opacity: 0.55;
  }
}
.img-slide-yt-tap {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.img-slide-yt-tap.is-hidden,
.img-slide--video.is-playing .img-slide-yt-tap {
  display: none;
}
.img-slide-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 800px;
  color: var(--ink);
}
.img-slide-content-left   { text-align: start;  margin-inline-start: var(--gutter); margin-inline-end: auto; }
.img-slide-content-center { text-align: center; }
.img-slide-content-right  { text-align: end;    margin-inline-start: auto; margin-inline-end: var(--gutter); }
.img-slide-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.5vw, 80px);
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 24px rgba(247, 241, 227, 0.95), 0 2px 12px rgba(247, 241, 227, 0.85), 0 1px 2px rgba(58, 42, 44, 0.2);
}
.img-slide-desc {
  font-family: var(--f-serif);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.5;
  margin-bottom: 28px;
  opacity: 0.92;
  text-shadow: 0 0 18px rgba(247, 241, 227, 0.92), 0 1px 8px rgba(247, 241, 227, 0.8);
}
.img-slide-content .btn-primary {
  background: var(--wine);
  color: var(--cream);
  border: 1px solid rgba(58, 42, 44, 0.15);
}
.img-slide-content .btn-primary:hover { background: var(--wine-deep); }

.img-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(247, 241, 227, 0.85);
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.3s;
}
.img-slider-arrow:hover { background: var(--cream); }
.img-slider-arrow svg { width: 18px; height: 18px; }
.img-slider-prev { inset-inline-start: 16px; }
.img-slider-next { inset-inline-end: 16px; }
[dir="rtl"] .img-slider-prev svg { transform: scaleX(-1); }
[dir="rtl"] .img-slider-next svg { transform: scaleX(-1); }

.img-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.img-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(247, 241, 227, 0.5);
  border: 1px solid rgba(247, 241, 227, 0.8);
  transition: background 0.3s;
}
.img-slider-dot.active { background: var(--cream); }

/* Admin pixel heights (section: desktop_height_px / mobile_height_px) override preset per breakpoint */
@media (min-width: 981px) {
  .img-slider.img-slider--h-d {
    height: var(--img-slider-d);
    max-height: var(--img-slider-d);
    min-height: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 980px) {
  .img-slider.img-slider--h-m {
    height: var(--img-slider-m);
    max-height: var(--img-slider-m);
    min-height: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .img-slider-small  { height: 260px; }
  .img-slider-medium { height: 380px; }
  .img-slider-large  { height: 500px; }
}

@media (max-width: 980px) {
  .img-slider-fullscreen {
    height: min(85vh, 88svh, 88dvh);
    max-height: min(85vh, 88svh, 88dvh);
  }
}

/* ============================================
   STANDALONE SEPARATORS (single horizontal row each — no extra bands)
   ============================================ */
.sep {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  flex-shrink: 0;
}
.sep-diamond-border {
  height: 14px;
  background-image:
    linear-gradient(135deg, var(--wine) 50%, transparent 50%),
    linear-gradient(225deg, var(--wine) 50%, transparent 50%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 0;
  background-repeat: repeat-x;
}
.sep-stripe {
  height: 8px;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(
      90deg,
      var(--wine) 0,
      var(--wine) 14px,
      var(--cream) 14px,
      var(--cream) 18px,
      var(--blue) 18px,
      var(--blue) 32px,
      var(--cream) 32px,
      var(--cream) 36px
    );
}
.sep-diamond-band {
  height: 14px;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, var(--wine) 50%, transparent 50%) 0 0 / 14px 14px repeat-x,
    linear-gradient(225deg, var(--wine) 50%, transparent 50%) 7px 0 / 14px 14px repeat-x,
    var(--blue-pale);
}
.sep-toile {
  min-height: 32px;
  box-sizing: border-box;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%235a2a31' stroke-width='1.2' opacity='0.4'><g transform='translate(60 60)'><ellipse cx='0' cy='0' rx='14' ry='9' transform='rotate(-20)'/><ellipse cx='-10' cy='-6' rx='3' ry='6' transform='rotate(-30)'/></g><g transform='translate(180 60)'><ellipse cx='0' cy='0' rx='14' ry='9' transform='rotate(20)'/></g><g transform='translate(120 130)'><circle cx='0' cy='0' r='6' fill='%23c89aa0' opacity='0.5'/></g><path d='M120 30 l3 -8 l3 8 l8 3 l-8 3 l-3 8 l-3 -8 l-8 -3z' fill='%235a2a31' opacity='0.5'/></g></svg>");
  background-size: 240px 240px;
  background-repeat: repeat-x;
  background-position: center top;
}
.sep-marquee-text {
  background: var(--ink);
  color: var(--cream);
  padding: 18px 0;
  overflow: hidden;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 36px);
  letter-spacing: 0.04em;
}
.sep-marquee-text i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.6em;
  margin: 0 12px;
}

/* ============================================
   STARS / BREADCRUMB / PAGINATION
   ============================================ */
.bm-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.bm-star { display: inline-block; }
.bm-star.empty { color: rgba(58, 42, 44, 0.2); }
.bm-star.half { opacity: 0.6; }

.bm-breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(58, 42, 44, 0.6);
}
.bm-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.bm-breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 8px; opacity: 0.5; }
.bm-breadcrumb a { color: var(--wine); }
.bm-breadcrumb a:hover { text-decoration: underline; }

.bm-page-head {
  max-width: var(--maxw);
  margin: 0 auto 30px;
  padding: 30px var(--gutter) 0;
}
.bm-page-head-inner { border-bottom: 1px solid rgba(58, 42, 44, 0.15); padding-bottom: 24px; }
.bm-page-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
}
.bm-page-desc {
  font-style: italic;
  color: rgba(58, 42, 44, 0.7);
  font-size: 16px;
}

.bm-pagination {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bm-pagination ul { list-style: none; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; }
.bm-pagination li { display: inline-block; }
.bm-pagination a, .bm-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: all 0.3s;
}
.bm-pagination a:hover { border-color: var(--ink); }
.bm-pagination .active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.bm-pagination .disabled a, .bm-pagination .disabled span { opacity: 0.35; pointer-events: none; }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.product-gallery { position: sticky; top: 100px; }
.product-main-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: min(75vh, 780px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(58, 42, 44, 0.12);
}
.product-main-image img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 780px);
  object-fit: contain;
  object-position: center center;
  display: block;
  position: relative;
  z-index: 0;
}
.product-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.product-thumb {
  width: 70px; height: 70px;
  border: 1px solid rgba(58, 42, 44, 0.15);
  padding: 0; cursor: pointer;
  background: var(--paper);
  transition: border-color 0.3s;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.active, .product-thumb:hover { border-color: var(--wine); }

.product-info {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-name {
  font-family: var(--f-display);
  font-size: clamp(max(24px, calc(var(--fs-h2) * 1.2)), 4.5vw, min(56px, calc(var(--fs-h1) * 1.05)));
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
.product-rating-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.product-rating-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(58, 42, 44, 0.5);
}
.product-price-row {
  display: flex; align-items: baseline; gap: 10px 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.product-price-from {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(58, 42, 44, 0.65);
}
.product-price-row[data-has-options="1"] .product-price-from + .product-sale-price {
  /* selected option price updates via JS / Zid scripts */
}
.product-sale-price {
  font-family: var(--f-display);
  font-size: clamp(22px, 3.2vw, calc(var(--fs-h1) * 0.62));
  color: var(--wine);
}
.product-original-price {
  font-family: var(--f-mono);
  font-size: 14px;
  text-decoration: line-through;
  color: rgba(58, 42, 44, 0.5);
}
.product-discount {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: var(--peach);
  color: var(--wine);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.product-availability-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.product-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(58, 42, 44, 0.18);
}
.product-badge--in {
  background: rgba(122, 138, 90, 0.18);
  color: var(--leaf);
  border-color: rgba(122, 138, 90, 0.35);
}
.product-badge--out {
  background: rgba(58, 42, 44, 0.08);
  color: rgba(58, 42, 44, 0.65);
}
.product-badge--muted {
  background: var(--cream-2);
  color: var(--ink);
}
.product-availability-detail {
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(58, 42, 44, 0.65);
}
.product-low-stock {
  font-size: 14px;
  color: var(--wine);
  margin-bottom: 14px;
}
.product-meta-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(58, 42, 44, 0.1);
  border-bottom: 1px solid rgba(58, 42, 44, 0.1);
  font-size: 14px;
}
.product-meta-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: baseline;
}
.product-meta-item dt {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(58, 42, 44, 0.55);
  margin: 0;
}
.product-meta-item dd { margin: 0; color: var(--ink); }
.product-stock-row { margin-bottom: 24px; }
.product-short-desc {
  font-style: italic;
  font-size: var(--fs-body);
  color: rgba(58, 42, 44, 0.78);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.12);
}
.product-short-desc--plain { font-style: normal; }

.product-add-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-top: 8px;
}
.product-form-slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-add-form--sold-out .product-qty-control,
.product-add-form--sold-out .qty-btn {
  opacity: 0.55;
  pointer-events: none;
}
.product-add-form--sold-out .btn-add-to-cart:disabled {
  opacity: 0.5;
}
.product-option-label, .product-qty-label {
  display: block;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 8px;
}
.product-option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.product-option-value { cursor: pointer; }
.product-option-value input { display: none; }
.product-option-value span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: all 0.25s;
}
.product-option-value input:checked + span {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* PDP options — Bloomery visible radios; Zid vitrin hidden off-screen */
.bloomery-pdp-options {
  width: 100%;
  margin-bottom: 8px;
}
.bloomery-pdp-options__vitrin-sync {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
  z-index: -1;
}
.bloomery-pdp-options__vitrin-sync input,
.bloomery-pdp-options__vitrin-sync label,
.bloomery-pdp-options__vitrin-sync li,
.bloomery-pdp-options__vitrin-sync button {
  pointer-events: auto;
}
/* Native Zid fallback (when variants not in template context) */
.product-variants-zid .product-options ul,
.product-variants-zid ul[name] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-variants-zid .product-options__item,
.product-variants-zid label.product-options__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(58, 42, 44, 0.32);
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  text-align: start;
  box-sizing: border-box;
}
.product-variants-zid .product-options__item:hover,
.product-variants-zid .product-options__item.active,
.product-variants-zid ul[name] > li.active .product-options__item {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.bloomery-pdp-options__title {
  margin: 0 0 10px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.bloomery-pdp-options__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
@media (max-width: 520px) {
  .bloomery-pdp-options__buttons {
    grid-template-columns: 1fr;
  }
}
.bloomery-pdp-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(58, 42, 44, 0.32);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
}
.bloomery-pdp-option:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.bloomery-pdp-option.is-selected {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.bloomery-pdp-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.product-form-slot--variants {
  width: 100%;
  margin-bottom: 4px;
}

.product-qty-block {
  align-self: flex-start;
  width: 100%;
  max-width: 280px;
}
.product-qty-control {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  direction: ltr;
  width: fit-content;
  width: -moz-fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  border: 1px solid rgba(58, 42, 44, 0.25);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.qty-btn {
  width: 38px; height: 40px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.2s;
}
.qty-btn:hover { background: rgba(58, 42, 44, 0.05); }
.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.product-add-btn {
  align-self: flex-start;
  min-width: 220px;
  justify-content: center;
}
.product-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-add-btn.is-loading { opacity: 0.65; pointer-events: none; }

.product-form-slot--primary-actions {
  width: 100%;
}
.product-form-slot--primary-actions .product-add-btn {
  max-width: 100%;
}
.product-form-slot--payment {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.product-form-slot--payment > * {
  max-width: 100%;
}
/* Zid payment / buy-now often injects buttons or hosted divs */
.product-form-slot--payment .btn,
.product-form-slot--payment button[type="button"],
.product-form-slot--payment a[role="button"],
.product-form-slot--payment iframe {
  max-width: 100%;
}

.product-long-desc {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(58, 42, 44, 0.12);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(58, 42, 44, 0.85);
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-meta-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================
   CATEGORY / PRODUCTS / SEARCH PAGES
   ============================================ */
.category-page, .cart-page, .cms-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}
.category-hero {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto 28px;
  border-radius: var(--r-soft);
  overflow: hidden;
  border: 1px solid rgba(58, 42, 44, 0.1);
  aspect-ratio: 21 / 9;
  max-height: 320px;
  background: var(--paper);
}
.category-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.category-product-count {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
  margin: 0 0 12px;
}
.category-description {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.category-head {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.12);
}
.categories-list-hero {
  position: relative;
  width: 100%;
  margin-bottom: 48px;
  border-radius: var(--r-soft);
  overflow: hidden;
  background-color: var(--paper);
  box-sizing: border-box;
  border: 1px solid rgba(58, 42, 44, 0.1);
}
.categories-list-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.categories-list-hero--fixed-bg {
  background-color: var(--paper);
}
.categories-list-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1a1214;
  pointer-events: none;
}
.categories-list-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 36px var(--gutter);
}
.categories-list-hero-title {
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  max-width: 20ch;
}
@media (max-width: 640px) {
  .categories-list-hero-inner {
    padding: 28px var(--gutter);
  }
}
.cart-items { margin-bottom: 40px; }
.cart-summary {
  max-width: 480px;
  margin-inline-start: auto;
  border-top: 1px solid rgba(58, 42, 44, 0.12);
  padding-top: 24px;
}
.cart-sidebar-panel .cart-summary {
  max-width: none;
  margin-inline-start: 0;
  border-top: 0;
  padding-top: 0;
}
.cart-sidebar-panel {
  background: var(--paper);
  border: 1px solid rgba(58, 42, 44, 0.12);
  border-radius: var(--r-soft);
  padding: 20px 22px 22px;
}
.cart-summary-heading {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.58);
  margin: 0 0 16px;
}
.cart-line-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(58, 42, 44, 0.52);
}
.cart-payment-widgets-host,
.cart-gift-host {
  margin-top: 20px;
}
.cart-free-ship {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(58, 42, 44, 0.1);
}
.cart-free-ship-msg {
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.45;
}
.cart-free-ship-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(58, 42, 44, 0.1);
  overflow: hidden;
}
.cart-free-ship-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--wine);
  transition: width 0.35s ease;
}
.cart-coupon {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 42, 44, 0.1);
}
.cart-coupon-title {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(58, 42, 44, 0.55);
  margin: 0 0 12px;
}
.cart-coupon-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.cart-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--r-soft);
  border: 1px solid rgba(58, 42, 44, 0.22);
  background: var(--cream);
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.cart-coupon-input:focus {
  border-color: var(--wine);
}
.cart-coupon-input::placeholder {
  color: rgba(58, 42, 44, 0.38);
  font-style: italic;
}
.cart-coupon-submit {
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
}
.cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-soft);
  border: 1px solid rgba(58, 42, 44, 0.15);
  background: var(--cream);
}
.cart-coupon-code {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-coupon-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(176, 56, 56, 0.1);
  color: #9e2a2a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cart-coupon-remove:hover {
  background: #9e2a2a;
  color: #fff;
}
.cart-coupon-remove-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
}
.cart-coupon-spinner {
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.cart-sidebar-actions {
  margin-top: 22px;
  padding-top: 4px;
}
.cart-sidebar-actions > * + * {
  margin-top: 14px;
}
.cart-sidebar-actions .cart-checkout {
  width: 100%;
  justify-content: center;
}
.cart-summary .cart-checkout {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.cart-main > * + .template_for_cart_products_list {
  margin-top: clamp(12px, 2vw, 24px);
}
.cart-main {
  min-width: 0;
  max-width: 680px;
}
.bloomery-cart-lines {
  background: var(--paper);
  border: 1px solid rgba(58, 42, 44, 0.12);
  border-radius: var(--r-soft);
  padding: 12px 18px 4px;
}
.cart-row--total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(58, 42, 44, 0.12);
}
.cart-row--total-line strong {
  font-size: 26px;
  font-weight: 400;
  color: var(--wine);
}
.cart-continue-wrap {
  margin-top: 16px;
  text-align: center;
}

/* Zid vitrin cart line — explicit grid so image + copy + qty + price + delete stay grouped */
.bloomery-cart-lines .cart-product-row,
.cart-page .cart-product-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto auto auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58, 42, 44, 0.12);
}
.bloomery-cart-lines .cart-product-row:last-child,
.cart-page .cart-product-row:last-child {
  border-bottom: 0;
}
/* Column 1 = inline-start (image on the “start” side: right in RTL, left in LTR) */
.bloomery-cart-lines .cart-product-row .cart-product-image,
.cart-page .cart-product-row .cart-product-image,
.bloomery-cart-lines .cart-product-row > a.cart-product-image:first-of-type,
.cart-page .cart-product-row > a.cart-product-image:first-of-type {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
}
.bloomery-cart-lines .cart-product-row > img:first-of-type,
.cart-page .cart-product-row > img:first-of-type {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: start;
}
.bloomery-cart-lines .cart-product-row .cart-product-image img,
.cart-page .cart-product-row .cart-product-image img,
.bloomery-cart-lines .cart-product-row a.cart-product-image img,
.cart-page .cart-product-row a.cart-product-image img,
.bloomery-cart-lines .cart-product-row img:first-of-type,
.cart-page .cart-product-row img:first-of-type {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r-soft);
  border: 1px solid rgba(58, 42, 44, 0.12);
  display: block;
}
.bloomery-cart-lines .cart-product-row .cart-product-name,
.cart-page .cart-product-row .cart-product-name,
.bloomery-cart-lines .cart-product-row .cart-product-title,
.cart-page .cart-product-row .cart-product-title,
.cart-product-name {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
  justify-self: stretch;
  text-align: start;
}
.bloomery-cart-lines .cart-product-row .cart-product-variant,
.cart-page .cart-product-row .cart-product-variant,
.cart-product-variant {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(58, 42, 44, 0.62);
  margin: 0;
  justify-self: stretch;
  text-align: start;
}
.bloomery-cart-lines .cart-product-row .cart-product-price,
.cart-page .cart-product-row .cart-product-price,
.cart-product-price {
  grid-column: 2;
  grid-row: 3;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--wine);
  margin: 0;
  justify-self: stretch;
  text-align: start;
  align-self: start;
}
.bloomery-cart-lines .cart-product-row .cart-product-quantity-dropdown,
.cart-page .cart-product-row .cart-product-quantity-dropdown {
  grid-column: 2;
  grid-row: 4;
  position: relative;
  margin: 4px 0 0;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
/* Screen-reader / Zid hook: real <select> kept for platform scripts */
.cart-product-quantity-dropdown select.bloomery-cart-qty-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.cart-product-quantity-dropdown select:not(.bloomery-cart-qty-native),
.cart-product-row select:not(.bloomery-cart-qty-native) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 76px;
  padding: 10px 38px 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(58, 42, 44, 0.28);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23583538' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}
.cart-product-quantity-dropdown select:not(.bloomery-cart-qty-native):hover,
.cart-product-row select:not(.bloomery-cart-qty-native):hover {
  border-color: var(--wine);
}
html[dir="rtl"] .cart-product-quantity-dropdown select:not(.bloomery-cart-qty-native),
html[dir="rtl"] .cart-product-row select:not(.bloomery-cart-qty-native) {
  background-position: left 12px center;
  padding: 10px 14px 10px 38px;
}
.bloomery-cart-lines .cart-product-row .cart-product-delete,
.cart-page .cart-product-row .cart-product-delete {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  align-self: start;
}
.cart-product-delete a,
.cart-product-delete button,
.cart-product-row .remove-icon,
.cart-product-row button.remove-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(176, 56, 56, 0.4);
  background-color: rgba(176, 56, 56, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239e2a2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  color: #9e2a2a;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, background-image 0.2s;
}
.cart-product-delete a:hover,
.cart-product-delete button:hover,
.cart-product-row .remove-icon:hover,
.cart-product-row button.remove-icon:hover {
  background-color: #9e2a2a;
  border-color: #9e2a2a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m3 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6'/%3E%3C/svg%3E");
  color: #fff;
}
.cart-product-delete a img,
.cart-product-delete a svg,
.cart-product-delete button img,
.cart-product-delete button svg,
.cart-product-row .remove-icon img,
.cart-product-row .remove-icon svg,
.cart-product-row button.remove-icon img,
.cart-product-row button.remove-icon svg {
  display: none !important;
}
@media (max-width: 640px) {
  .category-page,
  .cart-page,
  .product-page {
    padding: 22px var(--gutter) 56px;
  }
  .category-head {
    margin-bottom: 28px;
    padding-bottom: 18px;
  }
  .category-hero {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
  .bloomery-cart-lines {
    padding: 8px 10px 2px;
  }
  .bloomery-cart-lines .cart-product-row,
  .cart-page .cart-product-row {
    grid-template-columns: 72px minmax(0, 1fr) 40px;
    column-gap: 12px;
    row-gap: 4px;
    padding: 14px 0;
  }
  .cart-product-row .cart-product-image img,
  .cart-product-row a.cart-product-image img,
  .cart-product-row img:first-of-type {
    width: 72px;
    height: 72px;
  }
}

.cart-sidebar {
  position: sticky;
  top: 92px;
}
.products-filters-wrap { margin-bottom: 28px; }
.product-metafields-wrap {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(58, 42, 44, 0.12);
}
.product-related { max-width: none; }
.categories-page-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.categories-page-grid .cat-media {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-soft);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(58, 42, 44, 0.12);
  background: var(--paper);
}
.categories-page-grid .cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
}

/* ============================================
   404 PAGE
   ============================================ */
.not-found-page {
  text-align: center;
  padding: 120px var(--gutter);
  max-width: 520px;
  margin: 0 auto;
}
.not-found-page .shop-title em {
  font-size: 1em;
  color: var(--wine);
}
.not-found-page .shop-sub { margin: 18px 0 36px; }
