:root {
  color-scheme: dark;
  --font-main: "Vazirmatn", "Tahoma", sans-serif;
  --container: 1136px;
  --gutter: 28px;

  --bg: #080706;
  --bg-soft: #0e0c09;
  --surface: rgba(22, 18, 14, 0.88);
  --surface-solid: #15110d;
  --surface-raised: #1b1611;
  --surface-muted: #211a13;
  --text: #f8e9e2;
  --text-strong: #fff4ee;
  --muted: #b99b8f;
  --muted-2: #8d756d;
  --line: rgba(219, 122, 78, 0.17);
  --line-strong: rgba(219, 122, 78, 0.30);
  --accent: #db7a4e;
  --accent-strong: #ffb08f;
  --accent-deep: #c15a38;
  --gold: #f09a5f;
  --danger: #d96c4b;
  --glass: rgba(255, 246, 226, 0.045);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 16px 44px rgba(0, 0, 0, 0.32);
  --shadow-glow: 0 0 80px rgba(219, 122, 78, 0.20);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #fff6f2;
  --surface: rgba(255, 247, 243, 0.9);
  --surface-solid: #fff4ee;
  --surface-raised: #fffaf7;
  --surface-muted: #fbe9e1;
  --text: #2b1710;
  --text-strong: #140905;
  --muted: #76564b;
  --muted-2: #9f786a;
  --line: rgba(143, 60, 34, 0.16);
  --line-strong: rgba(143, 60, 34, 0.27);
  --accent: #c15a38;
  --accent-strong: #8f3c22;
  --accent-deep: #db7a4e;
  --gold: #d98745;
  --glass: rgba(143, 60, 34, 0.055);
  --shadow-soft: 0 20px 50px rgba(143, 60, 34, 0.13);
  --shadow-card: 0 16px 34px rgba(143, 60, 34, 0.12);
  --shadow-glow: 0 0 70px rgba(193, 90, 56, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(193, 90, 56, .18), transparent 32%),
    radial-gradient(circle at 92% 10%, rgba(219, 122, 78, .10), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 58%, var(--bg));
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background: #FFFFFF;
}

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }

img { display: block; max-width: 100%; }

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-block: 19px 10px;
}

.header__inner {
  height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  white-space: nowrap;
}

.brand__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 90%, transparent);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 24px rgba(202, 155, 93, .24);
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  transform: rotate(42deg);
}

.brand__mark::after {
  transform: rotate(-42deg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.7vw, 26px);
}

.nav__link {
  position: relative;
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .22s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--text-strong); }

.nav__link.is-active::after,
.nav__link:hover::after { transform: scaleX(1); }

.header__actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
}

.icon-btn,
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.icon-btn svg,
.theme-toggle svg { width: 20px; height: 20px; }

.icon-btn:hover,
.theme-toggle:hover {
  background: var(--glass);
  border-color: var(--line);
  transform: translateY(-1px);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}

html[data-theme="dark"] .theme-toggle__sun { transform: translateY(28px); opacity: 0; }
html[data-theme="dark"] .theme-toggle__moon { transform: translateY(0); opacity: 1; }
html[data-theme="light"] .theme-toggle__sun { transform: translateY(0); opacity: 1; }
html[data-theme="light"] .theme-toggle__moon { transform: translateY(-28px); opacity: 0; }

.auth-btn {
  height: 38px;
  padding-inline: 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, .025);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.auth-btn svg { width: 17px; height: 17px; }
.auth-btn:hover { background: var(--glass); border-color: var(--accent); transform: translateY(-1px); }

.cart-btn { position: relative; }
.cart-btn__dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--bg);
}

.hero {
  position: relative;
  padding-block: 22px 8px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -96px 0 auto 0;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(196, 145, 84, .075), transparent 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, .85fr);
  align-items: center;
  gap: 22px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block-start: 15px;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-inline: 14px 16px;
  color: var(--accent-strong);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow svg { width: 16px; height: 16px; }

.hero h1 {
  margin: 0;
  max-width: 620px;
  color: var(--text-strong);
  font-size: clamp(42px, 6.5vw, 70px);
  font-weight: 900;
  line-height: 1.17;
  letter-spacing: -2.4px;
  text-wrap: balance;
}

.hero__lead {
  margin: 21px 0 0;
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
  font-weight: 400;
}

.hero__media {
  position: relative;
  min-height: 378px;
  align-self: stretch;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero__media > img {
  position: absolute;
  inset: 10px 0 0 auto;
  width: min(500px, 100%);
  height: 382px;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  opacity: .82;
  filter: saturate(.9) contrast(1.05) brightness(.64);
  mask-image: linear-gradient(to left, #000 58%, transparent 100%);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 10%, var(--bg) 96%);
  pointer-events: none;
  z-index: 1;
}

.hero-pack {
  position: relative;
  z-index: 2;
  width: 172px;
  height: 242px;
  margin-inline-start: 54px;
  margin-block-start: -18px;
  border-radius: 12px 12px 18px 18px;
  background:
    radial-gradient(circle at 28% 40%, rgba(208, 162, 102, .16), transparent 31%),
    linear-gradient(138deg, #0b0908, #15100d 50%, #080707);
  border: 1px solid rgba(212, 170, 112, .22);
  box-shadow: 20px 20px 50px rgba(0,0,0,.52), inset 0 0 0 1px rgba(255,255,255,.03);
  transform: rotate(-1.5deg);
}

.hero-pack::before {
  content: "";
  position: absolute;
  inset: 54px 29px 46px;
  border-radius: 50%;
  border: 1px solid rgba(214, 174, 121, .24);
  background:
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(214, 174, 121, .22) 31%, transparent 33%),
    conic-gradient(from 40deg, transparent, rgba(214,174,121,.18), transparent 34%);
  opacity: .9;
}

.hero-pack::after {
  content: "";
  position: absolute;
  right: 18px;
  left: 18px;
  bottom: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,174,121,.38), transparent);
}

.hero-pack span {
  position: absolute;
  top: 49px;
  right: 48px;
  color: var(--accent-strong);
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  font-size: 22px;
  text-align: left;
}

.hero__glow {
  position: absolute;
  z-index: 0;
  width: 330px;
  height: 330px;
  right: 0;
  bottom: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 132, 76, .20), transparent 70%);
  filter: blur(18px);
}

.coffee-match {
  width: min(760px, calc(100vw - var(--gutter) * 2));
  margin-top: 28px;
  margin-inline-start: clamp(-210px, -14vw, -92px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    var(--surface);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
  padding: 19px 22px 18px;
}

.coffee-match__header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  color: var(--accent-strong);
  margin-bottom: 13px;
  text-align: right;
}

.coffee-match__header > svg { width: 20px; height: 20px; margin-top: 2px; }

.coffee-match__header strong {
  display: block;
  direction: ltr;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2px;
}

.coffee-match__header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.match-steps {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.match-step {
  min-width: 94px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 7px 8px 8px;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 3px;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.match-step svg { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.45; }
.match-step b { color: var(--text); font-size: 15px; font-weight: 800; line-height: 1.2; }
.match-step small { font-size: 10px; color: var(--muted-2); white-space: nowrap; }

.match-step:hover,
.match-step.is-active {
  background: rgba(255, 255, 255, .042);
  transform: translateY(-1px);
}

.match-step.is-active { outline: 1px solid rgba(218,178,128,.15); }

.match-divider {
  color: var(--muted-2);
  display: grid;
  place-items: center;
  opacity: .7;
}

.match-divider svg { width: 16px; height: 16px; }

.match-start {
  justify-self: end;
  min-width: 116px;
  height: 39px;
  border-radius: var(--radius-pill);
  color: #25180f;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 18px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(197, 146, 86, .22);
  position: relative;
  z-index: 0;
}

/* بردر گرادینتیِ چرخان (الگوی دکمهٔ اشتراک تنورا) */
@property --bz-spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.match-start::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;
  padding: 3px;
  background: conic-gradient(from var(--bz-spin),
    color-mix(in srgb, var(--accent) 34%, transparent) 0deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 205deg,
    var(--gold) 275deg,
    #ffedc9 312deg,
    var(--accent-deep) 344deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bzBorderSpin 2.6s linear infinite;
}
.match-start::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -2;
  background: conic-gradient(from var(--bz-spin), transparent 0deg, transparent 290deg, color-mix(in srgb, var(--gold) 60%, transparent) 320deg, transparent 350deg);
  filter: blur(6px);
  opacity: .85;
  animation: bzBorderSpin 2.6s linear infinite;
}
@keyframes bzBorderSpin { to { --bz-spin: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .match-start::before,
  .match-start::after { animation: none; }
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 7px;
}

.category-tile {
  height: 66px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(219, 122, 78, 0.09);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.016));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}

.category-tile:hover {
  transform: translateY(-2px);
  background: var(--glass);
  border-color: var(--line-strong);
}

.category-tile svg { width: 33px; height: 33px; color: var(--accent); stroke-width: 1.35; }
.category-tile span { display: block; color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.25; }
.category-tile small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; white-space: nowrap; }

.section-panel {
  position: relative;
  border: 1px solid rgba(219, 122, 78, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)),
    rgba(16, 13, 10, .70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  overflow: hidden;
}

html[data-theme="light"] .section-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.48));
}

.section-panel--wide { margin-top: 22px; padding: 18px 18px 17px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading--compact { margin-bottom: 12px; }

.section-heading h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.45px;
}

.section-heading h2 svg { width: 18px; height: 18px; color: var(--accent); }

.text-link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.text-link:hover { color: var(--accent-strong); }

.slider-shell { position: relative; }

.roaster-slider,
.nearby-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding-bottom: 1px;
}

.roaster-slider::-webkit-scrollbar,
.nearby-slider::-webkit-scrollbar { display: none; }

.slider-btn {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 29px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  display: grid;
  place-items: center;
  opacity: .92;
  transition: opacity .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.slider-btn:hover { opacity: 1; border-color: var(--accent); transform: translateY(-50%) scale(1.03); }
.slider-btn svg { width: 17px; height: 17px; }
.slider-btn--right { right: -8px; }
.slider-btn--left { left: -8px; }

.roaster-card {
  scroll-snap-align: start;
  min-height: 104px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(219, 122, 78, 0.12);
  background: var(--surface-raised);
}

.roaster-card--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(.58);
  transform: scale(1.02);
}

.roaster-card--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,7,6,.88), rgba(9,7,6,.44) 58%, rgba(9,7,6,.78));
}

.roaster-card__logo {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85);
  color: #fff;
  background: rgba(0,0,0,.32);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.roaster-card--image .roaster-card__logo img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  transform: none;
}

.roaster-card__body {
  position: relative;
  z-index: 2;
  min-height: 104px;
  padding: 15px 70px 44px 14px;
}

.roaster-card__body h3,
.popular-item h3,
.nearby-card h3,
.product-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -.25px;
}

.roaster-card__body h3 { font-size: 14px; color: #fff4ee; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.roaster-card__body p { margin: 4px 0 0; color: #e6ddd0; font-size: 10px; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.roaster-card__body span { margin-top: 3px; display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: 10px; }
.roaster-card__body span svg { width: 11px; height: 11px; fill: currentColor; stroke-width: 0; }

.mini-btn {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 13px;
  height: 18px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  border: 0;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #25180f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.homepage-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(270px, .78fr);
  gap: 15px;
}

.fresh-panel,
.popular-panel { padding: 17px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  min-height: 196px;
  padding: 12px 12px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(218,178,128,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014)),
    var(--surface-solid);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.product-card__fav {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 80%, transparent);
  display: grid;
  place-items: center;
}
.product-card__fav svg { width: 15px; height: 15px; }

.product-card img {
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 10px;
  filter: saturate(.9) contrast(1.02) brightness(.82);
}

.product-card h3 { font-size: 12.5px; line-height: 1.35; }
.product-card p { margin: 4px 0 6px; color: var(--muted); font-size: 10px; }
.product-card strong { color: var(--accent-strong); font-size: 12px; font-weight: 900; white-space: nowrap; }

.popular-list {
  display: grid;
  gap: 9px;
}

.popular-item {
  min-height: 71px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(218,178,128,.13);
  background: rgba(255,255,255,.022);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 11px 12px;
}

.popular-item__rank {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.70);
  background: rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.popular-item h3 { font-size: 13px; }
.popular-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.popular-item p span { color: var(--accent-strong); }
.popular-item small { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; color: var(--gold); font-size: 10px; }
.popular-item small svg { width: 11px; height: 11px; fill: currentColor; stroke-width: 0; }

