/* ============================================================
   Shema Wears — design system
   Warm ivory, espresso ink, gold thread. Tibeb as signature.
   ============================================================ */

/* ---------- Fonts (self-hosted, latin subset; SIL Open Font License) ---------- */

/* Ethiopic script. English and Oromo pages show only a few Ethiopic words (language
   switcher, footer), so they use "UI" subsets holding just those letters (a few KB);
   Amharic and Tigrinya pages use the full syllabary (see --eth-sans below).
   All four files are made from fonts-src/ by `npm run fonts`. */
@font-face {
  font-family: "Noto Sans Ethiopic UI";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-ethiopic-ui.741b35eb.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDE, U+AB01-AB2E;
}
@font-face {
  font-family: "Noto Serif Ethiopic UI";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-ethiopic-ui.db1dbb30.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDE, U+AB01-AB2E;
}
@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-ethiopic-full.105c0fd6.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDE, U+AB01-AB2E;
}
@font-face {
  font-family: "Noto Serif Ethiopic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/noto-serif-ethiopic-full.d2d7ecaa.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDE, U+AB01-AB2E;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond.d80df8ff.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-italic.e48e5802.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/fonts/jost.7726a5cd.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #2B211A;
  --ink-soft: #4A3A2C;
  --muted: #6B5B49;
  --paper: #FAF6EF;
  --sand: #F0E7D8;
  --sand-deep: #E6D9C2;
  --card: #FFFDF8;
  --gold: #B98A2F;
  --gold-ink: #86621F; /* gold for text & buttons — passes WCAG AA on ivory */
  --gold-soft: #D9B25F;
  --terra: #A3502E;
  --tibeb-green: #2F7A4D;
  --tibeb-red: #B33A3A;
  --tibeb-blue: #2B4C8C;
  --line: #E3D8C4;

  --eth-sans: "Noto Sans Ethiopic UI";
  --eth-serif: "Noto Serif Ethiopic UI";
  --font-display: "Cormorant Garamond", var(--eth-serif), Georgia, "Times New Roman", serif;
  --font-body: "Jost", var(--eth-sans), "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.5rem, 5.5vw, 4.4rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.6rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(43, 33, 26, 0.09);
  --shadow-lift: 0 18px 44px rgba(43, 33, 26, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --gutter: 4vw; /* side margin of .container — scrolling rows bleed into it */
}
/* Amharic and Tigrinya pages need every Ethiopic letter: the full fonts, not the UI subsets. */
html:lang(am), html:lang(ti) {
  --eth-sans: "Noto Sans Ethiopic";
  --eth-serif: "Noto Serif Ethiopic";
}

/* Phones & small tablets: tighter vertical rhythm, smaller display type, compact header. */
@media (max-width: 820px) {
  :root {
    --space-5: 3.25rem;
    --space-6: 4.5rem;
  }
}
@media (max-width: 520px) {
  :root {
    --space-4: 2rem;
    --space-5: 2.75rem;
    --space-6: 3.5rem;
    --fs-hero: clamp(2.25rem, 10.5vw, 2.75rem);
    --fs-h2: clamp(1.6rem, 7vw, 1.875rem);
    --header-h: 60px;
    --gutter: 1rem;
  }
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%; /* no text inflation when an iPhone turns sideways */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(185, 138, 47, 0.18);
}

img, svg { max-width: 100%; display: block; }
/* The width/height attributes reserve space (no layout shift), but must not fix the
   rendered height — otherwise aspect-ratio rules are ignored and photos stretch. */
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

p { margin: 0 0 var(--space-2); }

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

::selection { background: var(--gold-soft); color: var(--ink); }

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

main { min-height: 60vh; }

/* ---------- Layout helpers ---------- */

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
@media (max-width: 520px) {
  .container { width: calc(100% - 2 * var(--gutter)); } /* a steady 16px gutter on phones */
}

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.section--sand { background: var(--sand); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.section__title { font-size: var(--fs-h2); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}

/* ---------- Tibeb divider ---------- */

.tibeb-divider {
  height: 26px;
  background-image: url("../assets/tibeb-band.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  opacity: 0.9;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 2em;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  min-height: 44px; /* comfortable tap target */
  text-align: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn--gold { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Hover effects only where there is a real pointer — on phones a tap would leave
   the button lifted / recoloured ("sticky hover"). */
@media (hover: hover) {
  .btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: #fff; transform: translateY(-2px); }
  .btn--gold:hover { background: var(--ink); border-color: var(--ink); }
  .btn--outline:hover { background: var(--ink); color: var(--paper); }
  .btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
}
.btn:active { transform: translateY(0) scale(0.98); }
@media (max-width: 520px) {
  /* slightly smaller caps so labels like "Get directions in Google Maps" fit on one line */
  .btn { font-size: 0.875rem; letter-spacing: 0.05em; padding-inline: 1.5em; }
}

.btn--sm { padding: 0.6em 1.4em; font-size: 0.85rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.text-link {
  font-weight: 500;
  color: var(--gold-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.25s;
}
@media (hover: hover) { .text-link:hover { color: var(--terra); } }

/* ---------- Announcement bar ---------- */

.topbar {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  padding: 0.55em 0;
}
.topbar strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.logo img { height: 44px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.2rem);
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4em 0;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}

@media (hover: hover) {
  .nav__link:hover { color: var(--ink); }
  .nav__link:hover::after { right: 0; }
}

.nav__link--active { color: var(--ink); font-weight: 500; }
.nav__link--active::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5em 0.75em;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
}
@media (hover: hover) { .cart-btn:hover { background: var(--sand); } }
.cart-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--terra);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.cart-count--visible { transform: scale(1); }

/* Mobile nav */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: flex; margin-right: -11px; } /* lines align with the content edge */
  .header__actions { gap: 0.25rem; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    display: none;
    /* never taller than the screen (landscape phones) — scroll inside instead */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav--open { display: flex; }
  .nav__link { display: flex; align-items: center; min-height: 50px; padding: 0.6em calc(var(--gutter) + env(safe-area-inset-left, 0px)); white-space: normal; }
  .nav__link::after { display: none; }
  .nav__link--active { background: var(--sand); box-shadow: inset 3px 0 0 var(--gold); }
}
@media (max-width: 520px) {
  .header__inner { gap: 0.75rem; }
  .logo img { height: 36px; }
  .cart-btn { padding: 0; }
}
@media (min-width: 821px) and (pointer: coarse) {
  .nav__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; } /* desktop nav on touch tablets */
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F5EDE0 0%, var(--paper) 55%, #F3E8D5 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  min-height: min(78vh, 720px);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.hero__title em {
  font-style: italic;
  color: var(--gold-ink);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-3);
}

.hero__am {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero__art img { width: 100%; height: auto; }

@media (max-width: 820px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-4); min-height: 0; }
  .hero__art { order: -1; margin-inline: -4vw; }
}
@media (max-width: 520px) {
  .hero__inner { padding-block: 1.75rem var(--space-4); gap: var(--space-3); }
  .eyebrow { letter-spacing: 0.16em; }
  .hero .eyebrow { margin-bottom: 0.75rem; }
  .hero__title { margin-bottom: 0.75rem; }
  .hero__sub { font-size: 1.0625rem; line-height: 1.6; margin-bottom: var(--space-2); }
  .hero__am { margin-bottom: var(--space-2); }
}
@media (max-width: 600px) {
  /* buttons that wrap share the row evenly (full-width when stacked) */
  .hero__actions { gap: 0.75rem; }
  .hero__actions .btn { flex: 1 1 auto; padding-inline: 1.4em; }
}

