/* Shop Mythos — storefront styles. Mobile-first; logical properties for RTL. */
@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage-latin-wght.woff2") format("woff2"); font-weight: 200 800; 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; }
@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage-latin-ext-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex"; src: url("/static/fonts/readex-latin-wght.woff2") format("woff2"); font-weight: 160 700; 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; }
@font-face { font-family: "Readex"; src: url("/static/fonts/readex-latin-ext-wght.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex"; src: url("/static/fonts/readex-arabic-wght.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --ink: #1b1a17; --ink-2: #3a3833; --muted: #6b665e; --line: #e6dfd3; --line-2: #d8cfbf;
  --sand: #f6f1e9; --paper: #fffdf9; --white: #fff;
  --teal: #0f5c5b; --teal-d: #0a4241; --teal-l: #dceae6;
  --saffron: #f2b33d; --saffron-d: #d69516; --saffron-l: #fbecc9;
  --clay: #a8391f; --green: #2f7d4f; --amber: #b7791f;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgb(27 26 23 / .06), 0 8px 24px -12px rgb(27 26 23 / .18);
  --font: "Readex", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Bricolage", "Readex", system-ui, sans-serif;
  --wrap: 1240px; --gutter: 16px;
}
[dir="rtl"] { --display: "Readex", system-ui, sans-serif; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.narrow-top { padding-top: 24px; padding-bottom: 48px; }
.icon { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.flip { transform: scaleX(-1); }
[dir="rtl"] .flip { transform: none; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); }
.btn-accent { background: var(--saffron); color: var(--ink); }
.btn-accent:hover { background: var(--saffron-d); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgb(255 255 255 / .1); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.grow { flex: 1; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--teal); text-decoration: none; }
.link-more .icon { width: 18px; height: 18px; }
.link-more:hover { text-decoration: underline; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--sand); text-align: center; font-size: .82rem; padding: 7px var(--gutter); letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 253 249 / .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo links" "search search search"; align-items: center; gap: 10px 12px; padding-block: 10px; }
.mnav { grid-area: menu; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-word { font-family: "Bricolage", var(--font); font-weight: 750; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; display: inline-flex; flex-direction: column; }
.logo-word small { font: 600 .62rem/1 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.search { grid-area: search; display: flex; align-items: center; background: var(--sand); border: 1.5px solid var(--line); border-radius: 999px; padding-inline: 16px 4px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--teal); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: .95rem; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; cursor: pointer; }
.search button .icon { width: 19px; height: 19px; }
.header-links { grid-area: links; display: flex; align-items: center; gap: 4px; }
.header-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: .88rem; font-weight: 500; padding: 8px; border-radius: 10px; }
.header-links a:hover { background: var(--sand); }
.hl-track span, .hl-lang { display: none; }
.hl-cart { position: relative; }
.cart-count { position: absolute; top: 0; inset-inline-end: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--sand); }
.mnav-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 16px; display: grid; }
.mnav-panel a { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.catnav { display: none; border-top: 1px solid var(--line); }
.catnav-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.catnav a:hover, .catnav a[aria-current] { background: var(--teal-l); color: var(--teal-d); }
.catnav-promo { color: var(--clay) !important; font-weight: 600 !important; }
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(280px, 560px) 1fr; grid-template-areas: "logo search links"; gap: 24px; padding-block: 14px; }
  .mnav { display: none; }
  .header-links { justify-content: flex-end; gap: 8px; }
  .hl-track span, .hl-lang { display: inline; }
  .catnav { display: block; }
}

/* Sections */
.section { padding-block: 36px; }
@media (min-width: 768px) { .section { padding-block: 52px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.band { background: var(--paper); }
.band-promo { background: linear-gradient(180deg, var(--saffron-l), var(--sand)); }
.band-ink { background: var(--teal-d); color: var(--sand); }
.promo-banner { display: inline-block; margin: -4px 0 18px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--saffron); font-weight: 600; font-size: .9rem; }

/* Hero */
.hero { background: var(--teal); color: var(--sand); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: auto -20% -55% auto; width: 70vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(242 179 61 / .25), transparent 65%); pointer-events: none; }
[dir="rtl"] .hero::before { inset: auto auto -55% -20%; }
.hero-grid { display: grid; gap: 28px; padding-block: 36px 40px; position: relative; }
.kicker { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--saffron); margin-bottom: 14px; }
[dir="rtl"] .kicker { letter-spacing: 0; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 750; max-width: 15ch; margin-bottom: 16px; }
[dir="rtl"] .hero h1 { max-width: 20ch; }
.hero-copy p { font-size: 1.05rem; max-width: 46ch; color: rgb(246 241 233 / .85); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: rgb(246 241 233 / .85); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 19px; height: 19px; color: var(--saffron); }
.hero-art { position: relative; min-height: 300px; }
.hero-tile { position: absolute; display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .5); background: #fff; transition: transform .25s; }
.hero-tile:hover { transform: translateY(-4px) rotate(0deg) !important; }
.hero-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-tile-1 { width: 62%; inset-inline-start: 4%; top: 2%; transform: rotate(-3deg); z-index: 2; }
.hero-tile-2 { width: 40%; inset-inline-end: 2%; top: 0; transform: rotate(4deg); }
.hero-tile-3 { width: 40%; inset-inline-end: 6%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.hero-tag { position: absolute; inset-inline-start: 10px; bottom: 10px; background: var(--ink); color: var(--saffron); font-weight: 700; font-size: .85rem; padding: 5px 10px; border-radius: 999px; }
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding-block: 60px 64px; gap: 40px; }
  .hero-art { min-height: 440px; }
}