.outline-btn {
  min-width: 80px;
  height: 31px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.outline-btn:hover,.outline-btn.is-on { background: var(--accent); color: #24170f; border-color: var(--accent); }

.nearby-panel {
  margin-block: 15px 38px;
  padding: 14px 17px 17px;
}

.nearby-slider {
  grid-auto-columns: calc((100% - 48px) / 5);
}

.nearby-card {
  scroll-snap-align: start;
  min-height: 74px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(218,178,128,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.nearby-card img {
  width: 47px;
  height: 47px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.54);
  filter: saturate(.85) brightness(.78);
}

.nearby-card h3 { font-size: 13px; }
.nearby-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; white-space: nowrap; }

@media (max-width: 1080px) {
  :root { --gutter: 22px; }
  .header__inner { gap: 14px; }
  .nav { gap: 18px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero__media {
    position: absolute;
    inset: 0 auto auto 0;
    width: 48%;
    min-height: 310px;
    opacity: .55;
    pointer-events: none;
  }
  .hero__media > img { height: 310px; }
  .hero-pack { display: none; }
  .coffee-match { margin-inline-start: 0; }
  .roaster-slider { grid-auto-columns: calc((100% - 24px) / 3); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby-slider { grid-auto-columns: calc((100% - 24px) / 3); }
}

@media (max-width: 840px) {
  .site-header { padding-block-start: 12px; }
  .header__inner {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    row-gap: 8px;
  }
  .brand { grid-area: brand; }
  .header__actions { grid-area: actions; }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { white-space: nowrap; }
  .auth-btn { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .auth-btn svg { width: 19px; height: 19px; }
  .hero { padding-block-start: 10px; }
  .hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero__lead { font-size: 14px; line-height: 1.9; }
  .coffee-match { padding: 16px; }
  .match-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .match-divider { display: none; }
  .match-step { background: rgba(255,255,255,.025); min-width: 0; }
  .match-start { grid-column: 1 / -1; justify-self: stretch; }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .roaster-slider { grid-auto-columns: minmax(230px, 78%); }
  .homepage-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby-slider { grid-auto-columns: minmax(190px, 66%); }
}

@media (max-width: 560px) {
  :root { --gutter: 14px; }
  .brand__text { font-size: 24px; }
  .icon-btn,
  .theme-toggle,
  .auth-btn { width: 36px; height: 36px; }
  .header__actions { gap: 4px; }
  .hero__media { display: none; }
  .eyebrow { font-size: 11px; height: auto; min-height: 32px; }
  .hero h1 { letter-spacing: -1.4px; }
  .coffee-match__header { align-items: center; }
  .category-tile { height: 62px; padding-inline: 12px; justify-content: flex-start; }
  .category-tile svg { width: 27px; height: 27px; }
  .section-panel--wide,
  .fresh-panel,
  .popular-panel,
  .nearby-panel { padding: 13px; border-radius: 19px; }
  .section-heading h2 { font-size: 15px; }
  .slider-btn { display: none; }
  .product-grid { gap: 9px; }
  .product-card { min-height: 176px; padding: 9px; }
  .product-card img { height: 90px; }
  .product-card strong { font-size: 10.5px; }
  .popular-item { grid-template-columns: 42px 1fr; }
  .popular-item .outline-btn { grid-column: 1 / -1; width: 100%; }
}

/* === Homepage refinement based on client reference / Screenshot 52 === */
.brand {
  gap: 9px;
}

.brand__text {
  direction: ltr;
}

.brand__mark {
  order: -1;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-color: rgba(255, 176, 143, .76);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 238, 203, .45), transparent 28%),
    linear-gradient(145deg, #ffb08f 0%, #8f3c22 100%);
}

.brand__mark::before {
  inset: 4px 7px;
  border-radius: 52% 48% 50% 50% / 62% 40% 60% 38%;
  background: rgba(17, 12, 8, .74);
  transform: rotate(35deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

.brand__mark::after {
  inset: 5px 11px 5px auto;
  width: 1.5px;
  border-radius: 999px;
  background: rgba(255, 176, 143, .62);
  transform: rotate(35deg);
}

.hero {
  padding-block: 16px 4px;
}

.hero__grid {
  min-height: 440px;
  grid-template-columns: minmax(460px, 1.06fr) minmax(380px, .94fr);
  gap: 6px;
}

.hero__content {
  padding-block-start: 22px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(45px, 6.75vw, 75px);
  line-height: 1.13;
  letter-spacing: -2.75px;
}

.hero__accent {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(219,122,78,.16);
}

.hero__lead {
  margin-top: 18px;
  max-width: 620px;
}

.hero__media {
  min-height: 416px;
  align-self: stretch;
  pointer-events: none;
}

.hero__media > img {
  inset: -6px auto auto -74px;
  width: min(610px, 118%);
  height: 435px;
  border-radius: 0;
  opacity: .94;
  object-position: 42% 54%;
  filter: saturate(.9) contrast(1.08) brightness(.57);
  -webkit-mask-image: linear-gradient(112deg, transparent 0%, #000 16%, #000 61%, transparent 93%), linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(112deg, transparent 0%, #000 16%, #000 61%, transparent 93%), linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__media::after {
  inset: -10px -46px -15px -110px;
  background:
    linear-gradient(104deg, rgba(8,7,6,0) 0%, rgba(8,7,6,0) 42%, var(--bg) 91%),
    radial-gradient(ellipse at 35% 62%, rgba(219,122,78,.12), transparent 48%);
  z-index: 1;
}

.hero__glow {
  width: 410px;
  height: 410px;
  right: auto;
  left: 28px;
  bottom: -48px;
  opacity: .82;
}

.coffee-match {
  width: min(842px, calc(100vw - var(--gutter) * 2));
  margin-top: 30px;
  margin-inline-start: 0;
  padding: 18px 22px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(232,205,165,.08), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.052), rgba(255,255,255,.017)),
    rgba(19, 16, 12, .88);
  box-shadow: 0 22px 70px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(20px);
}

.coffee-match__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.coffee-match__title {
  text-align: right;
}

.coffee-match__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
}

.coffee-match__name strong {
  direction: ltr;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .15px;
}

.coffee-match__name svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.coffee-match__title > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.match-steps {
  min-height: 96px;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr) auto minmax(112px, 1fr);
  gap: 10px;
}

.match-step {
  min-width: 0;
  min-height: 92px;
  padding: 9px 9px 10px;
  border-radius: 16px;
}

.match-step svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.36;
}

.match-step b {
  font-size: 16px;
}

.match-step small {
  margin-top: 1px;
  font-size: 10.5px;
}

.match-divider svg {
  width: 18px;
  height: 18px;
}

.match-start {
  align-self: flex-start;
  justify-self: auto;
  min-width: 116px;
  height: 37px;
  padding-inline: 18px 15px;
  gap: 7px;
  font-size: 12px;
}

.match-start::before { content: none; }
.match-start svg { width: 16px; height: 16px; stroke-width: 2.2; }

.category-strip {
  margin-top: 9px;
  gap: 5px;
}

.category-tile {
  height: 69px;
  padding: 12px 20px;
  border-radius: 13px;
  gap: 15px;
  justify-content: center;
}

.category-tile svg {
  width: 35px;
  height: 35px;
}

.category-tile span {
  font-size: 14.5px;
}

.category-tile small {
  font-size: 10.2px;
}

.product-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 1px 1px 2px;
}

.product-slider::-webkit-scrollbar { display: none; }

.product-slider-shell .slider-btn--right { right: -12px; }
.product-slider-shell .slider-btn--left { left: -12px; }

.product-card {
  scroll-snap-align: start;
  min-height: 214px;
  padding: 10px 10px 12px;
}

.product-card__media {
  height: 129px;
  margin-bottom: 10px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 46% 24%, rgba(219,122,78,.22), transparent 36%),
    linear-gradient(180deg, rgba(93,55,30,.52), rgba(26,18,13,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.product-card__media img,.product-card__media a img,
.product-card img {
  width: 76px;
  height: 116px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px 8px 11px 11px;
  margin: 0;
  filter: saturate(.88) contrast(1.08) brightness(.82) sepia(.11);
  box-shadow: 0 13px 26px rgba(0,0,0,.46), 0 0 0 1px rgba(232,205,165,.10);
}

.product-card__media::after {
  content: "";
  position: absolute;
}

html[data-theme="light"] .product-card__media {
  background:
    radial-gradient(circle at 46% 24%, rgba(193,90,56,.18), transparent 38%),
    linear-gradient(180deg, #fbe9e1, #e8b49f);
}

.roaster-slider {
  grid-auto-columns: calc((100% - 36px) / 4);
}

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    position: absolute;
    inset: 0 auto auto 0;
    width: min(520px, 58vw);
    opacity: .72;
  }

  .hero__media > img {
    left: -70px;
    width: 580px;
  }

  .coffee-match {
    width: min(842px, 100%);
  }

  .product-slider {
    grid-auto-columns: calc((100% - 24px) / 3);
  }
}

@media (max-width: 760px) {
  .coffee-match__top {
    align-items: center;
  }

  .match-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .match-divider {
    display: none;
  }

  .product-slider,
  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(190px, 72%);
  }
}

@media (max-width: 580px) {
  .brand__mark {
    width: 22px;
    height: 22px;
  }

  .coffee-match {
    padding: 15px;
  }

  .coffee-match__top {
    gap: 12px;
  }

  .match-start {
    min-width: 96px;
    height: 34px;
    padding-inline: 14px 12px;
  }

  .category-tile {
    height: 66px;
  }

  .product-slider {
    grid-auto-columns: minmax(142px, 49%);
  }

  .product-card {
    min-height: 204px;
  }

  .product-card__media {
    height: 116px;
  }
}

/* Homepage review corrections */
.hero__media {
  overflow: visible;
}

.hero__media > img {
  left: -92px;
  width: min(650px, 124%);
  height: 438px;
  object-position: 42% 54%;
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 43% 56%, #000 0%, #000 58%, rgba(0,0,0,.74) 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 82% at 43% 56%, #000 0%, #000 58%, rgba(0,0,0,.74) 72%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.hero__media::after {
  inset: -18px -70px -30px -138px;
  background:
    linear-gradient(102deg, rgba(8,7,6,0) 0%, rgba(8,7,6,0) 42%, color-mix(in srgb, var(--bg) 72%, transparent) 74%, var(--bg) 97%),
    radial-gradient(ellipse at 34% 62%, rgba(219,122,78,.13), transparent 52%);
}

/* In light mode these two requested areas should read as clean white cards. Dark mode remains unchanged. */
html[data-theme="light"] .coffee-match {
  background:
    radial-gradient(circle at 12% 0%, rgba(174, 110, 56, .055), transparent 34%),
    #fff;
  border-color: rgba(143, 60, 34, .13);
  box-shadow: 0 22px 55px rgba(120,75,35,.11), inset 0 1px 0 rgba(255,255,255,.85);
}

html[data-theme="light"] .match-step:hover,
html[data-theme="light"] .match-step.is-active {
  background: rgba(193, 90, 56, .055);
}

html[data-theme="light"] .category-tile {
  background: #fff;
  border-color: rgba(143, 60, 34, .12);
  box-shadow: 0 10px 28px rgba(120,75,35,.075), inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] .category-tile:hover {
  background: #fff;
  border-color: rgba(143, 60, 34, .22);
}

/* Category card height adjusted to the reference screenshot proportions. */
.category-strip {
  margin-top: 10px;
  gap: 5px;
}

.category-tile {
  height: 62px;
  min-height: 62px;
  padding: 10px 19px;
  gap: 14px;
}

.category-tile svg {
  width: 32px;
  height: 32px;
}

.category-tile span {
  font-size: 14px;
  line-height: 1.22;
}

.category-tile small {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.25;
}

.product-card {
  min-height: 228px;
}

.product-card__media {
  position: relative;
  height: 132px;
  background:
    radial-gradient(circle at 45% 26%, rgba(238, 192, 128, .30), transparent 38%),
    linear-gradient(180deg, rgba(111,64,32,.64), rgba(28,18,12,.96));
}

.product-card__media::after {
  inset: auto 18% 8px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  filter: blur(7px);
}

.product-card p {
  min-height: 31px;
  margin: 5px 0 7px;
  line-height: 1.5;
}

.product-card p span {
  display: block;
}

.product-card__weight {
  color: var(--accent-strong);
  font-weight: 800;
}

.popular-item {
  min-height: 66px;
  padding-block: 10px;
}

.popular-item h3 {
  margin-bottom: 5px;
}

.popular-item__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.popular-item__meta > span:first-child {
  color: var(--muted);
}

.popular-item__meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
}

.popular-item__meta svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke-width: 0;
}

@media (max-width: 1080px) {
  .hero__media > img {
    left: -88px;
    width: 600px;
    height: 424px;
  }
}

@media (max-width: 580px) {
  .category-tile {
    height: 60px;
    min-height: 60px;
  }

  .product-card {
    min-height: 218px;
  }

  .product-card__media {
    height: 118px;
  }

  .popular-item__meta {
    flex-wrap: wrap;
    row-gap: 3px;
  }
}

/* Final requested homepage-only fixes: normal hero image, Coffee Match restored, product hover clipping, sticky footer. */
body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.hero__media {
  overflow: visible;
}

.hero__media > img {
  inset: 10px 0 0 auto;
  width: min(500px, 100%);
  height: 645px;
  border-radius: 30px;
  opacity: .86;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.05) brightness(.64);
  -webkit-mask-image: none;
  mask-image: none;
}