/* ---------- Category tiles ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
@media (hover: hover) {
  .cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
}

.cat-tile__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.cat-tile__label {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 0.55em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.cat-tile__label::after { content: "→"; font-family: var(--font-body); font-size: 1rem; color: var(--gold); transition: transform 0.3s var(--ease); }
@media (hover: hover) { .cat-tile:hover .cat-tile__label::after { transform: translateX(4px); } }

@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
}
@media (min-width: 640px) and (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } /* tablets: one row, as on desktop */
}
@media (max-width: 820px) {
  .cat-tile__label {
    left: 8px; right: 8px; bottom: 8px;
    padding: 0.5em 0.75em;
    gap: 0.4em;
    font-size: 1.1rem;
    line-height: 1.15;
  }
}
@media (max-width: 520px) {
  .cat-grid { gap: 0.75rem; }
}
@media (max-width: 360px) {
  .cat-tile__label { font-size: 1rem; padding-inline: 0.65em; }
}

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-3) var(--space-2);
}

.product-card { display: block; }

.product-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) { .product-card:hover .product-card__img { transform: scale(1.045); } }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
}
.badge--new { background: var(--tibeb-green); }

.quick-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(43, 33, 26, 0.92);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8em;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s;
}
.product-card:focus-visible .quick-add { opacity: 1; transform: translateY(0); }
@media (hover: hover) {
  .product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
  .quick-add:hover { background: var(--gold); }
}

@media (hover: none) {
  .quick-add { opacity: 1; transform: none; }
}

.product-card__body { padding: 0.9rem 0.25rem 0; }

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.product-card__price {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Story / editorial split ---------- */

.story__art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  width: 100%;
  height: auto;
}

.story__text .lead { margin-bottom: var(--space-3); }

