/*
 * «کوچه» — Kucheh Coffee Roasters. A fictional shop with its own identity:
 * Tehran alley brick, turquoise tile, espresso ink on cream paper, and the
 * Persian arch (طاق) as the frame every picture sits in. Lalezar carries the
 * old-shop-sign voice; Vazirmatn does the reading.
 *
 * Shares nothing with the Rayachat app on purpose — no token, font or class
 * name — so the widget is tested against a stylesheet it has never seen.
 */

:root {
  --ink: #2b1d16;
  --ink-soft: #6b5548;
  --ink-faint: #9d8b7d;
  --paper: #f7f0e5;
  --paper-deep: #efe3d1;
  --card: #fffaf2;
  --line: #e4d6c1;
  --brick: #b4532a;
  --brick-deep: #8f3d1c;
  --tile: #17706e;
  --tile-deep: #0e5452;
  --saffron: #e3a42b;
  --display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
  --body: 'Vazirmatn', Tahoma, sans-serif;
  --radius: 18px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgba(43, 29, 22, 0.06), 0 18px 40px -24px rgba(43, 29, 22, 0.35);
  /* Brick bond, drawn once and tiled. */
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cg fill='none' stroke='%23b4532a' stroke-opacity='.13' stroke-width='1.5'%3E%3Cpath d='M0 .75h64M0 16.75h64M32 .75v16M.75 16.75v16M64 16.75v16'/%3E%3C/g%3E%3C/svg%3E");
  /* An eight-pointed tile star, for the turquoise band. */
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.1' stroke-width='1.4'%3E%3Cpath d='M36 8l7 15 15-7-7 15 15 7-15 7 7 15-15-7-7 15-7-15-15 7 7-15-15-7 15-7-7-15 15 7z'/%3E%3Ccircle cx='36' cy='36' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Broad theme rules of the kind real shop themes ship. They are here so that
   anything leaking out of the widget's iframe would be visibly wrecked. */
div {
  letter-spacing: 0.2px;
}
button {
  font-family: inherit;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Components set their own display; `hidden` still has to win. */
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 3px;
}

/* ─────────── harness bar (not part of the shop) ─────────── */

.dev-bar {
  background: #16110e;
  color: #cfc4b8;
  font-size: 12.5px;
  line-height: 1.6;
}
.dev-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}
.dev-tag {
  font-weight: 700;
  color: #fff;
  background: #3b2d25;
  border-radius: 6px;
  padding: 1px 8px;
}
.dev-state {
  flex: 1;
  min-width: 0;
}
.dev-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 240px;
}
.dev-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: #fff;
  background: #2a211c;
  border: 1px solid #4a3b32;
  border-radius: 6px;
  padding: 4px 10px;
}
.dev-form button,
.dev-toggle {
  font: inherit;
  color: #16110e;
  background: #e3a42b;
  border: 0;
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
}
.dev-toggle {
  color: #cfc4b8;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────── announcement + header ─────────── */

.announce {
  background: var(--brick);
  color: #fff3e6;
  text-align: center;
  font-size: 13px;
  padding: 7px var(--gutter);
}
.announce strong {
  color: #ffe2a6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 240, 229, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brick);
}
.logo-type {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-type b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
}
.logo-type small {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}
.logo-light .logo-type b {
  color: var(--paper);
}
.logo-light .logo-type small {
  color: #bfae9f;
}
.logo-light {
  color: var(--saffron);
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-inline-start: 18px;
}
.main-nav a,
.mobile-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover {
  background: var(--paper-deep);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-count {
  position: absolute;
  top: 3px;
  inset-inline-end: 1px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brick);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.menu-btn {
  display: none;
}
.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 8px 0 14px;
}
.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  padding: 10px 0;
  font-size: 16px;
  border-bottom: 1px dashed var(--line);
}

/* ─────────── buttons, labels, shared shapes ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 15px/1 var(--body);
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 26px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn-primary {
  background: var(--brick);
  color: #fff8ef;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--tile-deep);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.4px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* The Persian arch: a full semicircle on top, gentle corners below. */
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.bricks {
  background-image: var(--bricks);
}