.hero__media::after {
  inset: 0;
  background: linear-gradient(90deg, transparent 8%, color-mix(in srgb, #f6efe600 82%, transparent) 100%);
}

.coffee-match {
  min-height: 0;
  padding: 18px 22px 20px;
}

.coffee-match__top {
  margin-bottom: 16px;
}

.coffee-match__name {
  direction: ltr;
}

.coffee-match__name strong {
  direction: ltr;
  font-size: 16px;
  letter-spacing: .15px;
}

.coffee-match__name svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.match-steps {
  min-height: 96px;
}

.match-step {
  min-height: 92px;
  padding: 9px 9px 10px;
}

.fresh-panel {
  overflow: visible;
}

.fresh-panel .product-slider-shell {
  overflow: visible;
}

.fresh-panel .product-slider {
  overflow-x: auto;
  overflow-y: visible;
  padding: 7px 7px 18px;
  margin: -7px -7px -12px;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 24px;
  padding-block: 18px 0;
}

.site-footer__inner {
  min-height: 54px;
  border: 1px solid rgba(219, 122, 78, 0.12);
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)),
    rgba(16, 13, 10, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.site-footer__inner p {
  margin: 0;
}

html[data-theme="light"] .site-footer__inner {
  background: #fff;
  border-color: rgba(143, 60, 34, .12);
  box-shadow: 0 10px 28px rgba(120,75,35,.075), inset 0 1px 0 rgba(255,255,255,.9);
}

@media (max-width: 1080px) {
  .hero__media > img {
    left: 0;
    width: min(500px, 100%);
    height: 382px;
  }

  .coffee-match {
    min-height: 0;
  }
}

@media (max-width: 580px) {
  .coffee-match {
    min-height: 0;
    padding: 18px 16px 20px;
  }

  .match-steps {
    min-height: 0;
  }

  .match-step {
    min-height: 98px;
  }

  .category-tile {
    height: 72px;
    min-height: 72px;
  }
}

/* Client pass: Persian Coffee Match title, taller category cards, premium cart/search, and mobile repair. */
.coffee-match__name {
  direction: rtl !important;
  flex-direction: row !important;
  justify-content: flex-start;
}

.coffee-match__name strong {
  direction: rtl !important;
  font-family: var(--font-main);
  letter-spacing: 0 !important;
}

.coffee-match__name svg {
  flex: 0 0 auto;
}

.category-strip {
  align-items: stretch;
}

.category-tile {
  height: 78px !important;
  min-height: 78px !important;
  padding: 15px 22px !important;
  gap: 16px !important;
}

.category-tile svg {
  width: 36px !important;
  height: 36px !important;
}

.category-tile span {
  font-size: 14.5px !important;
}

.category-tile small {
  margin-top: 3px !important;
  font-size: 10.2px !important;
}

.cart-btn {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--accent-strong) 20%, transparent), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.012));
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.18);
}

.cart-btn svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.65;
}

.cart-btn:hover {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--accent-strong) 28%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.025));
}

.cart-btn__dot {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--bg), 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent);
}

.search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  background: rgba(5, 4, 3, .56);
  backdrop-filter: blur(6px);
}

.search-backdrop[hidden],
.site-search[hidden] {
  display: none !important;
}

.site-search {
  position: fixed;
  inset: 78px 0 auto 0;
  z-index: 35;
  pointer-events: none;
}

.site-search__inner {
  pointer-events: auto;
}

.site-search__box {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(232,205,165,.08), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
    color-mix(in srgb, var(--surface-solid) 92%, transparent);
  box-shadow: 0 26px 80px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}

.site-search__box > svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: 0 0 auto;
}

.site-search__box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-strong);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}

.site-search__box input::placeholder {
  color: var(--muted-2);
}

.site-search__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.site-search__results {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
  overflow: hidden;
  max-height: min(420px, calc(100vh - 180px));
  overflow-y: auto;
}

.search-result,
.search-empty {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  text-align: right;
}

.search-result:last-child,
.search-empty:last-child {
  border-bottom: 0;
}

.search-result:hover {
  background: var(--glass);
}

.search-result b {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
}

.search-result span,
.search-empty {
  color: var(--muted);
  font-size: 11px;
}

.search-result svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: 0 0 auto;
}

html[data-theme="light"] .search-backdrop {
  background: rgba(68, 44, 25, .22);
}

html[data-theme="light"] .site-search__box,
html[data-theme="light"] .site-search__results {
  background: #fff;
  box-shadow: 0 24px 58px rgba(120,75,35,.16);
}

@media (max-width: 840px) {
  .site-search { inset-block-start: 74px; }

  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .header__actions {
    gap: 5px;
  }

  .nav {
    gap: 20px;
    mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }

  .hero {
    padding-block-start: 12px;
  }

  .hero__content {
    padding-block-start: 10px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.2vw, 54px);
    line-height: 1.22;
    letter-spacing: -1.45px;
  }

  .hero__lead {
    max-width: 100%;
  }

  .coffee-match {
    width: 100% !important;
    margin-top: 20px;
    margin-inline-start: 0 !important;
    padding: 16px 15px 17px;
  }

  .coffee-match__top {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .coffee-match__title {
    flex: 1 1 220px;
  }

  .match-start {
    flex: 0 0 auto;
  }

  .match-steps {
    min-height: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .match-divider {
    display: none !important;
  }

  .match-step {
    min-height: 86px !important;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .category-tile {
    height: 78px !important;
    min-height: 78px !important;
    justify-content: center !important;
  }

  .section-panel--wide,
  .fresh-panel,
  .popular-panel,
  .nearby-panel {
    overflow: visible;
  }
}

@media (max-width: 580px) {
  :root { --gutter: 14px; }

  .site-header {
    padding-block: 12px 8px;
  }

  .brand__text {
    font-size: 22px;
  }

  .brand__mark {
    width: 21px;
    height: 21px;
  }

  .icon-btn,
  .theme-toggle,
  .auth-btn {
    width: 34px;
    height: 34px;
  }

  .header__actions {
    gap: 3px;
  }

  .nav {
    justify-content: flex-start;
    gap: 18px;
    padding: 4px 2px 6px;
  }

  .nav__link {
    font-size: 12px;
  }

  .site-search {
    inset-block-start: 68px;
  }

  .site-search__box {
    min-height: 56px;
    border-radius: 18px;
    padding-inline: 12px;
  }

  .site-search__box input {
    font-size: 13px;
  }

  .hero {
    padding-block: 8px 0;
  }

  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(31px, 12vw, 43px);
    line-height: 1.26;
  }

  .hero__lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.85;
  }

  .coffee-match {
    padding: 15px 13px 16px !important;
    border-radius: 18px;
  }

  .coffee-match__top {
    align-items: stretch;
  }

  .match-start {
    width: 100%;
    min-width: 0;
  }

  .match-step {
    min-height: 82px !important;
    padding: 8px 7px !important;
  }

  .match-step svg {
    width: 29px !important;
    height: 29px !important;
  }

  .match-step b {
    font-size: 14px !important;
  }

  .match-step small {
    max-width: 100%;
    white-space: normal;
    font-size: 9.8px !important;
  }

  .category-tile {
    height: 76px !important;
    min-height: 76px !important;
    padding: 12px 10px !important;
    gap: 10px !important;
  }

  .category-tile svg {
    width: 30px !important;
    height: 30px !important;
  }

  .category-tile span {
    font-size: 13.5px !important;
  }

  .category-tile small {
    font-size: 9.5px !important;
  }

  .section-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .product-slider,
  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(158px, 74%) !important;
  }

  .product-slider {
    padding-inline: 4px;
  }

  .popular-item {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
}

@media (max-width: 400px) {
  .brand__text { font-size: 20px; }
  .header__actions { transform: scale(.94); transform-origin: left center; }
  .category-strip { grid-template-columns: 1fr !important; }
  .category-tile { justify-content: flex-start !important; }
  .product-slider,
  .roaster-slider,
  .nearby-slider { grid-auto-columns: minmax(150px, 86%) !important; }
}

/* Client correction: keep premium cart icon, remove the added round frame/border around it. */
.cart-btn,
.cart-btn:hover {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Responsive-only repair: keep desktop/homepage visuals intact, fix tablet and mobile layout flow. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1080px) {
  .header__inner {
    height: auto;
    min-height: 48px;
  }

  .nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto !important;
    gap: 0 !important;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    max-width: 100%;
  }

  .hero__media {
    position: absolute !important;
    inset: 10px 0 auto auto !important;
    width: min(430px, 45vw) !important;
    min-height: 330px !important;
    opacity: .28 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  .hero__media > img {
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    height: 330px !important;
    object-fit: cover !important;
  }

  .coffee-match {
    width: 100% !important;
    max-width: 842px;
    margin-inline-start: 0 !important;
  }

  .homepage-grid {
    grid-template-columns: 1fr !important;
  }

  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(220px, calc((100% - 24px) / 3)) !important;
  }

  .product-slider {
    grid-auto-columns: minmax(168px, calc((100% - 24px) / 3)) !important;
  }
}

@media (max-width: 840px) {
  .site-header {
    padding-block: 12px 8px;
  }

  .header__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 9px !important;
  }

  .brand {
    grid-area: brand !important;
    justify-self: start;
    min-width: 0;
  }

  .header__actions {
    grid-area: actions !important;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .nav {
    grid-area: nav !important;
    width: 100%;
    justify-content: flex-start !important;
    gap: 22px;
    padding: 3px 2px 8px;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .auth-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    padding: 0 !important;
    justify-content: center;
    gap: 0;
    font-size: 0 !important;
  }

  .auth-btn svg {
    width: 19px;
    height: 19px;
    margin: 0;
  }

  .hero {
    padding-block-start: 12px !important;
  }

  .hero__media {
    display: none !important;
  }

  .hero__content {
    text-align: center;
    margin-inline: auto;
  }

  .eyebrow {
    margin-inline: auto;
    justify-content: center;
  }

  .hero h1 {
    margin-inline: auto;
    max-width: 720px;
    font-size: clamp(36px, 8vw, 56px) !important;
    line-height: 1.22 !important;
    letter-spacing: -1.4px !important;
  }

  .hero__lead {
    margin-inline: auto;
    max-width: 620px;
  }

  .coffee-match {
    text-align: right;
    margin-top: 22px !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  .coffee-match__top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .coffee-match__title {
    flex: 1 1 220px;
    min-width: 0;
  }

  .match-start {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .match-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  .match-divider {
    display: none !important;
  }

  .match-step {
    min-width: 0 !important;
    min-height: 84px !important;
    padding: 9px !important;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .category-tile {
    height: 78px !important;
    min-height: 78px !important;
  }

  .section-panel--wide,
  .fresh-panel,
  .popular-panel,
  .nearby-panel {
    overflow: visible;
  }

  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(210px, 70%) !important;
  }

  .product-slider {
    grid-auto-columns: minmax(164px, 48%) !important;
  }
}

@media (max-width: 580px) {
  :root {
    --gutter: 14px;
  }

  .site-header {
    padding-block: 10px 6px;
  }

  .header__inner {
    column-gap: 8px !important;
    row-gap: 7px !important;
  }

  .brand__text {
    font-size: 21px !important;
  }

  .brand__mark {
    width: 20px !important;
    height: 20px !important;
  }

  .header__actions {
    gap: 2px !important;
  }

  .icon-btn,
  .theme-toggle,
  .auth-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .icon-btn svg,
  .theme-toggle svg,
  .auth-btn svg {
    width: 18px;
    height: 18px;
  }

  .cart-btn svg {
    width: 20px !important;
    height: 20px !important;
  }

  .cart-btn__dot {
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
  }

  .nav {
    gap: 16px !important;
    padding-bottom: 5px;
  }

  .nav__link {
    font-size: 11.5px !important;
  }

  .site-search {
    inset-block-start: 66px;
  }

  .site-search__box {
    min-height: 54px;
    border-radius: 18px;
    padding-inline: 12px;
  }

  .site-search__box input {
    font-size: 13px;
  }

  .hero {
    padding-block: 8px 0 !important;
  }

  .eyebrow {
    width: inherit;
    min-height: 32px;
    height: auto;
    font-size: 10.5px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(30px, 10.5vw, 42px) !important;
    line-height: 1.26 !important;
    letter-spacing: -1.1px !important;
  }

  .hero__lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.85;
  }

  .coffee-match {
    padding: 14px 12px 15px !important;
    border-radius: 18px !important;
  }

  .coffee-match__top {
    align-items: stretch !important;
  }

  .coffee-match__name strong {
    font-size: 15px !important;
  }

  .coffee-match__title > span {
    font-size: 10px;
    line-height: 1.7;
  }

  .match-start {
    width: 100% !important;
    height: 36px !important;
    min-width: 0 !important;
  }

  .match-steps {
    gap: 8px !important;
  }

  .match-step {
    min-height: 78px !important;
    gap: 2px;
  }

  .match-step svg {
    width: 28px !important;
    height: 28px !important;
  }

  .match-step b {
    font-size: 14px !important;
  }

  .match-step small {
    max-width: 100%;
    white-space: normal !important;
    font-size: 9.2px !important;
    line-height: 1.5;
  }

  .category-strip {
    gap: 8px !important;
  }

  .category-tile {
    height: 74px !important;
    min-height: 74px !important;
    padding: 11px 10px !important;
    gap: 10px !important;
    justify-content: center !important;
  }

  .category-tile svg {
    width: 29px !important;
    height: 29px !important;
  }

  .category-tile span {
    font-size: 13px !important;
  }

  .category-tile small {
    font-size: 9px !important;
  }

  .section-panel--wide,
  .fresh-panel,
  .popular-panel,
  .nearby-panel {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .section-heading {
    align-items: flex-start;
    gap: 8px;
  }

  .section-heading h2 {
    font-size: 15px !important;
  }

  .text-link {
    font-size: 10px;
  }

  .slider-btn {
    display: none !important;
  }

  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(210px, 84%) !important;
    gap: 10px;
  }

  .product-slider {
    grid-auto-columns: minmax(150px, 68%) !important;
    gap: 10px;
    padding: 5px 4px 16px;
  }

  .product-card {
    min-height: 212px !important;
  }

  .product-card__media {
    height: 120px !important;
  }

  .popular-item {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .popular-item .outline-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .nearby-card {
    min-height: 70px;
  }

  .site-footer__inner {
    border-radius: 18px 18px 0 0;
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .header__actions {
    gap: 1px !important;
  }

  .brand__text {
    font-size: 20px !important;
  }

  .category-strip {
    grid-template-columns: 1fr !important;
  }

  .product-slider,
  .roaster-slider,
  .nearby-slider {
    grid-auto-columns: minmax(148px, 86%) !important;
  }
}

/* Seller page / screenshot 53 implementation + requested cart frame restore */
.cart-btn,
.cart-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent) !important;
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--accent-strong) 20%, transparent), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.012)) !important;
  color: var(--accent-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.18) !important;
}