@media (min-width: 521px) and (max-width: 820px) {
  .story__art { width: 100%; max-width: 520px; margin-inline: auto; } /* stacked on tablets: no 900px-tall photo */
}

/* ---------- Values ---------- */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.value__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--gold);
  font-size: 1.4rem;
}
.value__icon svg { width: 26px; height: 26px; }

.value h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.value p { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 820px) {
  .values { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  /* icon beside the text: a compact list instead of three tall cards */
  .value {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    text-align: left;
    padding: 1.1rem 1.25rem;
  }
  .value__icon { grid-row: span 2; width: 48px; height: 48px; margin: 0.15rem 0 0; }
  .value h3 { margin-bottom: 0.2rem; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding-block: var(--space-5);
}
.cta-band h2 { color: var(--paper); font-size: var(--fs-h2); }
.cta-band p { color: #C9BBA6; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: var(--space-2); }

/* ---------- Page header (interior pages) ---------- */

.page-head {
  background: var(--sand);
  padding-block: var(--space-5) var(--space-4);
  text-align: center;
}
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.4rem; }
.page-head p { color: var(--muted); max-width: 56ch; margin-inline: auto; }

@media (max-width: 520px) {
  .page-head { padding-block: 2.25rem 1.75rem; }
  .page-head h1 { font-size: clamp(1.9rem, 8.6vw, 2.3rem); }
  .page-head p { font-size: 1rem; margin-bottom: 0; }
  .page-head .eyebrow { margin-bottom: 0.6rem; }
  .lead { font-size: 1.0625rem; }
}

/* Article byline under the H1: who wrote it and when (the build adds it from the page's dates) */
.byline { color: var(--muted); font-size: var(--fs-small); margin-top: 0.5rem; }
.page-head .byline { font-size: var(--fs-small); max-width: none; margin-bottom: var(--space-2); }
.byline time, .byline__updated { white-space: nowrap; } /* a date never breaks across lines */

/* standalone links beside section titles ("View all", "@shema_wears") and in the contact
   card: full-height tap targets */
@media (max-width: 820px), (pointer: coarse) {
  .section__head { align-items: baseline; row-gap: 0.25rem; }
  .section__head .text-link,
  .contact-list .text-link,
  .review-cta__actions .text-link,
  .map-facade .text-link,
  .pdp__collection .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
}

/* ---------- Shop toolbar ---------- */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35em 1.3em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
@media (hover: hover) { .chip:hover { border-color: var(--gold); color: var(--ink); } }
.chip--active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

.sort-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
}

.shop-count { color: var(--muted); font-size: var(--fs-small); }

/* Phones & tablets: one swipeable row of chips instead of four wrapped lines.
   The row bleeds to the screen edges so chips scroll out from under the edge. */
@media (max-width: 820px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    margin: -6px calc(-1 * var(--gutter));
    padding: 6px 0 6px var(--gutter); /* room for focus rings; end space comes from ::after */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chips::after { content: ""; flex: 0 0 calc(var(--gutter) - 0.5rem); }
  .chip { flex: 0 0 auto; scroll-snap-align: start; }
  .chip--active { scroll-initial-target: nearest; } /* where supported, start scrolled to the current chip */
  .shop-toolbar { gap: 0.75rem; margin-bottom: var(--space-3); }
  .shop-toolbar > .chips { flex: 1 1 100%; min-width: 0; }
  .shop-toolbar > div { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 820px), (pointer: coarse) {
  .chip { min-height: 44px; }
  .sort-select { font-size: 1rem; min-height: 44px; } /* 16px: no zoom-on-focus in iOS Safari */
}

.empty-state {
  text-align: center;
  padding: var(--space-5) var(--space-2);
  color: var(--muted);
}
.empty-state h2, .empty-state h3 { color: var(--ink); }

/* ---------- Product detail (PDP) ---------- */

.breadcrumb {
  font-size: var(--fs-small);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}
.breadcrumb a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  /* one line; the product name (already the h1) is the part that gets an ellipsis */
  .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-block: 11px;
    margin: -11px 0 calc(var(--space-2) - 11px);
  }
}
@media (max-width: 820px), (pointer: coarse) {
  .breadcrumb a { display: inline-block; min-width: 44px; text-align: center; padding: 11px 4px; margin: -11px -4px; } /* 44px tap area */
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: start;
}

.pdp__media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}
.pdp__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.pdp__name { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 0.3rem; }
/* "See the full habesha wedding dress collection" under the name of a wedding piece */
.pdp__collection { margin: -0.25rem 0 0.75rem; font-size: var(--fs-small); }

