/* Heikal store styles
   Colors: pine green, linen cream, gold. Arabic first (RTL), English second. */

:root {
  --pine: #183D33;
  --pine-deep: #0F2B24;
  --pine-soft: #2B5446;
  --linen: #F5EFE4;
  --paper: #FBF8F2;
  --stone: #E7E2D6;
  --gold: #C9A15F;
  --gold-ink: #85622D;
  --ink: #1D2622;
  --muted: #5B6560;
  --line: #DDD5C5;
  --danger: #A23B2A;

  --display: "Aref Ruqaa", "Amiri", serif;
  --body: "Readex Pro", "Segoe UI", Tahoma, sans-serif;

  --r-hero: 28px;
  --r-tile: 22px;
  --r-card: 18px;
  --r-input: 12px;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

html[lang="en"] {
  --display: "Young Serif", Georgia, serif;
}

/* Language switch: every text exists twice, CSS shows the active one */
html[lang="ar"] [data-l="en"],
html[lang="en"] [data-l="ar"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 350;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; font-size: 18px; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--pine);
  color: var(--linen);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 12px; }

[hidden] { display: none !important; }

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

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--pine); }
h1, h2 { font-family: var(--display); letter-spacing: 0; }
html[lang="ar"] h1, html[lang="ar"] h2 { font-weight: 700; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.25; }
h3 { font-size: 21px; line-height: 1.4; font-weight: 500; }
p { margin: 0 0 1em; }
.lead { font-size: 21px; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--pine); color: var(--linen); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-cream { background: var(--linen); color: var(--pine); }
.btn-cream:hover { background: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--pine); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.text-link {
  color: var(--pine);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.text-link:hover { text-decoration-color: var(--pine); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pine);
  flex: none;
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark .wm-ar { font-family: "Aref Ruqaa", "Amiri", serif; font-weight: 700; font-size: 32px; line-height: .95; }
.wordmark .wm-en { font-family: "Young Serif", Georgia, serif; font-size: 15px; color: var(--gold-ink); letter-spacing: .02em; margin-top: 2px; }

.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.nav a:hover { background: var(--stone); }
.nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }

.tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search input {
  width: 230px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding-inline: 18px 44px;
  font-size: 17px;
}
.search input::placeholder { color: #8A8F88; }
.search input:focus { outline: none; border-color: var(--pine); }
.search button {
  position: absolute;
  inset-inline-end: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--pine);
}
.search svg { width: 19px; height: 19px; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--pine);
  text-decoration: none;
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { border-color: var(--pine); }
.icon-btn svg { width: 20px; height: 20px; }

.lang-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--pine);
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
}
.lang-btn:hover { border-color: var(--pine); }

.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--pine-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.cart-count[data-count="0"] { display: none; }

.menu-btn { display: none; }

@media (max-width: 1060px) {
  .search input { width: 170px; }
}
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav a:hover { background: transparent; }
  .search { display: none; }
  .nav .nav-search { display: flex; margin-top: 14px; }
  .nav .nav-search input { width: 100%; }
}
.nav-search { display: none; }
@media (max-width: 420px) {
  .bar { gap: 10px; }
  .wordmark .wm-ar { font-size: 28px; }
  .brand-mark { width: 38px; height: 38px; }
  .lang-btn { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 12px; }
.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 560px;
  background: var(--pine);
  border-radius: var(--r-hero);
  overflow: hidden;
  color: var(--linen);
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-family: var(--display);
  color: var(--linen);
  font-size: clamp(52px, 7.2vw, 100px);
  line-height: 1.22;
  margin-bottom: 22px;
}
html[lang="en"] .hero-title { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.08; }
.hero-title .line { display: block; }
.hero-rule {
  width: 72px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 22px;
  border: 0;
  transform-origin: left;
}
html[dir="rtl"] .hero-rule { transform-origin: right; }
.hero-sub { font-size: 20px; color: rgba(245, 239, 228, .82); max-width: 42ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-outline { color: var(--linen); border-color: rgba(245,239,228,.45); }

.hero-media { position: relative; min-height: 320px; }
.hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
}
.hero-badge {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 43, 36, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--linen);
  max-width: 240px;
  font-size: 17px;
  line-height: 1.5;
}
.hero-badge { text-decoration: none; display: block; }
.hero-badge:hover { background: rgba(15, 43, 36, .72); }
.hero-badge strong { display: block; font-weight: 500; font-size: 18px; line-height: 1.45; }
.hero-badge .price { display: block; color: var(--gold); font-size: 22px; margin-top: 4px; }

/* one page-load moment: the tagline writes itself in */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title .line:nth-child(2) { animation-delay: .15s; }
  .hero-rule { animation: grow .8s .45s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
}