/* ─────────── hero ─────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bricks), var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 72px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.2;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brick);
}
.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
}
.hero-meta b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink);
}
.hero-meta span {
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-art {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
}
.hero-arch {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--tile);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
  place-items: end center;
  padding: 0 12% 9%;
  overflow: hidden;
}
.hero-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4%;
  width: 100%;
}
.hero-scene .bag {
  width: 60%;
}
.hero-scene .cup {
  width: 34%;
  margin-bottom: 1%;
}
.hero-arch::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 13%;
  background: var(--tile-deep);
}
.hero-arch {
  position: relative;
}
.hero-scene {
  z-index: 1;
}
.storefront {
  width: 100%;
  display: block;
}
.stamp {
  position: absolute;
  z-index: 2;
  top: -22px;
  inset-inline-start: -30px;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  transform: rotate(-10deg);
}
.stamp-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 24s linear infinite;
}
.stamp-text {
  position: relative;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─────────── sections ─────────── */

.section {
  padding: 88px 0;
}
.section-tight {
  padding: 56px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 8px;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: 6px;
}
.link-arrow {
  font-weight: 700;
  color: var(--brick);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

.usp {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.usp-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 26px 18px;
  border-inline-start: 1px dashed var(--line);
}
.usp-item:first-child {
  border-inline-start: 0;
}
.usp-item svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.usp-item b {
  display: block;
  font-size: 15px;
}
.usp-item span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ─────────── product cards ─────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 5;
  padding: 22% 18% 8%;
  background: var(--tint, var(--paper-deep));
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s;
}
.product-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bricks);
  opacity: 0.7;
}
.product-media .bag {
  position: relative;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}
.product-card:hover .bag {
  transform: translateY(-8px) rotate(-2deg);
}
.badge {
  position: absolute;
  top: 18%;
  inset-inline-start: 10px;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 10px;
  transform: rotate(-4deg);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 14px;
}
.product-origin {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.product-body h3 {
  font-size: 22px;
  margin: 2px 0 8px;
}
.product-body h3 a {
  text-decoration: none;
}
.product-body h3 a:hover {
  color: var(--brick);
}
.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.notes span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1px 10px;
}
.roast {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.roast svg {
  width: 10px;
  height: 14px;
  fill: transparent;
  stroke: var(--ink-soft);
  stroke-width: 1.1;
}
.roast svg.on {
  fill: var(--ink);
  stroke: var(--ink);
}
.roast svg.on path {
  stroke: var(--paper);
}
.roast svg path {
  fill: none;
}
.roast-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-inline-start: 6px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.price {
  font-weight: 800;
  font-size: 16px;
}
.price small {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 12px;
}
.add-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}
.add-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.add-btn:hover {
  background: var(--brick);
  border-color: var(--brick);
  color: #fff;
}
.add-btn:active {
  transform: scale(0.92);
}

/* ─────────── process steps ─────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step, persian);
  position: absolute;
  top: -26px;
  inset-inline-start: 18px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 28px;
  color: var(--paper);
  background: var(--brick);
  border-radius: 50%;
  border: 3px solid var(--paper);
}
.step h3 {
  font-size: 21px;
  margin: 12px 0 6px;
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ─────────── subscription band ─────────── */

.tile-band {
  background: var(--girih), var(--tile);
  color: #eaf5f3;
}
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.tile-band h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  color: #fff;
  margin: 10px 0 14px;
}
.tile-band .eyebrow {
  color: var(--saffron);
}
.tile-band p {
  color: #c7e3df;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.plan {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.plan.featured {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-10px);
  box-shadow: 8px 8px 0 var(--tile-deep);
}
.plan.featured p {
  color: var(--ink-soft);
}
.plan b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
}
.plan span {
  font-size: 13px;
}
.plan .off {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--saffron);
  color: var(--ink);
  border-radius: 99px;
  padding: 1px 10px;
}

/* ─────────── brew guide teasers ─────────── */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.guide-card svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-card h3 {
  font-size: 24px;
}
.guide-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.spec-row b {
  color: var(--ink);
}

/* ─────────── testimonials ─────────── */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 26px 24px;
  border: 1px solid var(--line);
}
.quote::before {
  content: '«';
  position: absolute;
  top: -8px;
  inset-inline-start: 20px;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  color: var(--brick);
}
.quote p {
  font-size: 15.5px;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 18px;
  color: var(--paper);
  background: var(--tile);
}
.stars {
  color: var(--saffron);
  letter-spacing: 2px;
}