.pdp__price {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.pdp__price s { color: var(--muted); font-size: 1.05rem; }

.pdp__short { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: var(--space-3); }

.option-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.color-dots { display: flex; gap: 0.6rem; margin-bottom: var(--space-3); }

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(43,33,26,0.15);
}

.size-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: var(--space-3); }

.size-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 0.55em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--card);
  font-size: 0.9rem;
  line-height: 1.3;
  transition: all 0.2s var(--ease);
}
@media (hover: hover) { .size-btn:hover { border-color: var(--ink); } }
.size-btn--active { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 500; }

@media (max-width: 820px) {
  /* "Custom fit" (the default) gets its own row; standard sizes share the next row evenly */
  .size-picker { max-width: 26rem; }
  .size-btn { flex: 1 1 0; min-width: 48px; padding-inline: 0.5em; font-size: 0.95rem; }
  .size-btn[data-size="Custom fit"] { flex-basis: 100%; }
  .size-picker:has(.size-btn[data-size*="year"]) .size-btn:not([data-size="Custom fit"]) { flex-basis: calc(50% - 0.25rem); } /* kids' ages: two per row */
}

.buy-row { display: flex; gap: var(--space-2); align-items: stretch; flex-wrap: wrap; margin-bottom: var(--space-3); }
@media (max-width: 820px) {
  .buy-row { flex-wrap: nowrap; gap: 0.75rem; max-width: 32rem; }
  .buy-row .btn { flex: 1 1 auto; min-width: 0; padding-inline: 1em; line-height: 1.25; } /* Add to bag fills the row */
  .buy-row .qty { flex-shrink: 0; } /* a long translated label wraps instead of squeezing − / + */
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
}
.qty__btn {
  width: 44px;
  height: 48px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  transition: background 0.2s;
  touch-action: manipulation; /* rapid taps step the quantity instead of zooming */
}
@media (hover: hover) { .qty__btn:hover { background: var(--sand); } }
.qty__btn:active { background: var(--sand); }
.qty__num { min-width: 36px; text-align: center; font-weight: 500; }

.pdp__note {
  font-size: var(--fs-small);
  color: var(--muted);
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 0.8em 1.1em;
  margin-bottom: var(--space-3);
}

.pdp__details { margin: 0 0 var(--space-3); padding: 0; list-style: none; }
.pdp__details li {
  padding: 0.65em 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.97rem;
  display: flex;
  gap: 0.6em;
}
.pdp__details li::before { content: "◆"; color: var(--gold); font-size: 0.6em; align-self: center; }

/* Tablets in portrait (700–820px): keep photos and buying options side by side */
@media (min-width: 700px) and (max-width: 820px) {
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
}
@media (max-width: 699px) {
  /* minmax(0, …): the long thumbnail strip must scroll, not widen the page */
  .pdp { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .pdp__media { position: static; }
  .pdp__name { font-size: clamp(1.75rem, 7.5vw, 2.4rem); }
  .pdp__short { font-size: 1.0625rem; }
}

/* ---------- Cart drawer ---------- */

.drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 90;
}
.drawer__overlay--visible { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 94vw);
  background: var(--paper);
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
  display: flex;
  flex-direction: column;
  padding-right: env(safe-area-inset-right, 0px);
}
/* Shadow only while open — a closed drawer's shadow would bleed in at the right edge. */
.drawer--open { transform: translateX(0); box-shadow: -18px 0 50px rgba(43, 33, 26, 0.2); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0; }

.drawer__close {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
@media (hover: hover) { .drawer__close:hover { background: var(--sand); } }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) var(--space-3); }

.drawer__empty { text-align: center; color: var(--muted); padding-top: var(--space-5); }

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item__img {
  width: 76px;
  height: 95px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--sand);
}

.cart-item__name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; line-height: 1.2; margin: 0; }
.cart-item__meta { font-size: 0.875rem; color: var(--muted); margin: 0.15rem 0 0.5rem; }
.cart-item__price { font-size: 0.9rem; font-weight: 500; margin: 0; }

/* bag quantity: a slimmer pill, but real 44px tap targets (no transform shrinking) */
.cart-item .qty__btn { width: 44px; height: 44px; font-size: 1.1rem; }
.cart-item .qty__num { min-width: 26px; }