@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-text { padding: 28px 22px 32px; }
  .hero-badge { inset-inline-end: 14px; bottom: 14px; padding: 12px 14px; max-width: 200px; font-size: 15px; }
  .hero-badge strong { font-size: 16px; }
  .hero-badge .price { font-size: 19px; }
}
@media (max-width: 560px) { .hero-badge { display: none; } }

/* ---------- Promise strip ---------- */
.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border-block: 1px solid var(--line);
}
.promise {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
}
.promise + .promise { border-inline-start: 1px solid var(--line); }
.promise svg { width: 30px; height: 30px; color: var(--gold-ink); flex: none; }
.promise b { display: block; font-weight: 500; color: var(--pine); font-size: 18px; line-height: 1.4; }
.promise span { font-size: 16px; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr 1fr; }
  .promise:nth-child(3) { border-inline-start: 0; }
  .promise:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .promise { padding: 16px 10px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .promise svg { width: 26px; height: 26px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 64px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  position: relative;
  display: block;
  border-radius: var(--r-tile);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  text-decoration: none;
  color: var(--linen);
  background: var(--pine-deep);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.03); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,43,36,.82), rgba(15,43,36,0) 55%);
}
.tile-label {
  position: absolute;
  inset-inline: 24px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.tile-label h3 { font-family: var(--display); color: var(--linen); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.2; font-weight: 400; }
html[lang="ar"] .tile-label h3 { font-weight: 700; }
.tile-label .tile-count { display: block; font-size: 17px; color: rgba(245,239,228,.8); }
.tile .btn { min-height: 42px; padding: 8px 18px; font-size: 17px; }
@media (max-width: 700px) {
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile-label { inset-inline: 18px; bottom: 16px; }
}

/* ---------- Product cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}
@media (max-width: 1060px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--stone);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 242, .9);
  color: var(--pine);
  font-size: 15px;
  font-weight: 500;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.card-meta { font-size: 16px; color: var(--muted); margin-bottom: 2px; }
.card-title { font-size: 19px; font-weight: 500; line-height: 1.45; margin-bottom: 12px; color: var(--ink); }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--pine); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.price { font-weight: 600; color: var(--pine); font-size: 20px; white-space: nowrap; }
.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--pine);
  color: var(--linen);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.add-btn:hover { background: var(--pine-deep); }
.add-btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .card-title { font-size: 17px; }
  .price { font-size: 18px; }
  .card-foot { flex-wrap: wrap; }
  .add-btn { width: 100%; justify-content: center; }
  .card-tag { top: 8px; inset-inline-start: 8px; font-size: 13px; padding: 2px 10px; }
}

/* "photo coming soon" placeholder */
.ph {
  position: absolute; inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 42%, rgba(201,161,95,.16), transparent 60%),
    var(--stone);
  color: var(--gold-ink);
  font-size: 16px;
  text-align: center;
  padding: 16px;
}
.ph svg { width: 64px; height: 64px; color: var(--gold); }
.product-media .ph svg { width: 120px; height: 120px; }

/* ---------- Feature split ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature.flip .feature-media { order: 2; }
.feature-media {
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 5 / 4;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text .price { display: block; font-size: 27px; margin: 18px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  transform: translateY(-2px);
}
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* ---------- How to order ---------- */
.steps-band { background: var(--pine); color: var(--linen); border-radius: var(--r-hero); padding: 32px 24px; }
@media (min-width: 760px) { .steps-band { padding: 56px; } }
.steps-band h2 { color: var(--linen); margin-bottom: 8px; }
.steps-band > p { color: rgba(245,239,228,.78); margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid rgba(201,161,95,.5); }
.steps li::before {
  content: counter(step, arabic-indic);
  display: block;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.1;
  color: var(--gold);
  margin-bottom: 8px;
}
html[lang="en"] .steps li::before { content: counter(step); }
.steps b { display: block; font-weight: 500; font-size: 21px; margin-bottom: 4px; }
.steps span { color: rgba(245,239,228,.78); font-size: 17px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(32px, 5vw, 56px) 24px; }
.page-head h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.2; }
.page-head p { margin: 10px 0 0; color: var(--muted); max-width: 62ch; }
.crumbs { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Shop toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 17px;
}
.chip:hover { border-color: var(--pine); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--linen); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--muted); }
.select, .field input, .field textarea, .field select {
  height: 44px;
  border-radius: var(--r-input);
  border: 1px solid var(--line);
  background: var(--paper);
  padding-inline: 14px;
  font-size: 17px;
  color: var(--ink);
}
.result-note { color: var(--muted); font-size: 17px; margin: -10px 0 24px; }