/* ─────────── café strip ─────────── */

.cafe {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 48px;
  overflow: hidden;
}
.cafe h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 10px 0 12px;
}
.cafe p {
  color: #cdbcaa;
}
.cafe .eyebrow {
  color: var(--saffron);
}
.cafe-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}
.cafe-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cafe-facts svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--saffron);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────── newsletter ─────────── */

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border: 2px dashed var(--brick);
  border-radius: 28px;
  padding: 36px 40px;
}
.newsletter h2 {
  font-size: 32px;
}
.newsletter p {
  color: var(--ink-soft);
}
.newsletter form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}

.field {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.field:focus {
  outline: none;
  border-color: var(--ink);
}
textarea.field {
  resize: vertical;
  min-height: 130px;
}

/* ─────────── footer ─────────── */

.site-footer {
  background: #1f1510;
  color: #cdbcaa;
  margin-top: 88px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 44px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 38ch;
}
.site-footer h4 {
  font-size: 19px;
  color: var(--paper);
  margin-bottom: 14px;
}
.site-footer a {
  display: block;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--saffron);
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-line svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--saffron);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #3a2c24;
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 12.5px;
  color: #8f7e70;
}

/* ─────────── inner pages ─────────── */

.page-hero {
  background: var(--bricks), var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 48px;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  margin: 8px 0 8px;
}
.page-hero p {
  color: var(--ink-soft);
  max-width: 60ch;
}
.crumbs {
  font-size: 13px;
  color: var(--ink-faint);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--brick);
}

/* shop */
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  font: 500 14px/1 var(--body);
  color: var(--ink-soft);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.toolbar-end {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-inline-start: auto;
}
.search-field {
  width: 230px;
  padding: 9px 16px;
  border-radius: 99px;
}
.select {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 9px 16px;
}
.result-count {
  font-size: 13px;
  color: var(--ink-faint);
}
.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
}
.empty b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
}