.cart-item__remove {
  color: var(--muted);
  font-size: 1.05rem;
  width: 44px;
  height: 44px;
  margin: -6px -10px 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  transition: background 0.2s, color 0.2s;
}
@media (hover: hover) { .cart-item__remove:hover { background: #F3E1DC; color: var(--tibeb-red); } }

.drawer__footer {
  border-top: 1px solid var(--line);
  padding: var(--space-2) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--card);
}

@media (max-width: 520px) {
  .drawer__head { padding: 0.75rem 1rem 0.75rem 1.25rem; }
  .drawer__body { padding: 0.5rem 1rem; }
  .drawer__footer { padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
  /* stack name / size / price / quantity beside the photo so nothing is squeezed */
  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "img name  remove"
      "img meta  meta"
      "img price price"
      "img qty   qty";
    column-gap: 0.75rem;
    row-gap: 0;
    align-items: start;
  }
  .cart-item > div { display: contents; }
  .cart-item__img { grid-area: img; width: 64px; height: 80px; }
  .cart-item__name { grid-area: name; padding-top: 0.1rem; }
  .cart-item__meta { grid-area: meta; margin: 0.15rem 0 0.1rem; }
  .cart-item__price { grid-area: price; text-align: left; margin-bottom: 0.5rem; }
  .cart-item .qty { grid-area: qty; justify-self: start; }
  .cart-item__remove { grid-area: remove; margin: -8px -10px 0 0; }
}

.drawer__total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.drawer__hint { font-size: 0.875rem; line-height: 1.5; color: var(--muted); margin-bottom: var(--space-2); }

.drawer__footer .btn { width: 100%; }

/* ---------- Checkout ---------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-5);
  align-items: start;
}

@media (max-width: 900px) {
  .checkout { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .order-summary { order: 0; } /* form first, then summary + send buttons */
}

.field { margin-bottom: var(--space-2); }

.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field__input,
.field__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  transition: border-color 0.25s;
}
.field__input:focus, .field__textarea:focus { outline: none; border-color: var(--gold); }
.field__input[aria-invalid="true"], .field__textarea[aria-invalid="true"] { border-color: var(--tibeb-red); }
.field__error { color: var(--tibeb-red); font-size: 0.875rem; margin-top: 0.3rem; display: none; }
.field__error--visible { display: block; }
.field__textarea { min-height: 110px; resize: vertical; }
select.field__input { cursor: pointer; }
select.field__input:has(option[value=""]:checked) { color: var(--muted); } /* "Choose one" reads like a placeholder */
select.field__input option { color: var(--ink); }
/* iOS draws an empty date field collapsed and ignores width — make it behave like the others */
.field__input[type="date"] { display: block; min-width: 0; min-height: 3.2em; -webkit-appearance: none; appearance: none; }
.field__input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.order-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}

.order-summary h2 { font-size: 1.5rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0.55em 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.summary-row > span:first-child { min-width: 0; }
.summary-row > span:last-child { text-align: right; flex-shrink: 0; max-width: 50%; } /* "Price on request" stays on one line */
.summary-row--total {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.9em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.payment-note {
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: 0.9em 1.1em;
  margin-top: var(--space-2);
}

.order-message {
  width: 100%;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  background: var(--sand);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1em;
  min-height: 180px;
  margin-top: var(--space-2);
  white-space: pre-wrap;
}

@media (max-width: 520px) {
  .order-summary { padding: 1.25rem; }
  .order-summary h2 { font-size: 1.4rem; }
  .order-message { font-size: 1rem; } /* 16px: focusing it must not zoom the page on iPhone */
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
}

.contact-card h2 { font-size: 1.6rem; }

.contact-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.contact-list li {
  display: flex;
  gap: 0.8em;
  padding: 0.6em 0;
  color: var(--ink-soft);
  align-items: baseline;
}
.contact-list li strong {
  font-weight: 500;
  color: var(--ink);
  min-width: 90px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  background: var(--sand); /* placeholder while the map loads on a slow connection */
}
/* Contact page: a button stands in for Google Maps until the visitor asks for it (js/layout.js) */
.map-facade { display: grid; place-content: center; justify-items: center; gap: 0.75rem; padding: 1.5rem; text-align: center; background: var(--sand); }

@media (max-width: 520px) {
  .contact-card { padding: 1.5rem 1.25rem; }
  .contact-card h2 { font-size: 1.45rem; }
  .contact-list li { flex-direction: column; gap: 0.1rem; padding: 0.55em 0; }
  .contact-list li strong { min-width: 0; font-size: 0.8125rem; }
  .map-frame { aspect-ratio: 1 / 1; } /* a usable map on a narrow screen */
}

/* ---------- Process steps (about) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold-soft);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  /* number beside the text: half the height of a stacked card */
  .step { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.75rem; padding: 1.1rem 1.25rem; }
  .step::before { grid-row: span 2; font-size: 2rem; margin: 0; }
  .step h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 120;
  max-width: 90vw;
  text-align: center;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }
.toast strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #C9BBA6;
  margin-top: var(--space-6);
}

.footer__tibeb { height: 8px; background: linear-gradient(90deg, var(--gold) 0 25%, var(--tibeb-green) 0 50%, var(--tibeb-red) 0 75%, var(--tibeb-blue) 0 100%); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.footer__brand img { height: 46px; width: auto; margin-bottom: var(--space-2); }
.footer__brand p { font-size: 0.92rem; max-width: 34ch; }

.footer__title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-2);
}