/* Trust bar */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; padding-block: 18px; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.trust-item .icon { color: var(--teal); width: 26px; height: 26px; margin-top: 2px; }
.trust-item strong { display: block; color: var(--ink); font-size: .9rem; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, 1fr); padding-block: 22px; } }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-start; min-height: 150px; padding: 16px; border-radius: var(--radius); background: var(--tile-bg); color: var(--tile-fg); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .2s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; max-width: 60%; }
.cat-tile-count { font-size: .78rem; font-weight: 500; margin-top: 4px; }
.cat-tile-img { position: absolute; width: 62%; inset-inline-end: -8%; bottom: -14%; z-index: -1; border-radius: 50%; mix-blend-mode: multiply; transition: transform .3s; }
.cat-tile:hover .cat-tile-img { transform: scale(1.06) rotate(-3deg); }
@media (min-width: 700px) { .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } .cat-tile { min-height: 190px; padding: 20px; } }

/* Product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: var(--sand); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card.is-out .card-media img { filter: grayscale(.7); opacity: .7; }
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .01em; }
.badge-promo { background: var(--clay); color: #fff; }
.badge-new { background: var(--teal); color: #fff; }
.badge-best { background: var(--saffron); color: var(--ink); }
.badge-out { background: var(--ink); color: #fff; }
.badge-lg { position: absolute; top: 14px; inset-inline-start: 14px; font-size: .9rem; padding: 6px 12px; }
.card-body { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
[dir="rtl"] .card-brand { letter-spacing: 0; }
.card-title { font-family: var(--font); font-size: .92rem; font-weight: 500; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-actions { position: relative; z-index: 2; padding: 8px 12px 12px; }
.card-actions .btn, .card-actions form { width: 100%; }
.card-low { font-size: .76rem; color: var(--amber); font-weight: 600; }
@media (min-width: 700px) { .card-body { padding: 14px 16px 4px; } .card-actions { padding: 8px 16px 16px; } .card-title { font-size: .98rem; } }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-now { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.price-old { color: var(--muted); font-size: .85rem; }
.price-pct { font-size: .78rem; font-weight: 700; color: var(--clay); }
.price-big .price-now { font-size: 1.9rem; font-family: var(--display); }
.price-big .price-old { font-size: 1.05rem; }
.price-big .price-pct { font-size: .95rem; background: #fbe3dc; padding: 2px 8px; border-radius: 999px; }

/* Why / ink band */
.why { display: grid; gap: 28px; }
.why-head p { color: rgb(246 241 233 / .75); max-width: 40ch; }
.why-grid { display: grid; gap: 16px; }
.why-item { padding: 20px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.why-item p { color: rgb(246 241 233 / .78); margin: 0; font-size: .94rem; }
.why-num { font-family: "Bricolage", var(--font); font-weight: 800; color: var(--saffron); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.why-cod { display: grid; gap: 16px; }
.why-cod > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; padding: 18px; border-radius: var(--radius); background: var(--saffron); color: var(--ink); }
.why-cod > div:nth-child(2) { background: var(--sand); }
.why-cod .icon { grid-row: span 2; width: 30px; height: 30px; }
.why-cod h3, .why-cod p { margin: 0; }
.why-cod p { font-size: .92rem; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 2fr; } .why-grid { grid-template-columns: repeat(3, 1fr); } .why-cod { grid-column: 2; grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* Breadcrumbs, chips, flash, empty */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 8px; margin: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .94rem; border: 1px solid; }
.flash-ok { background: #e6f2ea; border-color: #b9dbc5; color: #1e5a37; }
.flash-warn { background: #fdf3dc; border-color: #f0d79b; color: #7a5410; }
.flash-error { background: #fbe5df; border-color: #f0bcae; color: #8a2e19; }
.flash-info { background: var(--teal-l); border-color: #b8d4cd; color: var(--teal-d); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--line-2); }
.empty .chips { justify-content: center; }

/* Listing */
.listing-head { padding: 4px 0 18px; }
.listing-head h1 { margin-bottom: 6px; }
.listing-head p { color: var(--muted); max-width: 70ch; margin: 0; }
.listing { display: grid; gap: 18px; padding-bottom: 48px; }
.filters { display: flex; flex-direction: column; gap: 12px; }
.filters-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-box summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filters-box summary::after { content: "▾"; color: var(--muted); }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 18px 18px; display: grid; gap: 16px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 600; font-size: .86rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir="rtl"] .filters legend { letter-spacing: 0; }
.filter-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filter-cats a { display: flex; justify-content: space-between; padding: 6px 0; text-decoration: none; font-size: .93rem; }
.filter-cats span, .check span { color: var(--muted); font-size: .82rem; }
.check { display: flex; align-items: center; gap: 9px; font-size: .93rem; cursor: pointer; }
.check span { margin-inline-start: auto; }
.check input, .pay-option input, .variant input { accent-color: var(--teal); width: 18px; height: 18px; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; }
.filters-actions { display: flex; gap: 8px; }
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.sortbar label { display: flex; align-items: center; gap: 8px; }
.sortbar select { min-height: 40px; }
@media (min-width: 960px) {
  .listing { grid-template-columns: 260px 1fr; align-items: start; }
  .filters { position: sticky; top: 140px; }
  .filters .sortbar { order: -1; flex-direction: column; align-items: stretch; }
}
.listing-main { min-width: 0; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 28px; font-size: .9rem; color: var(--muted); }
.pager > :last-child { justify-self: end; }

/* Forms */
input[type="text"], input[type="search"], input[type="tel"], input[type="email"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(15 92 91 / .15); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--clay); }
.search input, .price-range input, .qty input { min-height: auto; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-size: .8rem; }
.field-error { color: var(--clay); font-size: .84rem; margin: 0; font-weight: 500; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* Product page */
.pdp { display: grid; gap: 24px; padding-bottom: 28px; }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; border-radius: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumb { flex: none; width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--paper); }
.thumb[aria-current="true"] { border-color: var(--teal); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: 10px; }
.pdp-brand { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal); text-decoration: none; margin-bottom: 8px; }
[dir="rtl"] .pdp-brand { letter-spacing: 0; }
.rating { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.stars { display: inline-flex; color: var(--line-2); }
.stars .icon { width: 16px; height: 16px; }
.pdp-short { color: var(--ink-2); font-size: 1.02rem; }
.pdp-save { color: var(--clay); font-weight: 600; font-size: .9rem; margin: 4px 0 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin: 14px 0 6px; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock-ok { color: var(--green); } .stock-low { color: var(--amber); } .stock-out { color: var(--clay); }
.buy { display: grid; gap: 12px; margin: 14px 0 20px; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; background: #fff; }
.variant input:checked + span { border-color: var(--teal); background: var(--teal-l); color: var(--teal-d); font-weight: 600; }
.variant input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.variant.is-out span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 50px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--sand); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 600; padding: 0; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty-sm button { width: 34px; height: 38px; font-size: 1.05rem; }
.qty-sm input { width: 34px; }
.pdp-assure { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.pdp-assure li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-assure .icon { color: var(--teal); }
.pdp-details { display: grid; gap: 18px; padding-bottom: 12px; }
.pdp-details > section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pdp-details h2 { font-size: 1.15rem; }
.prose p { color: var(--ink-2); }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; padding-inline-end: 12px; }
.ship-table th { width: auto; }
.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .2); padding-block: 10px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s; }
.sticky-buy.is-visible { transform: none; }
.sticky-row { display: flex; align-items: center; gap: 12px; }
.sticky-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 140px; }
  .pdp-details { grid-template-columns: 1.4fr 1fr; }
  .pdp-desc { grid-row: span 2; }
  .sticky-buy { display: none; }
}