.empty {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-tile);
  background: var(--paper);
}
.empty h1, .empty h2 { font-size: 32px; margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ---------- Product page ---------- */
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.product-media {
  position: relative;
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--stone);
  aspect-ratio: 1 / 1;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--body); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.35; margin-bottom: 10px; }
html[lang="en"] .product-info h1 { font-family: var(--display); font-weight: 400; }
.product-info .price { display: block; font-size: 32px; margin: 6px 0 18px; }
.product-info .lead { font-size: 19px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { padding: 4px 14px; border-radius: 999px; background: var(--stone); font-size: 16px; color: var(--pine); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.buy .btn-primary { flex: 1 1 200px; }
.qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.qty button {
  width: 44px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--pine);
  border-radius: 999px;
}
.qty button svg { width: 16px; height: 16px; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.assure { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.assure li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.assure svg { width: 24px; height: 24px; color: var(--gold-ink); flex: none; }
.assure b { font-weight: 500; color: var(--pine); }
.spec { margin-top: 26px; }
.spec h2 { font-family: var(--body); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.cart-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { position: relative; width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--stone); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-size: 0; }
.cart-thumb .ph svg { width: 40px; height: 40px; }
.cart-item h3 { font-size: 18px; margin-bottom: 4px; }
.cart-item h3 a { text-decoration: none; }
.cart-item .unit { font-size: 16px; color: var(--muted); }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-side .price { font-size: 19px; }
.cart-item .qty { height: 40px; }
.cart-item .qty button { width: 36px; height: 38px; }
.remove {
  border: 0; background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px 0;
}
.remove:hover { color: var(--danger); }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-thumb { width: 76px; }
  .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.summary h2 { font-family: var(--body); font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 18px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 600; font-size: 21px; color: var(--pine); }
.free { color: var(--pine-soft); font-weight: 500; }
.order-form { display: grid; gap: 14px; margin-top: 22px; }
.order-form h3 { font-size: 19px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.field label { font-size: 16px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { height: auto; min-height: 84px; padding-block: 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(201,161,95,.35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 15px; }
.form-note { font-size: 16px; color: var(--muted); margin: 0; }
.soon {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--stone);
  font-size: 16px;
  color: var(--pine);
}
.soon svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.pay-err { color: var(--danger); }
.add-btn[disabled] { opacity: .5; cursor: not-allowed; }
.add-btn[disabled]:hover { background: var(--pine); }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* ---------- Text pages (policies, about) ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--body); font-size: 24px; font-weight: 600; margin: 36px 0 10px; line-height: 1.4; }
.prose ul { padding-inline-start: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--pine); text-decoration-color: var(--gold); text-underline-offset: 4px; }
.updated { color: var(--muted); font-size: 17px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 860px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--r-tile);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
}
.contact-card:hover { border-color: var(--pine); }
.contact-card svg { width: 28px; height: 28px; color: var(--gold-ink); flex: none; }
.contact-card b { display: block; color: var(--pine); font-weight: 600; margin-bottom: 2px; }
.contact-card span { color: var(--muted); font-size: 17px; word-break: break-word; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.faq { max-width: 860px; }
.faq details:first-child summary { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 500;
  color: var(--pine);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--gold-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--pine);
  color: rgba(245,239,228,.82);
  padding-top: 56px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer .brand { color: var(--linen); }
.site-footer .brand-mark .mk-line { stroke: var(--pine); }
.site-footer .wordmark .wm-en { color: var(--gold); }
.foot-about { margin-top: 16px; font-size: 17px; max-width: 36ch; }
.site-footer h2 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; }
.foot-links a { text-decoration: none; color: rgba(245,239,228,.86); }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  padding-inline-end: 80px;
  border-top: 1px solid rgba(201,161,95,.35);
  font-size: 16px;
}
.foot-policies { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-policies a { color: var(--linen); text-decoration: none; }
.foot-policies a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Floating WhatsApp + toast ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #1FA855;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15,43,36,.28);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #178a45; }
@media (max-width: 760px) {
  /* product and cart pages already have WhatsApp buttons; keep their buttons clear */
  body[data-page="product"] .wa-float,
  body[data-page="cart"] .wa-float { display: none; }
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 20px;
  border-radius: 16px;
  background: var(--pine-deep);
  color: var(--linen);
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(15,43,36,.3);
  transform: translate(-50%, 140%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  max-width: calc(100vw - 32px);
}
html[dir="rtl"] .toast { padding: 12px 20px 12px 14px; }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--gold); font-weight: 500; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .toast, .tile img { transition: none; }
}