.cart-btn:hover {
  border-color: var(--accent) !important;
  background:
    radial-gradient(circle at 35% 20%, color-mix(in srgb, var(--accent-strong) 28%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.025)) !important;
}

.seller-page {
  background:
    radial-gradient(circle at 10% 4%, rgba(181, 120, 66, .12), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(214, 176, 120, .07), transparent 30%),
    linear-gradient(180deg, #080706 0%, var(--bg) 42%, #0e0c09 100%);
}

html[data-theme="light"] .seller-page {
  background:
    radial-gradient(circle at 10% 4%, rgba(181, 120, 66, .10), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(214, 176, 120, .10), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 52%, var(--bg-soft) 100%);
}

.site-header--seller {
  padding-block: 12px 8px;
}

.seller-header__inner {
  height: 46px;
  gap: 20px;
}

.brand--stacked {
  align-items: flex-start;
  gap: 8px;
}

.brand__copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand__copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.seller-nav {
  gap: clamp(18px, 2.2vw, 34px);
}

.seller-header__actions {
  gap: 8px;
}

.header-search-pill {
  width: min(285px, 28vw);
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding-inline: 12px 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.header-search-pill:hover {
  border-color: var(--accent);
  background: var(--glass);
  transform: translateY(-1px);
}

.header-search-pill svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: 0 0 auto;
}

.header-search-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}

.seller-main {
  padding-block: 8px 4px;
}

.seller-profile__hero,
.seller-story-card,
.seller-values,
.seller-products-section,
.seller-match-panel,
.seller-comments-panel,
.seller-rating-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 54px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}

.seller-profile__hero {
  min-height: 204px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.05fr 1fr .82fr;
  gap: 20px;
  align-items: stretch;
  padding: 14px;
}

.seller-cover {
  min-height: 176px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(218,178,128,.12);
  background: #090806;
}

.seller-cover img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  filter: saturate(.85) contrast(1.07) brightness(.56);
}

.seller-profile__info {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding-block: 4px;
}

.seller-profile__info h1 {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.9px;
}

.seller-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding-inline: 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.seller-location svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.seller-stats {
  margin-top: 18px;
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  gap: 0;
}

.seller-stats > div {
  min-width: 112px;
  min-height: 52px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding-inline: 18px;
  border-inline-start: 1px solid var(--line);
}

.seller-stats > div:last-child {
  border-inline-start: 0;
}

.seller-stats strong {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.seller-stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: 12px;
}

.seller-stats span svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke-width: 0;
}

.seller-stats small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.seller-actions {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.seller-follow {
  height: 38px;
  min-width: 122px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 11px;
  color: #1c120c;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 900;
}

.seller-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--accent-strong);
  display: inline-grid;
  place-items: center;
}

.seller-icon-btn svg { width: 18px; height: 18px; }

.seller-emblem {
  display: grid;
  place-items: center;
}

.seller-emblem__circle {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--accent-strong);
  background:
    radial-gradient(circle at center, rgba(218,178,128,.12), transparent 58%),
    rgba(5,4,3,.22);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.018), 0 0 42px rgba(193,141,84,.10);
}

.seller-emblem__circle span {
  font-family: Georgia, serif;
  letter-spacing: 5px;
  font-size: 15px;
  line-height: 1;
}

.seller-emblem__circle svg {
  width: 46px;
  height: 46px;
}

.seller-emblem__circle strong {
  font-family: Georgia, serif;
  letter-spacing: 4px;
  font-size: 18px;
  line-height: 1;
}

.seller-emblem__circle small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.seller-story-row {
  display: grid;
  grid-template-columns: .9fr 1.35fr;
  gap: 12px;
  margin-top: 12px;
}

.seller-values,
.seller-story-card {
  border-radius: 18px;
  min-height: 96px;
}

.seller-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 12px;
}

.seller-values article {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
}

.seller-values article + article {
  border-inline-end: 1px solid rgba(218,178,128,.10);
}

.seller-values svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.seller-values strong {
  max-width: 74px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
  font-weight: 800;
}

.seller-story-card {
  padding: 18px 22px;
}

.seller-story-card h2,
.seller-section-head h2,
.seller-match-panel h2,
.seller-comments-panel h2,
.seller-rating-panel h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}

.seller-story-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.seller-story-card h2 svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.seller-story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 2.05;
  text-align: right;
}

.seller-products-section {
  margin-top: 12px;
  border-radius: 20px;
  padding: 13px 14px 14px;
}

.seller-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.seller-text-link {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.seller-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seller-product-card {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: end;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(218,178,128,.12);
  border-radius: 16px;
  padding: 13px 13px 12px;
  background:
    radial-gradient(circle at 16% 30%, rgba(218,178,128,.11), transparent 37%),
    rgba(15, 12, 9, .64);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease);
}

.seller-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.30);
}

.seller-product-card--featured {
  border-color: color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 0 0 1px rgba(218,178,128,.08), 0 0 34px rgba(218,178,128,.10);
}

.seller-product-card img {
  width: 100%;
  height: 136px;
  object-fit: cover;
  border-radius: 10px;
  align-self: center;
  filter: saturate(.86) brightness(.78) contrast(1.05);
}

.seller-product-card__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: end;
}

.seller-product-card__content h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.seller-product-card__content > span,
.seller-product-card__content small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.seller-product-card__content p {
  margin: 3px 0 2px;
  color: var(--muted);
  font-size: 10.2px;
  line-height: 1.65;
}

.seller-fav {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(218,178,128,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.14);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.seller-fav svg { width: 16px; height: 16px; }

.seller-recommend {
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 44px 44px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #1a100a;
  font-size: 9.5px;
  font-weight: 900;
  z-index: 4;
}

.flavor-meter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-block: 2px;
}

.flavor-meter i {
  width: 18px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(218,178,128,.22);
  border: 1px solid rgba(218,178,128,.16);
}

.flavor-meter i:nth-child(-n + 3),
.flavor-meter--four i:nth-child(-n + 4),
.flavor-meter--three i:nth-child(-n + 3) {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.brew-icons {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
}

.brew-icons svg {
  width: 17px;
  height: 17px;
}

.seller-bottom-grid {
  display: grid;
  grid-template-columns: 1fr .72fr .9fr;
  gap: 12px;
  margin-top: 12px;
}

.seller-match-panel,
.seller-comments-panel,
.seller-rating-panel {
  min-height: 112px;
  border-radius: 18px;
  padding: 15px 16px;
}

.seller-match-panel {
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  gap: 14px;
  position: relative;
}

.seller-match-panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--accent-strong);
}

.seller-match-panel h2 svg {
  width: 18px;
  height: 18px;
}

.seller-match-panel p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.seller-match-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.seller-match-panel li {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,.018);
}

.seller-match-panel > small {
  position: absolute;
  inset-inline-end: 21px;
  inset-block-end: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.match-score {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--accent) 0 92%, rgba(218,178,128,.16) 92% 100%);
  position: relative;
  box-shadow: 0 0 24px rgba(218,178,128,.12);
}

.match-score::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface-solid);
}

.match-score span {
  position: relative;
  z-index: 1;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
}

.seller-comments-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.seller-comments-panel h2 {
  font-size: 16px;
}

.seller-comment {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 9px;
  align-items: center;
}

.seller-comment img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.seller-comment p {
  margin: 0;
  display: grid;
  gap: 3px;
}

.seller-comment strong {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 900;
}

.seller-comment span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.seller-rating-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.seller-rating-panel h2 {
  color: var(--muted);
  font-size: 12px;
}

.seller-rating-panel p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.75;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rating-row strong {
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 900;
}

.rating-row span {
  display: inline-flex;
  color: var(--gold);
  gap: 2px;
}

.rating-row span svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 0;
}

.rating-row small {
  color: var(--muted);
  font-size: 9.5px;
  margin-inline-start: auto;
}

html[data-theme="light"] .seller-profile__hero,
html[data-theme="light"] .seller-story-card,
html[data-theme="light"] .seller-values,
html[data-theme="light"] .seller-products-section,
html[data-theme="light"] .seller-match-panel,
html[data-theme="light"] .seller-comments-panel,
html[data-theme="light"] .seller-rating-panel {
  background: #fff;
  box-shadow: 0 16px 38px rgba(120,75,35,.10), inset 0 1px 0 rgba(255,255,255,.85);
}

html[data-theme="light"] .seller-product-card {
  background: linear-gradient(180deg, #fffaf3, #fff7ee);
}

html[data-theme="light"] .match-score::before {
  background: #fff;
}

@media (max-width: 1080px) {
  .seller-header__inner {
    gap: 14px;
  }

  .header-search-pill {
    width: 230px;
  }

  .seller-profile__hero {
    grid-template-columns: .95fr 1fr .62fr;
  }

  .seller-emblem__circle {
    width: 150px;
    height: 150px;
  }

  .seller-story-row {
    grid-template-columns: 1fr;
  }

  .seller-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seller-match-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .site-header--seller .header__inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "nav nav" !important;
  }

  .seller-header__actions {
    gap: 5px;
  }

  .header-search-pill {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }

  .header-search-pill span {
    display: none;
  }

  .seller-main {
    padding-block-start: 6px;
  }

  .seller-profile__hero {
    grid-template-columns: 1fr;
    padding: 12px;
    text-align: center;
  }

  .seller-cover {
    min-height: 210px;
  }

  .seller-cover img {
    min-height: 210px;
  }

  .seller-emblem {
    order: -1;
  }

  .seller-emblem__circle {
    width: 136px;
    height: 136px;
  }

  .seller-stats {
    width: 100%;
    justify-content: center;
  }

  .seller-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .seller-values article {
    min-height: 78px;
    border: 1px solid rgba(218,178,128,.09);
    border-radius: 14px;
  }

  .seller-values article + article {
    border-inline-end: 1px solid rgba(218,178,128,.09);
  }

  .seller-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .brand__copy small {
    display: none;
  }

  .seller-header__actions .theme-toggle {
    display: none;
  }

  .seller-nav {
    gap: 18px !important;
  }

  .seller-profile__hero,
  .seller-products-section,
  .seller-match-panel,
  .seller-comments-panel,
  .seller-rating-panel,
  .seller-story-card,
  .seller-values {
    border-radius: 18px;
  }

  .seller-cover,
  .seller-cover img {
    min-height: 170px;
  }

  .seller-profile__info h1 {
    font-size: 28px;
  }

  .seller-stats {
    grid-template-columns: 1fr 1fr;
  }

  .seller-stats > div {
    min-width: 0;
    width: 100%;
    padding-inline: 10px;
  }

  .seller-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 42px 42px;
  }

  .seller-follow {
    width: 100%;
  }

  .seller-story-card {
    padding: 16px;
  }

  .seller-story-card p {
    font-size: 11.5px;
    line-height: 2;
  }

  .seller-product-grid {
    grid-template-columns: 1fr;
  }

  .seller-product-card {
    min-height: 172px;
    grid-template-columns: 38% 1fr;
  }

  .seller-product-card img {
    height: 132px;
  }

  .seller-recommend {
    inset-inline: 36px 36px;
  }

  .seller-match-panel {
    grid-template-columns: 1fr;
    text-align: right;
  }

  .match-score {
    justify-self: center;
  }

  .seller-match-panel > small {
    position: static;
    text-align: center;
  }

  .rating-row {
    flex-wrap: wrap;
  }
}

/* Client correction — seller page refinements from screenshot 53 */
.seller-product-card {
  min-height: 194px;
  padding-block: 16px 14px;
}

.seller-product-card--featured {
  padding-block-start: 28px;
}

.seller-product-card img {
  height: 150px;
}

.seller-recommend {
  inset-block-start: 0;
  z-index: 5;
}

.seller-values article + article {
  border-inline-end: 0;
}