.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.6em; }

.footer__link { font-size: 0.95rem; transition: color 0.25s; }
@media (hover: hover) { .footer__link:hover { color: var(--paper); } }

.footer__bottom {
  border-top: 1px solid rgba(201, 187, 166, 0.2);
  padding-block: var(--space-2) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: 0.875rem;
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px), (pointer: coarse) {
  /* every footer link a full 44px row (fingers, not cursors) */
  .footer__col li { margin: 0; }
  .footer__link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-block: 0.4rem; line-height: 1.35; }
  .footer__title { margin-bottom: 0.35rem; }
}
@media (min-width: 521px) and (max-width: 820px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* Shop · Help · Find us side by side */
}
@media (max-width: 520px) {
  .footer__grid { column-gap: 1rem; row-gap: var(--space-3); padding-block: var(--space-4); }
  .footer__brand img { height: 40px; }
  .footer__col:last-child { grid-column: 1 / -1; } /* "Find us": the long address gets the full width */
  .footer__bottom { flex-direction: column; gap: 0.25rem; }
}

/* ---------- Reveal animation ---------- */
/* .reveal content is visible by default. js/layout.js hides only the sections that start
   below the fold (.reveal--pending) and fades them in as they scroll into view, so a
   page without JavaScript, a failed script or a crawler never shows a blank section. */

@media screen and (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal--pending { opacity: 0; transform: translateY(24px); transition: none; } /* hide at once, fade in */
  .reveal--visible { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-0 { margin-bottom: 0; }

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

/* ============================================================
   Production additions — real photography, SEO content pages,
   product gallery, ordering channels
   ============================================================ */

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7em 1.2em;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.topbar a { color: var(--gold-soft); border-bottom: 1px solid currentColor; }

.btn--block { width: 100%; }

/* ---------- Photo hero ---------- */

.hero__photos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: var(--space-2);
}
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  background: var(--sand);
}
.hero__photo--side { margin-bottom: var(--space-5); }

@media (max-width: 820px) {
  .hero__photos { order: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .hero__photo { aspect-ratio: 3 / 4; max-height: 52vh; }
  .hero__photo--side { margin-bottom: var(--space-3); }
}
@media (max-width: 520px) {
  .hero__photos { gap: 0.75rem; }
  .hero__photo { max-height: none; }
  .hero__photo--side { margin-bottom: 1.75rem; }
}

/* ---------- Category tiles with photos ---------- */

.cat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cat-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 820px) {
  .cat-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid--3 .cat-tile:first-child { grid-column: 1 / -1; }
  .cat-grid--3 .cat-tile:first-child img { aspect-ratio: 4 / 3; object-position: center 25%; }
}

/* ---------- Product grid on phones: two across ---------- */

@media (min-width: 521px) and (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* tablets: three across, not two huge cards */
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.75rem; }
  .product-card__body { padding: 0.6rem 0.15rem 0; }
  .product-card__name { font-size: 1.05rem; line-height: 1.2; margin-bottom: 0.2rem; }
  .product-card__price { font-size: 0.875rem; }
  .product-card .badge { top: 8px; left: 8px; padding: 0.35em 0.8em; }
  .quick-add { display: none; }
}

.grid-note { text-align: center; color: var(--muted); margin-top: var(--space-4); }

/* ---------- Instagram lookbook ---------- */

.lookbook {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.lookbook__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand-deep);
}
.lookbook__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
@media (hover: hover) { .lookbook__item:hover img { transform: scale(1.05); opacity: 0.9; } }

@media (min-width: 521px) and (max-width: 820px) {
  .lookbook { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; } /* one or two rows, not four */
}
/* Phones: the Instagram and customer galleries become swipeable rows (like the TikTok row)
   instead of two 900px-tall grids — and off-screen photos are only fetched when swiped to. */