/* Cart */
.cart-layout, .checkout-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; } .checkout-layout { grid-template-columns: 1fr 400px; } .summary { position: sticky; top: 140px; } }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty total"; gap: 8px 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-line.is-out { opacity: .6; }
.cart-thumb { grid-area: thumb; border-radius: 10px; overflow: hidden; background: var(--sand); align-self: start; }
.cart-thumb img { aspect-ratio: 1; object-fit: cover; }
.cart-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.cart-variant, .cart-unit { font-size: .84rem; color: var(--muted); }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 8px; }
.cart-total { grid-area: total; text-align: end; }
.cart-remove { grid-area: remove; justify-self: end; align-self: start; }
.cart-remove button { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; }
.cart-remove button:hover { background: var(--sand); color: var(--clay); }
.cart-remove .icon { width: 18px; height: 18px; }
.js .js-hide { display: none; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary h2 { font-size: 1.15rem; }
.summary dl { margin: 0 0 14px; display: grid; gap: 10px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.summary dt small { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: end; }
.sum-discount dd { color: var(--green); }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.15rem !important; }
.sum-total dd { font-family: var(--display); font-size: 1.3rem; }
.freebar { margin-bottom: 16px; font-size: .86rem; color: var(--ink-2); }
.freebar-track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.freebar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #2c8a7b); border-radius: inherit; transition: width .3s; }
.freebar p { margin: 0; }
.coupon { margin-bottom: 16px; display: grid; gap: 6px; }
.coupon label { font-weight: 600; font-size: .88rem; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; min-height: 44px; }
.coupon-ok { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; margin: 0; }
.coupon-ok .icon { width: 18px; height: 18px; }
.summary-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.summary-note .icon { width: 18px; height: 18px; }

/* Checkout */
.checkout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.checkout legend { font-family: var(--display); font-weight: 650; font-size: 1.12rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 .85rem var(--font); }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--teal); border-radius: var(--radius-sm); background: var(--teal-l); cursor: pointer; }
.pay-option span { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.pay-option .icon { grid-row: span 2; color: var(--teal); }
.pay-option small { color: var(--ink-2); grid-column: 2; }
.checkout-side { display: grid; gap: 14px; }
.mini-lines { list-style: none; margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.mini-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.mini-thumb { position: relative; border-radius: 10px; overflow: visible; background: var(--sand); }
.mini-thumb img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.mini-thumb b { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.mini-name small { display: block; color: var(--muted); }

/* Confirmation / track */
.confirm-head { text-align: center; max-width: 640px; margin: 8px auto 28px; }
.confirm-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; margin-bottom: 14px; }
.confirm-icon .icon { width: 34px; height: 34px; }
.confirm-number { font-size: 1.1rem; }
.confirm-number strong { font-family: var(--display); background: var(--saffron-l); padding: 3px 10px; border-radius: 8px; }
.confirm-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .confirm-grid { grid-template-columns: 1fr 1fr; } }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.track-form { display: grid; gap: 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-items: end; }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; } .track-form .btn { margin-bottom: 14px; } }
.track-result { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 18px 0; counter-reset: s; }
.steps li { font-size: .74rem; text-align: center; color: var(--muted); position: relative; padding-top: 30px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
[dir="rtl"] .steps li::before { transform: translateX(50%); }
.steps li.done { color: var(--teal-d); font-weight: 600; }
.steps li.done::before { background: var(--teal); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .9rem; }
.timeline time { color: var(--muted); margin-inline-start: 8px; }
.track-items { padding-inline-start: 18px; }
.status { padding: 2px 10px; border-radius: 999px; background: var(--teal-l); color: var(--teal-d); }
.status-cancelled, .status-failed_delivery, .status-returned { background: #fbe5df; color: #8a2e19; }
.status-delivered { background: #e6f2ea; color: #1e5a37; }

/* Contact & prose pages */
.contact-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; } }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-info { background: var(--teal-d); color: var(--sand); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; align-content: start; }
.contact-info p { display: flex; gap: 10px; align-items: flex-start; }
.contact-info a { color: var(--saffron); }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.prose-page h2 { margin-top: 1.6em; font-size: 1.25rem; }
.prose-page p { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d3c8; margin-top: 24px; padding-top: 44px; font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: #bdb6aa; max-width: 36ch; }
.logo-invert .logo-word { color: #fff; }
.logo-invert .logo-word small { color: var(--saffron); }
.footer-cod { display: flex; align-items: center; gap: 8px; color: var(--saffron) !important; font-weight: 600; }
.site-footer h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #8f887c; margin-bottom: 12px; }
[dir="rtl"] .site-footer h2 { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #34322d; margin-top: 36px; padding-block: 18px 22px; font-size: .8rem; color: #8f887c; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* Toast */
.toast { position: fixed; z-index: 60; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 420px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; animation: toast-in .25s ease; }
.toast a { color: var(--saffron); font-weight: 600; white-space: nowrap; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }
.page-product .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .page-product .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .announce, .sticky-buy, .toast { display: none !important; } body { background: #fff; } }