.seller-values article:not(:last-child) {
  border-inline-end: 1px solid rgba(218,178,128,.10);
}

.seller-bottom-grid {
  grid-template-columns: .9fr 1.45fr;
}

.seller-comments-panel--combined {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 12px 16px;
  align-content: stretch;
}

.seller-reviews-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seller-comments-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.seller-review-highlight {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  border: 1px solid rgba(218,178,128,.12);
  border-radius: 15px;
  padding: 11px 12px;
  background: rgba(255,255,255,.018);
}

.seller-review-highlight p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.75;
}

html[data-theme="light"] .seller-review-highlight {
  background: #fff3ee;
  border-color: rgba(120,75,35,.12);
}

@media (max-width: 1080px) {
  .seller-bottom-grid {
    grid-template-columns: 1fr;
  }

  .seller-match-panel {
    grid-column: auto;
  }
}

@media (max-width: 580px) {
  .seller-product-card {
    min-height: 190px;
  }

  .seller-product-card img {
    height: 142px;
  }

  .seller-comments-panel--combined {
    grid-template-columns: 1fr;
  }

  .seller-reviews-head {
    align-items: flex-start;
  }
}

/* Client correction — seller page screenshot 53 details */
.seller-location {
  direction: rtl;
  text-align: right;
  justify-content: flex-start;
}

.roast-degree-label {
  display: block;
  margin-block: 2px -1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.seller-product-card .flavor-meter {
  margin-block-start: 0;
}

.seller-match-panel h2 {
  direction: rtl;
}

.seller-comments-panel--combined {
  grid-template-columns: 1fr;
  gap: 10px;
}

.seller-comments-list--rows {
  display: grid;
  gap: 0;
}

.seller-comment--row {
  display: grid;
  grid-template-columns: 42px 118px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding-block: 9px;
  border-block-start: 1px solid rgba(218,178,128,.10);
}

.seller-comment--row:first-child {
  border-block-start: 0;
  padding-block-start: 2px;
}

.seller-comment--row img {
  width: 36px;
  height: 36px;
}

.seller-comment__meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.seller-comment__meta strong {
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.seller-comment__meta small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.seller-comment--row p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.75;
}

.seller-comment__rating {
  justify-self: start;
  display: grid;
  gap: 4px;
  min-width: 104px;
}

.seller-comment__rating strong {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.seller-comment__rating span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
}

.seller-comment__rating svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke-width: 0;
}

@media (max-width: 720px) {
  .seller-comment--row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
  }

  .seller-comment--row p {
    grid-column: 1 / -1;
    padding-inline-start: 0;
  }

  .seller-comment__rating {
    justify-self: start;
    min-width: auto;
  }
}

/* Final seller review alignment correction */
.seller-comment__rating {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  min-width: 118px;
  white-space: nowrap;
}

.seller-comment__rating strong { line-height: 1 !important; }
.seller-comment__rating span { display: inline-flex !important; align-items: center !important; }

@media (max-width: 720px) {
  .seller-comment__rating {
    min-width: auto;
    justify-self: start;
  }
}

/* Product page / screenshot 54 implementation */
.product-page {
  background:
    radial-gradient(circle at 84% 10%, rgba(202, 141, 73, .08), transparent 32%),
    linear-gradient(180deg, #fbf7f1 0%, #f8f1e8 58%, #fbf7f1 100%);
  color: #291d14;
}

html[data-theme="dark"] .product-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(202, 141, 73, .11), transparent 32%),
    linear-gradient(180deg, #080706 0%, #0e0c09 58%, #080706 100%);
}

