/* Yemen Herbs. Sana'a at dusk: burnt brick, white gypsum friezes, stained-glass fanlights. */

@font-face { font-family: Plex; src: url(/fonts/plex-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Plex; src: url(/fonts/plex-600-latin.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Plex; src: url(/fonts/plex-400-arabic.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Plex; src: url(/fonts/plex-600-arabic.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Young Serif"; src: url(/fonts/young-serif-400-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Aref Ruqaa"; src: url(/fonts/aref-ruqaa-700-arabic.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --brick: #4B2617; --ink: #2A1A12; --muted: #6E5E55; --line: #E5DBD3; --edge: #8E7F76;
  --leaf: #1E5A3A; --leaf-d: #17472E; --honey: #E0A02A; --sand: #EFE3D0; --tint: #FAF6F0; --paper: #fff;
  --on-brick: #F1E4D8; --ruby: #B8322C; --lapis: #2D5DA6; --emerald: #2F8052; --danger: #A12820;
  --display: "Young Serif", Georgia, serif; --body: Plex, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 24px);
}
:root:lang(ar) { --display: "Aref Ruqaa", Plex, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
:lang(ar) body { line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; border-radius: 4px; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
:lang(ar) :is(h1, h2) { font-weight: 700; line-height: 1.35; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: 1288px; margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 20; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Pages morph into each other instead of flashing. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .28s; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; font: 400 24px/1 var(--display); white-space: nowrap; }
:lang(ar) .logo { font-weight: 700; font-size: 26px; line-height: 1.3; }
.logo:hover { text-decoration: none; }
.mark { width: 40px; height: 20px; border: 2px solid var(--brick); border-radius: 20px 20px 0 0; background: radial-gradient(circle at 50% 100%, var(--honey) 0 5px, var(--brick) 5px 7px, transparent 7px), conic-gradient(from 270deg at 50% 100%, var(--ruby) 0 34deg, var(--brick) 0 36deg, var(--honey) 0 70deg, var(--brick) 0 72deg, var(--emerald) 0 106deg, var(--brick) 0 108deg, var(--lapis) 0 142deg, var(--brick) 0 144deg, var(--ruby) 0 180deg, transparent 0); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.search { display: none; position: relative; }
.search input { width: 280px; height: 44px; padding-inline: 18px 46px; border: 1.5px solid var(--edge); border-radius: 999px; background: #fff; }
.search .icon { position: absolute; inset-inline-end: 0; top: 0; }
.lang { min-height: 44px; padding-inline: 10px; display: grid; place-items: center; font: 600 15px system-ui, sans-serif; }
.cart-link { min-width: 44px; min-height: 44px; padding-inline: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; }
.cart-link:hover { text-decoration: none; background: var(--tint); }
.cart-link .t { display: none; }
.cart-link .n { min-width: 22px; height: 22px; padding-inline: 6px; display: grid; place-items: center; border-radius: 11px; background: var(--leaf); color: #fff; font-size: 13px; line-height: 1; }
.cart-link .n[hidden] { display: none; }
.cart-link .n.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (min-width: 800px) {
  .search { display: block; }
  .search-link { display: none; }
  .cart-link { padding-inline: 16px; }
  .cart-link .t { display: inline; }
}
.cats { display: flex; gap: 0 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 15px; font-weight: 600; }
.cats::-webkit-scrollbar { display: none; }
.cats a { min-height: 44px; display: flex; align-items: center; }
.cats a[aria-current] { color: var(--leaf); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }

/* Brick wall, gypsum frieze, fanlight windows */
.brick { background: var(--brick) repeating-linear-gradient(0deg, rgb(255 255 255 / .045) 0 1px, transparent 1px 16px); color: #fff; }
.frieze { height: 30px; background: linear-gradient(#fff, #fff) 0 0 / 100% 3px no-repeat, conic-gradient(from 135deg at 50% 0, #fff 90deg, transparent 0) 0 8px / 28px 14px repeat-x, linear-gradient(#fff, #fff) 0 100% / 100% 3px no-repeat; }
.hero { display: grid; gap: clamp(20px, 3vw, 36px); padding-block: clamp(36px, 5vw, 60px) clamp(32px, 5vw, 56px); }
.hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.hero h1 { flex: 1 1 520px; max-width: 800px; font-size: clamp(2.75rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.01em; }
:lang(ar) .hero h1 { font-size: clamp(4.25rem, 6vw, 5.2rem); line-height: 1.2; letter-spacing: 0; }
.hero-side { flex: 0 1 380px; display: grid; gap: 22px; justify-items: start; }
.hero-side p { font-size: clamp(17px, 1.5vw, 19px); color: var(--on-brick); }
.windows { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 26px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 30px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
.windows::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .windows { justify-content: space-between; } }
.win { flex: 0 0 152px; display: grid; gap: 10px; color: #fff; scroll-snap-align: start; }
.win:hover { text-decoration: none; }
.fan { height: 76px; border: 4px solid #fff; border-radius: 76px 76px 0 0; box-shadow: 0 0 30px rgb(224 160 42 / .35); --a: var(--ruby); --b: var(--honey); --c: var(--emerald); --d: var(--lapis);
  background: radial-gradient(circle at 50% 100%, var(--d) 0 22px, #fff 22px 26px, transparent 26px), conic-gradient(from 270deg at 50% 100%, var(--a) 0 24deg, #fff 0 25.7deg, var(--b) 0 49.7deg, #fff 0 51.4deg, var(--c) 0 75.4deg, #fff 0 77.1deg, var(--d) 0 101.1deg, #fff 0 102.9deg, var(--c) 0 126.9deg, #fff 0 128.6deg, var(--b) 0 152.6deg, #fff 0 154.3deg, var(--a) 0 180deg, transparent 0);
  animation: lit 1.1s ease-out both; animation-delay: calc(var(--i, 0) * 120ms + 200ms); transition: box-shadow .25s; }
.win:nth-child(4n+2) .fan { --a: var(--lapis); --b: var(--emerald); --c: var(--honey); --d: var(--ruby); }
.win:nth-child(4n+3) .fan { --a: var(--honey); --b: var(--ruby); --c: var(--lapis); --d: var(--emerald); }
.win:nth-child(4n+4) .fan { --a: var(--emerald); --b: var(--lapis); --c: var(--ruby); --d: var(--honey); }
.win:hover .fan, .win:focus-visible .fan { box-shadow: 0 0 46px rgb(224 160 42 / .7); }
/* The windows light up one after another. Only the glow animates, so the first paint is already complete. */
@keyframes lit { from { box-shadow: 0 0 0 rgb(224 160 42 / 0); filter: brightness(.86); } }
.win img { width: 152px; height: 230px; object-fit: cover; border: 4px solid #fff; }
.win:nth-child(even) img { height: 196px; }
.win:nth-child(4n+3) img { height: 250px; }
.win-label { min-height: 44px; font-size: 15px; font-weight: 600; line-height: 1.35; text-align: center; }
:lang(ar) .win-label { line-height: 1.5; min-height: 48px; }

/* Buttons */
.btn { min-height: 52px; padding-inline: 28px; display: inline-grid; place-items: center; border: 0; border-radius: 999px; font: 600 17px/1.2 var(--body); text-align: center; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: #EBB145; }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: var(--leaf-d); }
.btn-leaf.done { background: var(--honey); color: var(--ink); }
.btn-line { border: 1.5px solid var(--ink); background: none; color: var(--ink); }
.btn-line:hover { background: var(--tint); }
.link { font-weight: 600; color: var(--leaf); text-decoration: underline; text-underline-offset: 4px; }

/* Sections and product grid */
.sec { padding-top: clamp(48px, 7vw, 88px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(22px, 3vw, 36px); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; } }
.card { display: grid; gap: 12px; align-content: start; }
.card-img, .pdp-img, .line-img { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--sand); }
.card-img img, .pdp-img img, .line-img img, .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { display: block; background: var(--sand) radial-gradient(circle at 50% 62%, #E3D3BA 0 18%, transparent 18.5%); }
.card-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-meta > div { display: grid; gap: 2px; min-width: 0; }
.card-name { font-weight: 600; line-height: 1.3; }
:lang(ar) .card-name { line-height: 1.5; }
.card-size { font-size: 15px; color: var(--muted); }
.card-price { margin-top: 4px; font-weight: 600; }
.add-btn { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--leaf); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.add-btn:hover { background: var(--leaf-d); }
.add-btn:active { transform: scale(.9); }
.add-btn.done { background: var(--honey); color: var(--ink); }
.sold { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Honey list and the how-it-works steps */
.duo { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 72px; }
.duo > .pdp-img { flex: 1 1 360px; max-width: 560px; }
.duo > div { flex: 1 1 360px; min-width: 0; display: grid; gap: 22px; }
.rows { display: grid; border-top: 1px solid var(--line); }
.rows a { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.rows a:hover { text-decoration: none; color: var(--leaf); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 48px; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--brick); }
.steps .num { font: 400 40px/1 var(--display); color: var(--brick); }
.steps strong { font-size: 19px; }
.steps p { color: var(--muted); }

/* Product page */
.pdp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 72px; padding-top: 12px; }
.pdp-img { flex: 1 1 380px; max-width: 580px; }
.pdp-info { flex: 1 1 380px; min-width: 0; display: grid; gap: 24px; padding-top: 4px; }
.pdp-head { display: grid; gap: 8px; justify-items: start; }
.pdp h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.05; }
:lang(ar) .pdp h1 { line-height: 1.35; }
.alt-name { font-size: 20px; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 14px; }
.price { font-size: 32px; font-weight: 600; line-height: 1; }
.desc { max-width: 54ch; }
.buy form { display: flex; flex-wrap: wrap; gap: 12px; }
.buy .btn { flex: 1 1 200px; height: 56px; }
.qty { height: 56px; display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; }
.qty button { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty input, .qty output { width: 34px; padding: 0; border: 0; background: none; text-align: center; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.qty.sm { height: 44px; }
.qty.sm button { width: 42px; height: 40px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { min-height: 56px; padding-block: 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); text-align: end; }

/* Cart, checkout, order */
.page { padding-top: clamp(20px, 4vw, 44px); }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: clamp(18px, 3vw, 30px); }
.split { display: grid; gap: 32px 64px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 380px; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line); }
.line-img { grid-row: span 2; width: 72px; }
.line-main { display: grid; gap: 2px; }
.line-total { font-weight: 600; text-align: end; white-space: nowrap; }
.line form { grid-column: 2 / -1; justify-self: start; }
.box { display: grid; gap: 14px; padding: 24px; border-radius: 10px; background: var(--tint); }
.box h2 { font-size: 1.6rem; }
.sum { display: flex; justify-content: space-between; gap: 16px; }
.sum.total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.sum small { font-size: 15px; color: var(--muted); text-align: end; }
.notice { margin-bottom: 20px; padding: 14px 16px; border-radius: 8px; background: #FFF1CC; }
.empty { display: grid; gap: 20px; justify-items: start; padding-bottom: 24px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .radios legend { font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--edge); border-radius: 10px; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 15px; color: var(--muted); }
.err { font-size: 15px; font-weight: 600; color: var(--danger); }
.radios { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.radios legend { padding: 0; margin-bottom: 6px; }
.radio { min-height: 52px; padding-inline: 16px; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--edge); border-radius: 10px; cursor: pointer; }
.radio:has(:checked) { border-color: var(--leaf); background: #F1F7F3; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--leaf); }

/* Footer */
.foot { margin-top: clamp(64px, 8vw, 104px); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; padding-block: 48px 24px; }
.foot-brand { font: 400 30px/1.2 var(--display); }
:lang(ar) .foot-brand { font-weight: 700; line-height: 1.4; }
.foot p { color: var(--on-brick); }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 32px; align-content: start; }
.foot nav a { min-height: 40px; display: flex; align-items: center; }
.foot small { display: block; padding-bottom: 28px; font-size: 14px; color: #E6D5C8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* Search field on the shop page, for phones where the header field is hidden */
.search.search-m { display: block; margin-bottom: 22px; }
.search-m input { width: 100%; }
@media (min-width: 800px) { .search.search-m { display: none; } }

/* Footer contact numbers and the product page buy block */
.foot-contact { display: grid; align-content: start; }
.foot-contact a { min-height: 40px; display: flex; align-items: center; justify-self: start; }
.buy { display: grid; gap: 16px; justify-items: start; }
.buy form { width: 100%; }

/* The row of windows curves like the wall of a round tower: windows turn away toward the edges.
   On a phone the row scrolls sideways, so each window swings flat as it passes the middle.
   Position in the row drives the angle, so nothing animates on its own and nothing can stutter. */
@keyframes bend {
  from { transform: rotateY(calc(var(--turn, 1) * 28deg)) translateZ(-50px); }
  50% { transform: none; }
  to { transform: rotateY(calc(var(--turn, 1) * -28deg)) translateZ(-50px); }
}
:dir(rtl) .win { --turn: -1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .windows { perspective: 1100px; }
    .win { animation: bend linear both; animation-timeline: view(inline); }
  }
}