@media (max-width: 520px) {
  .lookbook {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 0 4px var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lookbook::-webkit-scrollbar { display: none; }
  .lookbook::after { content: ""; flex: 0 0 calc(var(--gutter) - 0.6rem); }
  .lookbook__item { flex: 0 0 44%; scroll-snap-align: start; }
}

/* ---------- Product page: gallery ---------- */

.pdp__gallery {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.pdp__gallery .pdp__media { position: static; }

.pdp__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.pdp__thumb {
  flex: 0 0 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--sand);
  opacity: 0.7;
  scroll-snap-align: start;
  transition: opacity 0.2s, border-color 0.2s;
}
.pdp__thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pdp__thumb--active { opacity: 1; }
@media (hover: hover) { .pdp__thumb:hover { opacity: 1; } }
.pdp__thumb--active { border-color: var(--gold); }

@media (max-width: 699px) {
  .pdp__gallery { position: static; }
  /* Phones: photos → thumbnails → name, price & size → the TikTok clip last,
     so the buying essentials come straight after the pictures. */
  .pdp { row-gap: 0; }
  .pdp__gallery { display: contents; }
  .pdp__media { order: 1; }
  .pdp__thumbs { order: 2; }
  .pdp__info { order: 3; margin-top: var(--space-3); min-width: 0; }
  .pdp__video { order: 4; }
  /* the thumbnail strip runs to the screen edges and snaps */
  .pdp__thumbs {
    margin-inline: calc(-1 * var(--gutter));
    padding: 3px 0 3px var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pdp__thumbs::-webkit-scrollbar { display: none; }
  .pdp__thumbs::after { content: ""; flex: 0 0 calc(var(--gutter) - 0.6rem); }
}
@media (max-width: 520px) {
  .pdp__thumbs { gap: 0.5rem; margin-top: 0.6rem; }
  .pdp__thumb { flex-basis: 62px; }
  .section--tight:has(> .container > .pdp) { padding-top: 0.75rem; } /* product pages start right under the header */
}

.badge--inline { position: static; display: inline-block; margin-bottom: 0.75rem; }

.option-label__link {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
@media (max-width: 820px), (pointer: coarse) {
  .option-label__link {
    display: inline-block;
    padding-block: 12px; margin-block: -12px; /* 44px tap height without moving the label */
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
}

.pdp__hint { font-size: 0.9rem; color: var(--muted); margin: -0.25rem 0 var(--space-2); }
.pdp__hint--error { color: var(--tibeb-red); font-weight: 500; }
.pdp__or { margin: var(--space-3) 0 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.pdp__desc { margin-top: var(--space-3); color: var(--ink-soft); }
.pdp__credit { margin-top: var(--space-3); font-size: 0.875rem; font-style: italic; color: var(--muted); }

/* ---------- Order channels (Instagram / WhatsApp / phone) ---------- */

.order-channels { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.order-channels .btn { padding: 0.7em 1.3em; font-size: 0.875rem; }
@media (max-width: 600px) {
  .order-channels .btn { flex: 1 1 auto; padding-inline: 1em; } /* rows fill evenly; full width when stacked */
}

/* ---------- Accordions (FAQ, product info) ---------- */

.accordion {
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 2rem 0.9rem 0;
  min-height: 44px;
  position: relative;
  font-weight: 500;
  line-height: 1.4;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.accordion[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion p { color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- Long-form content (guide, FAQ, collection copy) ---------- */

.prose { max-width: 72ch; }
.container.prose { margin-inline: auto; }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin-top: var(--space-3); margin-bottom: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--space-2); }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--gold); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; line-height: 1.45; }
.prose th, .prose td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-weight: 600; color: var(--muted); }

.prose--article { font-size: 1.08rem; }

.prose__figure { margin: var(--space-4) 0; }
.prose__figure img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.prose__figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }

.toc {
  background: var(--sand);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.toc ol { margin: 0.5rem 0 0; }
.toc a { border-bottom: 1px solid var(--line); }
@media (hover: hover) { .toc a:hover { color: var(--gold); } }

.callout {
  margin-top: var(--space-5);
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}
.callout h2 { color: var(--paper); margin-top: 0; }
.callout p { color: #C9BBA6; }

.measure-list li { padding-left: 0.25rem; }

@media (max-width: 820px), (pointer: coarse) {
  /* table of contents: each entry a full-height tap target */
  .toc li { margin-bottom: 0; }
  .toc a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.3rem;
    line-height: 1.35;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: rgba(134, 98, 31, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
}
@media (max-width: 520px) {
  .prose h2 { margin-top: 2.25rem; }
  .prose h3 { margin-top: 1.5rem; }
  .prose--article { font-size: 1.0625rem; }
  .prose__figure { margin: 1.75rem 0; }
  .prose__figure figcaption { font-size: 0.875rem; }
  .toc { padding: 1.1rem 1.25rem 0.9rem; margin-bottom: 2rem; }
  .callout { padding: 2rem 1.25rem; }
  .accordion summary { padding-block: 0.85rem; }
}

/* ---------- Bag ---------- */

@media (hover: hover) { .cart-item__name a:hover { color: var(--gold); } }

/* ---------- The sisters: two portraits as a pair ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: start;
}
.duo img { aspect-ratio: 4 / 5; object-fit: cover; }
.duo img:last-child { margin-top: var(--space-5); }
.story__art .duo img { box-shadow: var(--shadow); }

@media (max-width: 520px) {
  .duo img:last-child { margin-top: var(--space-4); }
}

/* ---------- TikTok videos (click to play) ---------- */

.tiktok-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.tiktok-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  scroll-snap-align: start;
}
.tiktok-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
@media (hover: hover) { .tiktok-card:hover img { transform: scale(1.04); } }
.tiktok-card__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
}
.tiktok-card__title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 0.9rem 0.9rem;
  background: linear-gradient(transparent, rgba(20, 14, 10, 0.78));
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.35;
}
.tiktok-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Phones & tablets: the video row runs edge to edge and snaps card by card */
@media (max-width: 820px) {
  .tiktok-grid {
    display: flex;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 0 4px var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tiktok-grid::-webkit-scrollbar { display: none; }
  .tiktok-grid::after { content: ""; flex: 0 0 calc(var(--gutter) - 0.75rem); }
  .tiktok-grid .tiktok-card { flex: 0 0 31%; }
}
@media (max-width: 520px) {
  .tiktok-grid { gap: 0.6rem; }
  .tiktok-grid::after { flex-basis: calc(var(--gutter) - 0.6rem); }
  .tiktok-grid .tiktok-card { flex-basis: 60%; }
}

.pdp__video {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.pdp__video .tiktok-card { flex: 0 0 120px; }
.pdp__video .tiktok-card[data-playing] { flex-basis: 260px; }
.pdp__video p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 520px) {
  .pdp__video { gap: 1rem; padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .pdp__video .tiktok-card { flex-basis: 104px; }
  .pdp__video .tiktok-card[data-playing] { flex-basis: min(260px, 72%); }
}

/* ---------- Customers ---------- */

.lookbook--customers .lookbook__item { margin: 0; }
.testimonial {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.testimonial p { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; margin: 0 0 0.4rem; }
.testimonial footer { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) {
  .testimonial { padding: 1.1rem 1.25rem; }
  .testimonial p { font-size: 1.2rem; line-height: 1.35; }
}


/* ---------- Top bar + language switcher ---------- */

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}
.topbar__promo { margin: 0; flex: 1 1 auto; line-height: 1.5; }
.topbar__promo a[href^="tel:"] { white-space: nowrap; } /* never split the phone number */
.lang-switch { display: flex; gap: 0.15rem; flex-wrap: wrap; justify-content: center; }
.lang-switch__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.7em;
  border-radius: 999px;
  color: var(--sand);
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar a.lang-switch__item { color: var(--sand); border-bottom: 0; }
/* invisible hit area: 28px pill, 44px tall target, without a bulkier top bar */
.lang-switch__item::after { content: ""; position: absolute; inset: -8px 0; }
@media (hover: hover) { .topbar a.lang-switch__item:hover { color: var(--gold-soft); } }
.lang-switch__item--active { background: rgba(250, 246, 239, 0.14); color: var(--paper); font-weight: 500; }

@media (max-width: 820px) {
  .topbar { padding-block: 0.45rem 0.5rem; }
  .topbar__inner { justify-content: center; }
  .topbar__promo { flex-basis: 100%; text-align: center; }
}
@media (max-width: 520px) {
  .topbar { font-size: 0.8125rem; letter-spacing: 0.04em; }
  .topbar__lead { display: none; } /* "Handmade in Addis Ababa ·" — keeps the bar to two short lines */
}

/* Ethiopic script reads better a little larger and more open. */
:lang(am), :lang(ti) { letter-spacing: 0; }
html:lang(am) body, html:lang(ti) body { line-height: 1.8; }
html:lang(am) .eyebrow, html:lang(ti) .eyebrow { letter-spacing: 0.06em; }
html:lang(am) .btn, html:lang(ti) .btn, html:lang(am) .nav__link, html:lang(ti) .nav__link { letter-spacing: 0.02em; }

/* ---------- Google review call-to-action (home + contact) ---------- */
.review-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section--tight > .container > .review-cta { margin-top: 0; }
.review-cta__title { font-size: var(--fs-h3); margin: 0 0 0.5rem; }
.review-cta__text p { color: var(--muted); max-width: 52ch; margin: 0 0 var(--space-2); }
.review-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.review-cta__qr { margin: 0; text-align: center; }
.review-cta__qr img { display: block; width: 148px; height: 148px; border-radius: var(--radius-sm); }
.review-cta__qr figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: 0.4rem; max-width: 148px; }
/* On a phone the button is the way in — a QR code can't be scanned by the phone showing it. */
@media (max-width: 699px) {
  .review-cta { grid-template-columns: 1fr; padding: var(--space-3); gap: 0; }
  .review-cta__qr { display: none; }
  .review-cta .btn { width: 100%; }
}