.site-header--product {
  padding-block: 8px 6px;
  background: color-mix(in srgb, var(--bg-soft) 74%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.product-header__inner {
  height: 48px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 16px;
}

.product-header__icons,
.product-header__search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-header__icons { justify-self: start; }
.product-header__search { justify-self: end; }

.brand--centered {
  justify-self: center;
  text-align: center;
  color: var(--text-strong);
}

.brand--centered .brand__text {
  font-size: 30px;
}

.brand--centered small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-search-btn {
  width: min(320px, 32vw);
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 13px;
  box-shadow: 0 10px 28px rgba(120,75,35,.08);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.product-search-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(120,75,35,.12);
}

.product-search-btn svg { width: 17px; height: 17px; color: var(--accent-strong); }
.product-search-btn span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-nav-row {
  min-height: 35px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.product-nav {
  justify-content: end;
  gap: clamp(18px, 2.7vw, 42px);
}

.product-breadcrumb {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.product-breadcrumb span { margin-inline: 4px; opacity: .62; }
.product-main { padding-block: 14px 8px; }

.product-hero,
.product-info-grid,
.product-lower-grid,
.product-reviews-section {
  margin-block-end: 12px;
}

.product-hero {
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.62);
  padding: 16px;
}

html[data-theme="dark"] .product-hero,
html[data-theme="dark"] .product-info-grid > *,
html[data-theme="dark"] .product-lower-grid > *,
html[data-theme="dark"] .product-reviews-section {
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.product-visual {
  position: relative;
  min-height: 376px;
  overflow: hidden;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: #211a13;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 376px;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
}

.quality-seal {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  border: 1px solid rgba(210, 145, 72, .55);
  color: #d49b68;
  background: rgba(28, 18, 12, .58);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.65;
  font-weight: 900;
  transform: rotate(-10deg);
}

.product-summary {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 8px 4px 4px 18px;
}

.product-favorite {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.product-favorite svg { width: 19px; height: 19px; }
.product-favorite.is-active { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.product-favorite.is-active svg { fill: currentColor; }
.product-summary h1 { margin: 0; color: var(--text-strong); font-size: 26px; line-height: 1.25; font-weight: 950; letter-spacing: -.5px; }
.product-subtitle { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.product-rating { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.product-rating span,
.mini-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); }
.product-rating svg,
.mini-stars svg { width: 13px; height: 13px; fill: currentColor; stroke-width: 0; }
.product-rating strong { color: var(--text-strong); font-weight: 900; }
.product-lead { max-width: 420px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.product-price { color: var(--text-strong); font-size: 19px; font-weight: 950; margin-block: 4px 6px; }

.option-group {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 10px;
}

.option-group > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.option-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.option-pills--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.option-pills button {
  min-height: 38px;
  padding-inline: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.option-pills button:hover { transform: translateY(-1px); border-color: var(--accent); }
.option-pills button.is-selected { background: var(--accent-strong); color: var(--bg); border-color: var(--accent-strong); }

.product-buy-row {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 10px;
  margin-block-start: 6px;
}

.quantity-control {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  background: var(--surface-solid);
  overflow: hidden;
}

.quantity-control button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.quantity-control span { text-align: center; color: var(--text-strong); font-weight: 900; }
.add-cart-btn {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #b36b3f, #8e4e2d);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(143, 78, 45, .24);
}
.add-cart-btn svg { width: 16px; height: 16px; }
.free-shipping { color: var(--muted); text-align: center; font-size: 10px; }

.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr .9fr 1.25fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.6);
}

.product-info-grid > * {
  min-height: 120px;
  padding: 16px;
  border-inline-start: 1px solid var(--line);
}
.product-info-grid > *:first-child { border-inline-start: 0; }
.product-mini-card h2,
.product-market-card h2 { margin: 0 0 14px; color: var(--text-strong); font-size: 12px; font-weight: 950; }
.taste-list,
.brew-list { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.taste-list span,
.brew-list span { min-width: 58px; display: grid; justify-items: center; gap: 7px; color: var(--text); font-size: 11px; font-weight: 850; }
.taste-list span::before { content: ""; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.taste-list span:nth-child(2)::before { border-radius: 50%; background: linear-gradient(135deg, #d6a23d, #c98a2c); }
.taste-list span:nth-child(3)::before { background: linear-gradient(135deg, #d89b56, #9f633b); transform: rotate(45deg); }
.brew-list svg { width: 31px; height: 31px; color: var(--accent); }
.roast-date p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; text-align: center; }
.roast-date strong { color: var(--text-strong); font-size: 12px; }

.product-market-card {
  display: grid;
  align-content: start;
  gap: 10px;
}
.market-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.market-product img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.market-product h3 { margin: 0; color: var(--text-strong); font-size: 13px; font-weight: 950; }
.market-product small { color: var(--muted); font-size: 10px; font-weight: 750; }
.market-product strong { display: block; margin-top: 4px; color: var(--text-strong); font-size: 12px; }

.product-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.64fr) minmax(260px, .72fr);
  gap: 12px;
}

.product-seller-card,
.why-match-card,
.product-reviews-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.6);
}

.product-seller-card {
  display: grid;
  grid-template-columns: 220px 104px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 14px;
}
.product-seller-card > img { width: 100%; height: 104px; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); }
.seller-mini-brand { width: 86px; height: 86px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; text-align: center; color: var(--accent-strong); font-family: Georgia, serif; font-size: 20px; background: var(--surface-solid); }
.seller-mini-brand small { font-family: var(--font-main); color: var(--muted); font-size: 8px; line-height: 1.25; }
.product-seller-card h2 { margin: 0 0 8px; color: var(--text-strong); font-size: 15px; font-weight: 950; }
.product-seller-card p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.seller-mini-rating { display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.seller-mini-rating strong { color: var(--text-strong); font-size: 18px; font-weight: 950; }
.seller-mini-rating span { display: inline-flex; color: var(--gold); gap: 1px; }
.seller-mini-rating svg { width: 11px; height: 11px; fill: currentColor; stroke-width: 0; }
.seller-mini-rating small { font-size: 9px; }

.why-match-card { padding: 18px; display: grid; align-content: center; gap: 10px; }
.why-match-card h2 { margin: 0; color: var(--text-strong); font-size: 14px; font-weight: 950; }
.why-match-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }

.product-reviews-section { padding: 14px; }
.product-reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.product-reviews-head h2 { margin: 0; color: var(--text-strong); font-size: 15px; font-weight: 950; }
.product-reviews-head span { color: var(--muted); font-size: 12px; }
.product-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-review-card { min-height: 104px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; }
.product-review-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.product-review-card strong { color: var(--text-strong); font-size: 11px; font-weight: 950; }
.product-review-card small { display: block; color: var(--muted); font-size: 9px; }
.product-review-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.75; }

@media (max-width: 1100px) {
  .product-header__inner { grid-template-columns: auto 1fr auto; }
  .brand--centered { justify-self: center; }
  .product-search-btn { width: 230px; }
  .product-hero { grid-template-columns: 1fr; }
  .product-summary { padding: 4px; }
  .product-info-grid { grid-template-columns: repeat(2, 1fr); }
  .product-info-grid > * { border-block-start: 1px solid var(--line); }
  .product-info-grid > *:nth-child(-n+2) { border-block-start: 0; }
  .product-info-grid > *:nth-child(2n+1) { border-inline-start: 0; }
  .product-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header--product { padding-block: 8px; }
  .product-header__inner { height: auto; grid-template-columns: 1fr auto; grid-template-areas: "brand icons" "search search"; gap: 10px; }
  .brand--centered { grid-area: brand; justify-self: start; text-align: right; }
  .product-header__icons { grid-area: icons; justify-self: end; }
  .product-header__search { grid-area: search; width: 100%; justify-content: stretch; }
  .product-search-btn { width: 100%; }
  .product-header__search .theme-toggle { flex: 0 0 38px; }
  .product-nav-row { grid-template-columns: 1fr; gap: 6px; }
  .product-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .product-nav::-webkit-scrollbar { display: none; }
  .product-breadcrumb { justify-self: start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }
  .product-visual,
  .product-visual img { min-height: 280px; }
  .product-hero { padding: 12px; border-radius: 18px; }
  .product-summary h1 { font-size: 23px; }
  .option-group { grid-template-columns: 1fr; gap: 7px; }
  .option-pills--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-seller-card { grid-template-columns: 120px 82px minmax(0, 1fr); }
  .seller-mini-rating { grid-column: 1 / -1; grid-template-columns: auto auto auto; justify-content: start; align-items: center; }
  .product-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .product-header__inner,
  .product-nav-row,
  .product-hero,
  .product-info-grid,
  .product-lower-grid,
  .product-reviews-section { width: min(100% - 24px, var(--container)); }
  .brand--centered .brand__text { font-size: 24px; }
  .product-header__icons { gap: 2px; }
  .product-visual,
  .product-visual img { min-height: 222px; }
  .quality-seal { width: 74px; height: 74px; font-size: 8px; top: 16px; right: 16px; }
  .option-pills,
  .option-pills--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-buy-row { grid-template-columns: 1fr; }
  .product-info-grid { display: grid; grid-template-columns: 1fr; border-radius: 16px; }
  .product-info-grid > * { border-inline-start: 0 !important; border-block-start: 1px solid var(--line) !important; }
  .product-info-grid > *:first-child { border-block-start: 0 !important; }
  .product-seller-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .product-seller-card > img { height: 150px; }
  .why-match-card { text-align: center; }
  .product-review-card { grid-template-columns: 38px 1fr; }
  .product-review-card .mini-stars { grid-column: 1 / -1; justify-self: start; }
}


/* Product page refinements based on screenshot 54 feedback */
.product-page .product-seller-menu {
  padding-block: 10px 7px;
  background: color-mix(in srgb, var(--bg-soft) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.product-page .product-seller-menu .seller-header__inner {
  height: 46px;
}

.product-page .product-page-nav .nav__link.is-active::after {
  background: var(--accent-strong);
}

.product-breadcrumb--below-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding-block: 6px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.8;
  justify-self: auto;
}

.product-breadcrumb--below-menu a {
  color: inherit;
  transition: color .18s var(--ease);
}

.product-breadcrumb--below-menu a:hover,
.product-breadcrumb--below-menu strong {
  color: var(--text-strong);
}

.product-breadcrumb--below-menu span {
  margin: 0;
  opacity: .48;
}

.product-page .product-main {
  padding-block-start: 12px;
}

.product-page .product-hero {
  grid-template-columns: minmax(330px, .88fr) minmax(430px, 1.12fr);
  min-height: 374px;
  gap: 16px;
}

.product-page .product-visual,
.product-page .product-visual img {
  min-height: 340px;
}

.product-page .product-visual img {
  object-position: center center;
  filter: saturate(1.04) contrast(1.04) brightness(.98);
}

.product-content-layout {
  display: grid;
  grid-template-columns: minmax(245px, 278px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-block-end: 12px;
}

.product-sidebar,
.product-content-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.product-content-stack .product-info-grid {
  width: 100%;
  margin-block-end: 0;
}

.product-info-grid--inline {
  grid-template-columns: .95fr 1.05fr .9fr;
}

.product-info-grid--inline > * {
  min-height: 118px;
}

.product-sidebar .product-market-card,
.product-sidebar .why-match-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.6);
}

html[data-theme="dark"] .product-sidebar .product-market-card,
html[data-theme="dark"] .product-sidebar .why-match-card {
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.product-sidebar .product-market-card {
  padding: 16px;
}

.product-sidebar .market-product {
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.product-sidebar .market-product img {
  width: 82px;
  height: 96px;
  border-radius: 12px;
}

.product-sidebar .product-market-card .outline-btn {
  width: 100%;
  justify-content: center;
  margin-block-start: 4px;
}

.product-sidebar .why-match-card {
  min-height: 164px;
  align-content: start;
}

.product-content-stack .product-seller-card,
.product-content-stack .product-reviews-section {
  margin-block-end: 0;
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr;
  }

  .product-content-layout {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .product-content-stack {
    order: 1;
  }
}

@media (max-width: 840px) {
  .product-page .product-seller-menu .seller-header__inner {
    height: auto;
  }

  .product-page .product-page-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .product-page .product-page-nav::-webkit-scrollbar {
    display: none;
  }

  .product-breadcrumb--below-menu {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-block-start: 8px;
  }

  .product-info-grid--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-info-grid--inline > *:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .product-page .product-seller-menu {
    padding-block: 8px;
  }

  .product-page .brand--stacked .brand__text {
    font-size: 24px;
  }

  .product-page .product-hero,
  .product-content-layout {
    width: min(100% - 24px, var(--container));
  }

  .product-page .product-hero {
    padding: 12px;
    min-height: 0;
  }

  .product-page .product-visual,
  .product-page .product-visual img {
    min-height: 224px;
  }

  .product-info-grid--inline,
  .product-sidebar {
    grid-template-columns: 1fr;
  }

  .product-info-grid--inline > * {
    min-height: 108px;
  }
}


/* Final corrections — product 54 layout + seller location alignment */
.seller-profile__info h1,
.seller-profile__info .seller-location {
  justify-self: start;
  text-align: right;
}

.seller-profile__info .seller-location {
  direction: rtl;
}

.product-page .product-seller-menu {
  padding-block: 12px 8px;
}

.product-page .product-seller-menu .seller-header__inner {
  height: 46px;
  gap: 20px;
}

.product-breadcrumb--below-menu {
  margin-top: 2px;
  justify-content: flex-start;
  direction: rtl;
}

.product-page .product-hero {
  grid-template-columns: minmax(292px, .74fr) minmax(500px, 1.26fr);
  gap: 18px;
}

.product-page .product-visual,
.product-page .product-visual img {
  min-height: 318px;
}

.product-page .product-visual img {
  object-position: center center;
}

.product-page .quality-seal {
  display: none !important;
}

.product-page .product-summary {
  padding: 10px 18px 6px 8px;
}

.product-content-layout {
  grid-template-columns: minmax(260px, 288px) minmax(0, 1fr);
}

.product-sidebar {
  align-self: start;
}

.product-sidebar .product-market-card,
.product-sidebar .why-match-card {
  width: 100%;
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr;
  }

  .product-content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .seller-profile__info h1,
  .seller-profile__info .seller-location {
    justify-self: center;
    text-align: center;
  }

  .product-page .product-hero {
    grid-template-columns: 1fr;
  }

  .product-page .product-summary {
    padding: 4px;
  }
}

/* Targeted product page corrections from latest review */
.product-page > .site-header--seller {
  border-bottom: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.product-page .product-breadcrumb--below-menu {
  margin-block: 0 10px;
  padding-block: 4px 0;
}

.product-page .product-hero {
  grid-template-columns: minmax(390px, .98fr) minmax(460px, 1.02fr) !important;
  gap: 18px;
  min-height: 368px;
}

.product-page .product-visual,
.product-page .product-visual img {
  min-height: 344px !important;
}

.product-page .product-summary {
  padding: 10px 16px 6px 8px;
}

.product-page .product-sidebar {
  gap: 0 !important;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.55);
}

html[data-theme="dark"] .product-page .product-sidebar {
  box-shadow: 0 18px 54px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.product-page .product-sidebar .product-market-card,
.product-page .product-sidebar .why-match-card {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.product-page .product-sidebar .product-market-card {
  border-bottom: 1px solid var(--line) !important;
  padding: 16px 16px 15px;
}

.product-page .product-sidebar .why-match-card {
  padding: 16px;
}

.product-page .product-sidebar .product-market-card .outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  line-height: 1;
  padding-inline: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.product-page .mini-card-title--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
}

.product-page .mini-card-title--icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.product-page .taste-list span::before {
  display: none !important;
}

.product-page .taste-list span svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 13px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.product-page .product-seller-card .seller-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -3px 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.product-page .product-seller-card .seller-address svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.product-page .seller-text-link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-page .seller-text-link--arrow svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr !important;
  }

  .product-page .product-sidebar {
    order: 2;
  }
}

@media (max-width: 840px) {
  .product-page .product-hero {
    min-height: 0;
  }

  .product-page .product-visual,
  .product-page .product-visual img {
    min-height: 280px !important;
  }
}

@media (max-width: 620px) {
  .product-page .product-visual,
  .product-page .product-visual img {
    min-height: 224px !important;
  }
}


/* Latest targeted fixes: exact seller menu copy, seller stats divider, product 54 alignment */
.seller-profile__info {
  justify-items: center;
  text-align: center;
}

.seller-profile__info h1 {
  justify-self: center !important;
  text-align: center !important;
}

.seller-profile__info .seller-location {
  justify-self: center !important;
}

.seller-stats {
  justify-self: center;
  direction: rtl;
}

.seller-stats > div {
  border-inline-start: 0 !important;
  border-inline-end: 0 !important;
}

.seller-stats > div + div {
  border-inline-start: 1px solid var(--line) !important;
}

.product-page .site-header--seller {
  padding-block: 19px 10px;
}

.product-page .site-header--seller .seller-header__inner {
  height: 48px;
  gap: 28px;
}

.product-page .product-breadcrumb--below-menu {
  margin-block: 16px 6px !important;
  padding-block: 0 !important;
  justify-content: flex-start;
}

.product-page .product-hero {
  grid-template-columns: minmax(350px, .9fr) minmax(500px, 1.1fr) !important;
  min-height: 356px !important;
  gap: 18px;
}

.product-page .product-visual {
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
}

.product-page .product-visual img {
  min-height: 0 !important;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-page .product-summary {
  align-content: center;
}

.product-page .roast-date,
.product-page .roast-date p {
  text-align: right !important;
  direction: rtl;
}

.product-page .roast-date__date {
  display: block;
  width: 100%;
  text-align: right;
  direction: ltr;
  unicode-bidi: isolate;
}

.product-page .product-content-layout {
  align-items: stretch !important;
}

.product-page .product-sidebar {
  align-self: stretch !important;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.product-page .product-sidebar .why-match-card {
  align-content: start;
}

.market-product__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.market-product__title h3 {
  margin: 0;
}

.market-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  padding-inline: 7px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.market-rating svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  stroke-width: 0;
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr !important;
  }
  .product-page .product-visual {
    aspect-ratio: 16 / 9;
  }
  .product-page .product-sidebar {
    height: auto;
    grid-template-rows: auto;
  }
}

@media (max-width: 840px) {
  .product-page .site-header--seller .seller-header__inner {
    height: auto;
    gap: 14px;
  }
  .product-page .product-summary {
    align-content: start;
  }
}

@media (max-width: 620px) {
  .product-page .product-breadcrumb--below-menu {
    margin-block: 12px 6px !important;
  }
  .product-page .product-visual {
    aspect-ratio: 16 / 10;
  }
}

/* Product page fine-tuning: image sizing, roast-date alignment, sidebar balance */
.product-page .product-hero {
  grid-template-columns: minmax(300px, .8fr) minmax(560px, 1.2fr) !important;
  align-items: center;
}

.product-page .product-visual {
  align-self: center;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  max-height: 315px;
}

.product-page .product-visual img {
  min-height: 0 !important;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-page .product-summary {
  min-width: 0;
  align-content: center;
}

.product-page .roast-date,
.product-page .roast-date p {
  text-align: center !important;
  direction: rtl;
}

.product-page .roast-date__date {
  display: inline-block;
  width: auto;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.product-page .product-sidebar {
  grid-template-rows: minmax(214px, auto) 1fr;
}

.product-page .product-sidebar .product-market-card {
  align-content: start;
  gap: 12px;
}

.product-page .product-sidebar .market-product {
  grid-template-columns: 90px 1fr;
  gap: 13px;
}

.product-page .product-sidebar .market-product img {
  width: 90px;
  height: 106px;
}

.product-page .product-sidebar .product-market-card .outline-btn {
  height: 38px;
  margin-block-start: 2px;
}

.product-page .product-sidebar .why-match-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.product-page .product-sidebar .why-match-card p {
  line-height: 2.05;
}

.product-page .product-sidebar .why-match-card .seller-text-link {
  margin-top: auto;
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr !important;
  }

  .product-page .product-visual {
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .product-page .product-sidebar {
    grid-template-rows: auto;
  }
}

/* Final product-page requested refinements: square product image, soft divider, sidebar text balance, mobile reviews width */
.product-page .product-hero {
  grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr) !important;
  align-items: center !important;
}

.product-page .product-visual {
  width: min(100%, 352px) !important;
  aspect-ratio: 1 / 1 !important;
  max-height: none !important;
  min-height: 0 !important;
  justify-self: center;
  align-self: center;
}

.product-page .product-visual img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center;
}

.product-page .product-sidebar .product-market-card {
  border-bottom: 0 !important;
  padding-bottom: 13px;
}

.product-page .product-sidebar .why-match-card {
  position: relative;
  padding-top: 18px;
  justify-content: start !important;
  gap: 10px;
}

.product-page .product-sidebar .why-match-card::before ,.product-page .product-sidebar .product-market-card::before{
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-block: 0 13px;
  background-image: repeating-linear-gradient(to left,
    color-mix(in srgb, var(--accent) 34%, transparent) 0 8px,
    transparent 8px 15px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  opacity: .78;
}

.product-page .product-sidebar .why-match-card p {
  margin-top: 2px;
  line-height: 2.05;
}

.product-page .product-sidebar .why-match-card .seller-text-link {
  margin-top: 4px !important;
}

@media (max-width: 1120px) {
  .product-page .product-hero {
    grid-template-columns: 1fr !important;
  }

  .product-page .product-visual {
    width: min(100%, 420px) !important;
  }
}

@media (max-width: 620px) {
  .product-page .product-visual {
    width: min(100%, 320px) !important;
    aspect-ratio: 1 / 1 !important;
  }

  .product-page .product-content-stack,
  .product-page .product-reviews-section,
  .product-page .product-review-grid,
  .product-page .product-review-card {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .product-page .product-reviews-section {
    margin-inline: 0 !important;
  }
}

/* Homepage responsive containment fix: prevent slider/cards from pushing outside mobile/tablet viewport. */
@media (max-width: 900px) {
  .home-page,
  .home-page main,
  .home-page .container,
  .home-page .hero,
  .home-page .hero__grid,
  .home-page .hero__content,
  .home-page .coffee-match,
  .home-page .section-panel,
  .home-page .slider-shell,
  .home-page .product-slider-shell,
  .home-page .homepage-grid {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .home-page .container {
    width: min(var(--container), calc(100% - var(--gutter) * 2)) !important;
  }

  .home-page .roaster-slider,
  .home-page .product-slider,
  .home-page .nearby-slider {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    margin-inline: 0 !important;
    scroll-padding-inline: 2px;
  }

  .home-page .fresh-panel .product-slider {
    overflow-y: visible !important;
    padding-inline: 2px !important;
    margin-inline: 0 !important;
  }

  .home-page .roaster-card,
  .home-page .product-card,
  .home-page .nearby-card,
  .home-page .popular-item,
  .home-page .category-tile,
  .home-page .match-step {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 840px) {
  .home-page .hero__grid {
    overflow: hidden;
  }

  .home-page .coffee-match {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  .home-page .category-strip,
  .home-page .homepage-grid {
    width: 100% !important;
  }

  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: minmax(0, min(76%, 260px)) !important;
    gap: 10px !important;
  }

  .home-page .product-slider {
    grid-auto-columns: minmax(0, min(48%, 180px)) !important;
    gap: 10px !important;
  }
}

@media (max-width: 580px) {
  .home-page .container {
    width: calc(100% - var(--gutter) * 2) !important;
  }

  .home-page .section-panel--wide,
  .home-page .fresh-panel,
  .home-page .popular-panel,
  .home-page .nearby-panel {
    width: 100% !important;
  }

  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: minmax(0, 82%) !important;
  }

  .home-page .product-slider {
    grid-auto-columns: minmax(0, 64%) !important;
  }

  .home-page .product-card {
    width: 100% !important;
  }

  .home-page .popular-panel {
    overflow: hidden !important;
  }
}

@media (max-width: 400px) {
  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: minmax(0, 86%) !important;
  }

  .home-page .product-slider {
    grid-auto-columns: minmax(0, 74%) !important;
  }
}

/* Smooth separator endings — keep solid lines, fade their tips instead of abrupt cuts. */
:root {
  --separator-fade-line: color-mix(in srgb, var(--accent) 30%, var(--line));
  --separator-fade-soft: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Vertical statistic divider on seller page */
.seller-stats > div {
  position: relative;
  border-inline-start: 0 !important;
  border-inline-end: 0 !important;
}

.seller-stats > div + div::before {
  content: "";
  position: absolute;
  inset-block: 7px;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--separator-fade-soft) 14%,
    var(--separator-fade-line) 48%,
    var(--separator-fade-line) 52%,
    var(--separator-fade-soft) 86%,
    transparent 100%);
  opacity: .86;
  pointer-events: none;
}

/* Seller value-card dividers */
.seller-values article {
  position: relative;
  border-inline-end: 0 !important;
}

.seller-values article:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--separator-fade-soft) 16%,
    var(--separator-fade-line) 50%,
    var(--separator-fade-soft) 84%,
    transparent 100%);
  opacity: .74;
  pointer-events: none;
}

/* Seller comment row separators */
.seller-comment--row {
  position: relative;
  border-block-start: 0 !important;
}

.seller-comment--row:not(:first-child)::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 4px;
  height: 1px;
  background: linear-gradient(to left,
    transparent 0%,
    var(--separator-fade-soft) 12%,
    var(--separator-fade-line) 50%,
    var(--separator-fade-soft) 88%,
    transparent 100%);
  opacity: .72;
  pointer-events: none;
}

/* Product information grid separators */
.product-info-grid > * {
  position: relative;
  border-inline-start: 0 !important;
  border-block-start: 0 !important;
}

.product-info-grid > *:not(:first-child)::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--separator-fade-soft) 15%,
    var(--separator-fade-line) 50%,
    var(--separator-fade-soft) 85%,
    transparent 100%);
  opacity: .78;
  pointer-events: none;
}