/* product detail */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pdp-media {
  position: sticky;
  top: 100px;
}
.pdp-arch {
  display: grid;
  place-items: end center;
  aspect-ratio: 1 / 1.08;
  padding: 16% 24% 7%;
  background: var(--bricks), var(--tint);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.pdp-arch .bag-lg {
  width: 100%;
}
.pdp-info h1 {
  font-size: clamp(38px, 4.4vw, 54px);
  margin: 6px 0 10px;
}
.pdp-desc {
  font-size: 17px;
  color: var(--ink-soft);
}
.pdp-price {
  font-family: var(--display);
  font-size: 34px;
  margin: 22px 0 6px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 8px;
  font-size: 14.5px;
}
.spec-table th,
.spec-table td {
  text-align: start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-table th {
  width: 34%;
  font-weight: 500;
  color: var(--ink-soft);
}
.option-group {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.option-group legend {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-block;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pill input:focus-visible + span {
  outline: 2px solid var(--tile);
  outline-offset: 2px;
}
.buy-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.buy-row .btn {
  flex: 1;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 99px;
  overflow: hidden;
}
.stepper button {
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
}
.stepper button:hover {
  background: var(--paper-deep);
}
.stepper output {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
}
.ship-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.ship-note svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--tile);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.accordion {
  margin-top: 30px;
  border-top: 2px solid var(--ink);
}
.accordion details {
  border-bottom: 1px solid var(--line);
}
.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--brick);
  transition: transform 0.2s;
}
.accordion details[open] summary::after {
  transform: rotate(45deg);
}
.accordion details > div {
  padding: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}
.accordion ol,
.accordion ul {
  margin: 0;
  padding-inline-start: 20px;
}

/* brew guides */
.method {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  padding: 48px 0;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 100px;
}
.method:last-child {
  border-bottom: 0;
}
.method-card {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.method-card svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.method-card h2 {
  font-size: 32px;
  margin: 10px 0 12px;
}
.method-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}
.method-card dt {
  color: var(--ink-soft);
}
.method-card dd {
  margin: 0;
  font-weight: 700;
}
.method-steps {
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.method-steps li {
  position: relative;
  padding-inline-start: 56px;
  min-height: 40px;
}
.method-steps li::before {
  counter-increment: s;
  content: counter(s, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 19px;
}
.method-tip {
  margin-top: 22px;
  background: var(--paper-deep);
  border-inline-start: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
}
.method-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* about */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-art {
  aspect-ratio: 4 / 5;
  background: var(--bricks), var(--brick);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.story h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 10px 0 18px;
}
.story p + p {
  margin-top: 14px;
}
.story p {
  color: var(--ink-soft);
  font-size: 16.5px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.timeline li {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}
.timeline b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  color: var(--brick);
  display: block;
  line-height: 1.2;
}
.timeline p {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.value h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.value p {
  color: var(--ink-soft);
  font-size: 15px;
}
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.member-photo {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 64px;
  color: var(--paper);
  background: var(--bricks), var(--c, var(--tile));
}
.member h3 {
  font-size: 22px;
  margin-top: 12px;
}
.member p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.branches {
  display: grid;
  gap: 18px;
}
.branch {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.map {
  border-radius: 14px;
  background: #e9dcc7;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.branch h3 {
  font-size: 24px;
}
.branch ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.branch li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.branch li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  fill: none;
  stroke: var(--brick);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 8px 8px 0 var(--ink);
}
.form-card h2 {
  font-size: 30px;
  margin-bottom: 6px;
}
.form-card > p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row label {
  font-size: 13.5px;
  font-weight: 700;
}
.form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-ok {
  background: #e3f1ee;
  color: var(--tile-deep);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* cart */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-thumb {
  display: grid;
  place-items: end center;
  aspect-ratio: 4 / 5;
  padding: 16% 14% 6%;
  background: var(--tint);
}
.cart-item h3 {
  font-size: 21px;
}
.cart-item h3 a {
  text-decoration: none;
}
.cart-item .meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.cart-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cart-end .stepper button {
  width: 36px;
  height: 38px;
  font-size: 18px;
}
.remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink-faint);
  cursor: pointer;
}
.remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.remove:hover {
  color: var(--brick);
}
.summary {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 8px 8px 0 var(--ink);
}
.summary h2 {
  font-size: 28px;
  margin-bottom: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.summary-total {
  border-top: 2px dashed var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-weight: 800;
  font-size: 18px;
}
.progress {
  height: 8px;
  border-radius: 99px;
  background: var(--paper-deep);
  overflow: hidden;
  margin: 10px 0 4px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--tile);
  border-radius: 99px;
}
.summary small {
  display: block;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.summary .btn {
  width: 100%;
  margin-top: 18px;
}

/* ─────────── toast ─────────── */

.toast {
  position: fixed;
  top: 92px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  border-radius: 99px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2);
}
.toast a {
  background: var(--saffron);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 99px;
  padding: 4px 14px;
  white-space: nowrap;
}
.toast.out {
  opacity: 0;
  transition: opacity 0.3s;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}

/* ─────────── responsive ─────────── */

@media (max-width: 1060px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps,
  .timeline,
  .team {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sub-grid,
  .cafe {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
  }
  .main-nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .header-row {
    min-height: 64px;
  }
  .hero-grid,
  .pdp,
  .story,
  .contact-grid,
  .cart-grid,
  .method {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding-top: 40px;
    gap: 56px;
  }
  .hero-art {
    width: min(340px, 86%);
  }
  .pdp-media,
  .method-card,
  .summary {
    position: static;
  }
  .usp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .usp-item:nth-child(3) {
    border-inline-start: 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .guide-grid,
  .quote-grid,
  .values {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .plan.featured {
    transform: none;
  }
  .section {
    padding: 64px 0;
  }
  .cafe {
    padding: 30px 22px;
  }
  .toolbar-end {
    margin-inline-start: 0;
    width: 100%;
  }
  .search-field {
    flex: 1;
    width: auto;
  }
  .branch {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-body h3 {
    font-size: 19px;
  }
  .notes span:nth-child(3) {
    display: none;
  }
  .footer-grid,
  .form-2 {
    grid-template-columns: 1fr;
  }
  .newsletter {
    padding: 26px 20px;
  }
  .newsletter form {
    flex-direction: column;
  }
  .stamp {
    width: 96px;
    height: 96px;
    inset-inline-start: -12px;
  }
  .stamp-text {
    font-size: 14px;
  }
  .cart-item {
    grid-template-columns: 76px 1fr;
  }
  .cart-end {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .toast {
    top: 76px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