/* Product recommendation / why-match connector: solid soft fade, not dashed. */
.product-page .product-sidebar .why-match-card::before {
  background-image: none !important;
  background: linear-gradient(to left,
    transparent 0%,
    var(--separator-fade-soft) 12%,
    var(--separator-fade-line) 50%,
    var(--separator-fade-soft) 88%,
    transparent 100%) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: .78 !important;
}

@media (max-width: 1100px) {
  .product-info-grid > *:not(:first-child)::before {
    display: none;
  }

  .product-info-grid > *:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 16px;
    height: 1px;
    background: linear-gradient(to left,
      transparent 0%,
      var(--separator-fade-soft) 12%,
      var(--separator-fade-line) 50%,
      var(--separator-fade-soft) 88%,
      transparent 100%);
    opacity: .74;
    pointer-events: none;
  }
}

@media (max-width: 720px) {
  .seller-values article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .product-info-grid > *:nth-child(n + 3)::after {
    display: none;
  }

  .product-info-grid > *:not(:first-child)::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 14px;
    height: 1px;
    background: linear-gradient(to left,
      transparent 0%,
      var(--separator-fade-soft) 12%,
      var(--separator-fade-line) 50%,
      var(--separator-fade-soft) 88%,
      transparent 100%);
    opacity: .72;
    pointer-events: none;
  }
}

/* Homepage mobile sliders: keep carousel behavior on mobile without changing desktop. */
@media (max-width: 760px) {
  .home-page {
    overflow-x: hidden;
  }

  .home-page .section-panel,
  .home-page .fresh-panel,
  .home-page .nearby-panel {
    overflow: hidden !important;
  }

  .home-page .slider-shell,
  .home-page .product-slider-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .home-page .roaster-slider,
  .home-page .product-slider,
  .home-page .nearby-slider {
    display: grid !important;
    grid-auto-flow: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    padding: 2px 1px 10px !important;
    margin: 0 !important;
  }

  .home-page .roaster-slider::-webkit-scrollbar,
  .home-page .product-slider::-webkit-scrollbar,
  .home-page .nearby-slider::-webkit-scrollbar {
    display: none;
  }

  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: calc((100% - 10px) / 2) !important;
  }

  .home-page .product-slider {
    grid-auto-columns: calc((100% - 10px) / 2) !important;
  }

  .home-page .roaster-card,
  .home-page .product-card,
  .home-page .nearby-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }

  .home-page .slider-btn {
    display: grid !important;
    width: 28px;
    height: 38px;
    top: 50%;
    opacity: .96;
    background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
  }

  .home-page .slider-btn--right {
    right: 4px !important;
  }

  .home-page .slider-btn--left {
    left: 4px !important;
  }
}

@media (max-width: 420px) {
  .home-page .roaster-slider,
  .home-page .nearby-slider,
  .home-page .product-slider {
    grid-auto-columns: calc((100% - 8px) / 2) !important;
    gap: 8px !important;
  }

  .home-page .slider-btn {
    width: 26px;
    height: 36px;
  }
}

/* Requested exception: product recommendation/why-match divider should stay dashed like the earlier version. */
.product-page .product-sidebar .why-match-card::before,
.product-page .product-sidebar .product-market-card::before
{
  background-image: repeating-linear-gradient(to left,
    color-mix(in srgb, var(--accent) 34%, transparent) 0 8px,
    transparent 8px 15px) !important;
  background-color: transparent !important;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent) !important;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent) !important;
  opacity: .78 !important;
}

/* Homepage mobile only: normalize slider card boxes with the Popular Roasters card size. */
@media (max-width: 760px) {
  .home-page section[aria-labelledby="trending-title"],
  .home-page .popular-panel,
  .home-page .nearby-panel {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .home-page .roaster-card,
  .home-page .nearby-card,
  .home-page .popular-item {
    height: 96px !important;
    min-height: 96px !important;
  }

  .home-page .roaster-card__body {
    min-height: 96px !important;
    padding: 13px 62px 39px 12px !important;
  }

  .home-page .roaster-card__logo {
    width: 38px !important;
    height: 38px !important;
    top: 13px !important;
    right: 12px !important;
    font-size: 12px !important;
  }

  .home-page .mini-btn {
    height: 28px !important;
    right: auto !important;
    left: 12px !important;
    bottom: 10px !important;
    padding-inline: 12px !important;
    font-size: 10px !important;
  }
 .roaster-card__body span {
  /* right: 8px;
    position: absolute;
    bottom: 30px;*/
  }

  .home-page .nearby-card {
    padding: 12px !important;
    align-items: center !important;
  }

  .home-page .nearby-card img {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  .home-page .popular-item {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 11px 12px !important;
  }

  .home-page .popular-item__rank {
    width: 42px !important;
    height: 42px !important;
  }

  .home-page .popular-item .outline-btn {
    grid-column: auto !important;
    width: auto !important;
    min-width: 76px !important;
    height: 30px !important;
    padding-inline: 11px !important;
    font-size: 10px !important;
  }
}

/* Final mobile homepage correction: make the two slider sections match Popular Roasters sizing without touching desktop. */
@media (max-width: 760px) {
  .home-page section[aria-labelledby="trending-title"],
  .home-page .popular-panel,
  .home-page .nearby-panel {
    width: calc(100% - var(--gutter) * 2) !important;
    max-width: calc(100% - var(--gutter) * 2) !important;
    margin-inline: auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .home-page .homepage-grid {
    width: calc(100% - var(--gutter) * 2) !important;
    max-width: calc(100% - var(--gutter) * 2) !important;
    margin-inline: auto !important;
  }

  .home-page .homepage-grid .popular-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-page section[aria-labelledby="trending-title"] .slider-shell,
  .home-page .nearby-panel .slider-shell,
  .home-page .popular-panel .popular-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: calc((100% - 10px) / 2) !important;
    gap: 10px !important;
    padding: 2px 0 10px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .home-page .roaster-card,
  .home-page .nearby-card,
  .home-page .popular-item {
    height: 152px !important;
    min-height: 104px !important;

    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }

  .home-page .popular-list {
    gap: 10px !important;
  }

  .home-page .nearby-card {
    padding: 12px !important;
    gap: 10px !important;
  }
}

@media (max-width: 420px) {
  .home-page .roaster-slider,
  .home-page .nearby-slider {
    grid-auto-columns: calc((100% - 8px) / 2) !important;
    gap: 8px !important;
  }
}

/* Roaster explorer / seller list page */
.roasters-page {
  background:
    radial-gradient(circle at 78% 8%, rgba(188, 137, 82, .13), transparent 30%),
    linear-gradient(180deg, var(--bg-soft), var(--bg) 42%, var(--bg-soft));
}

.roasters-page .site-header--seller {
  padding-block: 12px 8px;
}

.roasters-main {
  padding: 12px 0 54px;
}

.roaster-explorer-hero {
  min-height: 290px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  color: #fff9ef;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, .94) 0%, rgba(13, 10, 8, .84) 38%, rgba(18, 13, 9, .36) 66%, rgba(7, 6, 5, .72) 100%),
    url("../assets/images/offline/photo-1509785307050-d4066910ec1e-29b2a01ad6.jpg") center / cover no-repeat;
  box-shadow: 0 5px 20px rgba(61, 38, 20, .22);
  display: flex;
  align-items: center;
  padding: 34px clamp(28px, 6vw, 76px);
}

.roaster-explorer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 72%, rgba(213, 166, 106, .26), transparent 20%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.16));
  pointer-events: none;
}

.roaster-explorer-hero__content {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
}

.roaster-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(242, 198, 139, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255, 238, 214, .82);
  font-size: 12px;
  margin-bottom: 14px;
}

.roaster-eyebrow svg {
  color: #e5bd85;
}

.roaster-explorer-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: .94;
  letter-spacing: -1.6px;
  color: #fff7e7;
  text-shadow: 0 8px 34px rgba(0,0,0,.34);
}

.roaster-explorer-hero p {
  margin: 18px 0 0;
  max-width: 430px;
  color: rgba(255, 243, 225, .78);
  font-size: 15px;
  line-height: 1.9;
}

.roaster-explorer-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.roaster-explorer-stats div {
  display: grid;
  grid-template-columns: 30px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}

.roaster-explorer-stats svg {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  color: #ddba88;
  stroke-width: 1.65;
}

.roaster-explorer-stats strong {
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
}

.roaster-explorer-stats span {
  font-size: 11px;
  color: rgba(255, 239, 218, .68);
}

.roaster-filters {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 2px 20px;
  scrollbar-width: none;
}

.roaster-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  height: 42px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  color: var(--muted);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(112, 72, 36, .08);
  transition: transform .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}

.filter-chip svg {
  width: 16px;
  height: 16px;
}

.filter-chip:hover,
.filter-chip.is-active {
  transform: translateY(-1px);
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
}

.filter-chip--icon {
  font-weight: 700;
  color: var(--text);
}

.filter-chip--sort {
  margin-inline-start: auto;
}

.roaster-list-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.explorer-card {
  min-height: 314px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-raised) 96%, transparent), color-mix(in srgb, var(--surface-solid) 94%, transparent));
  box-shadow: 0 14px 34px rgba(98, 64, 31, .08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.explorer-card::before {
  content: "";
  position: absolute;
  inset-inline: 20px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 38%, transparent), transparent);
}

.explorer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(96, 63, 30, .14);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.explorer-card__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.explorer-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: #16110c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 22px rgba(42, 23, 12, .14);
}

.explorer-logo svg {
  width: 25px;
  height: 25px;
}

.explorer-logo--cream { color: #2a1a11; background: #eadfcd; }
.explorer-logo--line { color: #18100c; background: #f5efe6; border: 1px solid rgba(88, 60, 39, .18); }
.explorer-logo--black { background: #090807; }
.explorer-logo--dark { background: radial-gradient(circle at 35% 30%, #211a13, #080706); }
.explorer-logo--roast { background: linear-gradient(135deg, #4a2d1b, #170d08); }
.explorer-logo--leaf { color: #1d2b1c; background: #e9e0cc; }
.explorer-logo--minimal { color: #16120f; background: #f3eee5; }

.explorer-card h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.45;
}

.explorer-card__head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.explorer-follow {
  width: 92px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 12px;
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.explorer-follow:hover {
  background: var(--accent-strong);
  color: var(--bg-soft);
  transform: translateY(-1px);
}

.explorer-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 12px;
}

.explorer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.explorer-meta svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.explorer-meta small {
  color: var(--muted-2);
}

.explorer-products {
  flex: 1;
  min-height: 132px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 8px 4px 0;
}

.coffee-pack {
  position: relative;
  justify-self: center;
  width: min(74px, 100%);
  height: 118px;
  border-radius: 3px 3px 8px 8px;
  background: #f4efe7;
  box-shadow: 0 18px 20px rgba(58, 34, 19, .12), inset 0 0 0 1px rgba(0,0,0,.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: perspective(180px) rotateX(1deg);
}

.coffee-pack::before {
  content: "";
  position: absolute;
  inset-inline: 8px;
  top: 0;
  height: 14px;
  border-radius: 0 0 999px 999px;
  background: rgba(0,0,0,.08);
}

.coffee-pack::after {
  content: "";
  position: absolute;
  inset: 24px 11px auto;
  height: 34px;
  border-radius: 4px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(0,0,0,.06);
}

.coffee-pack b {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  direction: ltr;
  letter-spacing: 1px;
  font-size: 10px;
  color: rgba(38, 25, 16, .78);
}

.coffee-pack--white { background: linear-gradient(180deg, #fbfaf6, #e8e0d3); }
.coffee-pack--cream { background: linear-gradient(180deg, #f1dfbf, #c9a26e); }
.coffee-pack--rose { background: linear-gradient(180deg, #eed0ca, #d4a39a); }
.coffee-pack--linen { background: linear-gradient(180deg, #e7ddc9, #c4b18e); }
.coffee-pack--sand { background: linear-gradient(180deg, #dbc19c, #a98255); }
.coffee-pack--kraft { background: linear-gradient(180deg, #c6a27b, #8e6040); }
.coffee-pack--black { background: linear-gradient(180deg, #1b1715, #090807); }
.coffee-pack--black b,
.coffee-pack--charcoal b,
.coffee-pack--maroon b { color: rgba(255,255,255,.78); }
.coffee-pack--charcoal { background: linear-gradient(180deg, #292622, #11100f); }
.coffee-pack--copper { background: linear-gradient(180deg, #ba7447, #764028); }
.coffee-pack--maroon { background: linear-gradient(180deg, #673327, #2b1410); }
.coffee-pack--pale { background: linear-gradient(180deg, #ece4cf, #d7c3a5); }
.coffee-pack--terracotta { background: linear-gradient(180deg, #b86643, #80381f); }
.coffee-pack--ash { background: linear-gradient(180deg, #cabfb1, #8c8176); }
.coffee-pack--lavender { background: linear-gradient(180deg, #d9c9d8, #b3a1ba); }

.explorer-flavor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  min-height: 28px;
}

.explorer-flavor i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-deep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-deep) 13%, transparent);
}

html[data-theme="dark"] .roasters-page .roaster-explorer-hero {
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .roasters-page .explorer-card,
html[data-theme="dark"] .roasters-page .filter-chip {
  box-shadow: var(--shadow-card);
}

@media (max-width: 1180px) {
  .roaster-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .roaster-explorer-hero {
    min-height: 250px;
    padding: 30px 28px;
  }

  .roaster-explorer-stats {
    gap: 18px;
    flex-wrap: wrap;
  }

  .roaster-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .roasters-main {
    padding-top: 6px;
  }

  .roaster-explorer-hero {
    width: calc(100% - 24px);
    min-height: 272px;
    border-radius: 22px;
    padding: 25px 18px;
    background-position: center;
  }

  .roaster-explorer-hero h1 {
    font-size: 43px;
  }

  .roaster-explorer-hero p {
    font-size: 13px;
    line-height: 1.85;
  }

  .roaster-explorer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .roaster-explorer-stats div {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 14px;
    background: rgba(255,255,255,.08);
  }

  .roaster-explorer-stats svg {
    grid-row: auto;
    width: 21px;
    height: 21px;
  }

  .roaster-explorer-stats strong {
    font-size: 18px;
  }

  .roaster-filters {
    width: calc(100% - 24px);
    padding-inline: 1px;
    gap: 9px;
  }

  .filter-chip {
    height: 38px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .filter-chip--sort {
    margin-inline-start: 0;
  }

  .roaster-list-grid {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .explorer-card {
    min-height: 286px;
    padding: 16px;
    border-radius: 20px;
  }

  .explorer-card__head {
    grid-template-columns: 48px minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .explorer-logo {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }

  .explorer-card h2 {
    font-size: 16px;
  }

  .explorer-follow {
    width: 82px;
    height: 34px;
    font-size: 11px;
  }

  .explorer-products {
    min-height: 116px;
    gap: 8px;
    margin-top: 13px;
  }

  .coffee-pack {
    width: 68px;
    height: 106px;
  }
}

/* Roasters page: light mode card/filter surfaces only */
html[data-theme="light"] .roasters-page .explorer-card,
html[data-theme="light"] .roasters-page .filter-chip {
  background: #fff;
}

/* Roasters filter popover */
.roaster-filter-popover {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 98%, transparent);
  box-shadow: 0 18px 42px rgba(72, 45, 22, .16);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] .roaster-filter-popover {
  background: #fff;
}

.roaster-filter-popover[hidden] {
  display: none;
}

.roaster-filter-popover__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 5px 10px;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 13px;
}

.roaster-filter-popover__title small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
}

.roaster-filter-options {
  display: grid;
  gap: 7px;
}

.roaster-filter-option {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

html[data-theme="light"] .roaster-filter-option {
  background: #fbfaf7;
}

.roaster-filter-option:hover,
.roaster-filter-option.is-selected {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-raised));
  transform: translateY(-1px);
}

html[data-theme="light"] .roaster-filter-option:hover,
html[data-theme="light"] .roaster-filter-option.is-selected {
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}

.roaster-filter-option svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

@media (max-width: 640px) {
  .roaster-filter-popover {
    left: 14px !important;
    right: 14px !important;
    top: auto !important;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
}
/* Hero Coffee Match CTA: same rotating subscription-button effect as Tanura */
.home-page .match-start {
  position: relative;
  isolation: isolate;
  z-index: 0;
  overflow: visible;
  border: 0;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #25180f;
  box-shadow: 0 12px 25px rgba(197, 146, 86, .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
}
.home-page .match-start::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--bz-spin),
    color-mix(in srgb, var(--accent) 34%, transparent) 0deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 205deg,
    var(--gold) 275deg,
    #ffedc9 312deg,
    var(--accent-deep) 344deg,
    color-mix(in srgb, var(--accent) 34%, transparent) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: bzBorderSpin 2.6s linear infinite;
}
.home-page .match-start::after {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(from var(--bz-spin), transparent 0deg, transparent 290deg, color-mix(in srgb, var(--gold) 60%, transparent) 320deg, transparent 350deg);
  filter: blur(6px);
  opacity: .85;
  animation: bzBorderSpin 2.6s linear infinite;
}
.home-page .match-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(197, 146, 86, .28);
}
@media (prefers-reduced-motion: reduce) {
  .home-page .match-start::before,
  .home-page .match-start::after { animation: none; }
}

/* Light theme sample pass for homepage only: white cards with soft warm gradients */
html[data-theme="light"] body.home-page {
  --home-white: #ffffff;
  --home-warm: #fff3ee;
  --home-warm-2: #f8efe4;
  --home-line: rgba(143, 60, 34, .12);
  --home-line-strong: rgba(143, 60, 34, .20);
  background: #FFFFFF;
}

html[data-theme="light"] .home-page .hero {
  background: transparent;
}

html[data-theme="light"] .home-page .coffee-match,
html[data-theme="light"] .home-page .section-panel,
html[data-theme="light"] .home-page .fresh-panel,
html[data-theme="light"] .home-page .popular-panel,
html[data-theme="light"] .home-page .nearby-panel {
  border-color: var(--home-line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 58%, rgba(255,248,239,.92) 100%);
  box-shadow: 0 16px 38px rgba(96, 62, 33, .08), inset 0 1px 0 rgba(255,255,255,.95);
}

html[data-theme="light"] .home-page .category-tile,
html[data-theme="light"] .home-page .product-card,
html[data-theme="light"] .home-page .popular-item,
html[data-theme="light"] .home-page .nearby-card {
  border-color: var(--home-line);
  background:
    linear-gradient(150deg, #fff 0%, #fff 64%, #fff7ec 100%);
  box-shadow: 0 10px 24px rgba(96, 62, 33, .055);
}

html[data-theme="light"] .home-page .category-tile:hover,
html[data-theme="light"] .home-page .product-card:hover,
html[data-theme="light"] .home-page .popular-item:hover,
html[data-theme="light"] .home-page .nearby-card:hover {
  border-color: var(--home-line-strong);
  background:
    linear-gradient(150deg, #fff 0%, #fffaf4 54%, #f8efe4 100%);
  box-shadow: 0 16px 34px rgba(96, 62, 33, .10);
}

html[data-theme="light"] .home-page .section-panel::before,
html[data-theme="light"] .home-page .fresh-panel::before,
html[data-theme="light"] .home-page .popular-panel::before,
html[data-theme="light"] .home-page .nearby-panel::before,
html[data-theme="light"] .home-page .coffee-match::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(193, 90, 56, .045), transparent),
    linear-gradient(180deg, rgba(255,255,255,.40), transparent 38%);
}

html[data-theme="light"] .home-page .coffee-match,
html[data-theme="light"] .home-page .section-panel,
html[data-theme="light"] .home-page .fresh-panel,
html[data-theme="light"] .home-page .popular-panel,
html[data-theme="light"] .home-page .nearby-panel {
  position: relative;
}

html[data-theme="light"] .home-page .product-card img {
  filter: saturate(.96) contrast(1.01) brightness(.98);
}

.home-page .fresh-panel .product-card__media {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .fresh-panel .product-card__media::after {
  content: none;
}

.home-page .fresh-panel .product-card__media img, .home-page .fresh-panel .product-card__media a img {
  width: 100%;
  height: 100%;
  /*border-radius: inherit;*/
  object-fit: cover;
  object-position: center;
  filter: none;
  box-shadow: none;
}

html[data-theme="light"] .home-page .popular-item__rank {
  border-color: rgba(193, 90, 56, .16);
  background: linear-gradient(145deg, #fff3ee, #fff);
  color: var(--accent-strong);
}

/* Light app background foundation: one continuous white page canvas */
html[data-theme="light"] {
  background: #FFFFFF;
  --app-light-canvas: #FFFFFF;
  --app-light-top-wash: transparent;
}

html[data-theme="light"] body.app-page {
  position: relative;
  background: var(--app-light-canvas);
  background-attachment: scroll;
}

html[data-theme="light"] body.app-page:not(.home-page)::before {
  content: none;
  position: absolute;
  z-index: 0;
  inset: -190px -12vw auto -12vw;
  height: 820px;
  pointer-events: none;
  background: var(--app-light-top-wash);
}

html[data-theme="light"] body.app-page:not(.home-page) > #app-header,
html[data-theme="light"] body.app-page:not(.home-page) > main,
html[data-theme="light"] body.app-page:not(.home-page) > #app-footer {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .app-page .site-header,
html[data-theme="light"] .app-page main,
html[data-theme="light"] .app-page .content,
html[data-theme="light"] .home-page .hero,
html[data-theme="light"] .home-page .category-strip,
html[data-theme="light"] .home-page .homepage-grid {
  background: transparent;
}

html[data-theme="light"] .home-page .hero::before {
  inset: -128px 0 auto 0;
  height: 620px;
  background: none;
}

html[data-theme="light"] .home-page .section-panel,
html[data-theme="light"] .home-page .fresh-panel,
html[data-theme="light"] .home-page .popular-panel,
html[data-theme="light"] .home-page .nearby-panel,
html[data-theme="light"] .home-page .coffee-match {
  background:
    linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 62%, rgba(255,249,241,.84) 100%);
}

/* Light homepage refinements: stronger hero wash, single panel background layer */
html[data-theme="light"] .home-page .hero::before {
  inset: -190px -12vw auto -12vw;
  height: 820px;
  background: none;
  content: none;
}

html[data-theme="light"] .home-page .section-panel::before,
html[data-theme="light"] .home-page .fresh-panel::before,
html[data-theme="light"] .home-page .popular-panel::before,
html[data-theme="light"] .home-page .nearby-panel::before,
html[data-theme="light"] .home-page .coffee-match::before {
  content: none;
}

html[data-theme="light"] .home-page .coffee-match,
html[data-theme="light"] .home-page .section-panel,
html[data-theme="light"] .home-page .fresh-panel,
html[data-theme="light"] .home-page .popular-panel,
html[data-theme="light"] .home-page .nearby-panel {
  overflow: hidden;
  background-clip: padding-box;
}
