/* Layan Home & Scent — demo storefront by RetainrWorks */
:root {
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --stone: #EDE8E0;
  --stone-2: #E2DBD0;
  --ink: #1E1C1A;
  --ink-2: #3A3632;
  --muted: #5C564E;
  --line: #E0D9CE;
  --accent: #1F4D3F;
  --accent-2: #173B30;
  --accent-soft: #E3EDE8;
  --gold: #A47B3B;
  --gold-ink: #7A5A26;
  --danger: #A12A2A;
  --danger-soft: #F8E8E6;
  --ok: #1D6B45;
  --ok-soft: #E3F1E8;
  --warn: #8A5A00;
  --warn-soft: #FBF0D9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30, 28, 26, .06), 0 8px 24px rgba(30, 28, 26, .06);
  --shadow-lg: 0 20px 50px rgba(30, 28, 26, .18);
  --font: "DM Sans", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Tajawal", "DM Sans", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1240px;
}

html[lang="en"] [lang="ar"]:not(html):not([data-keep]):not([data-lang-toggle]),
html[lang="ar"] [lang="en"]:not(html):not([data-keep]):not([data-lang-toggle]) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-block-end: 56px;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { inset-block-start: 12px; color: #fff; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.flip-rtl { transition: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* announcement + header */
.announce { background: var(--accent); color: #F1F6F3; font-size: .85rem; text-align: center; padding: 8px var(--gutter); }
.announce a { color: #fff; }
.site-header { position: sticky; inset-block-start: 0; z-index: 40; background: rgba(247, 245, 241, .94); backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-size: 1.15rem; letter-spacing: .22em; font-weight: 700; }
html[lang="ar"] .brand-name strong { letter-spacing: 0; font-size: 1.25rem; }
.brand-name small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .brand-name small { letter-spacing: 0; font-size: .78rem; text-transform: none; }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-search { display: none; position: relative; }
.header-search input { width: 220px; padding: 9px 14px; padding-inline-start: 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.header-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--stone); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; inset-block-start: 3px; inset-inline-end: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }
.cart-count[data-empty="true"] { display: none; }
.lang-toggle { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stone-2); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .9rem; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle[lang="ar"] { font-family: var(--font-ar); }
.lang-toggle[lang="en"] { font-family: "DM Sans", system-ui, sans-serif; }
.mobile-nav { display: none; border-block-start: 1px solid var(--line); padding-block: 12px 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-block-end: 1px solid var(--line); }
.mobile-nav form { margin-block-end: 8px; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; margin-inline-end: 8px; }
  .header-search { display: block; }
  .menu-btn { display: none !important; }
  .mobile-nav, .mobile-nav.open { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; text-align: center; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--stone-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }

/* hero */
.hero { padding-block: 28px 40px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-block-end: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .9rem; }
.hero h1 { max-width: 14ch; }
html[lang="ar"] .hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }
.hero-art { border-radius: 24px; overflow: hidden; aspect-ratio: 640 / 520; box-shadow: var(--shadow); }
.hero-art svg { width: 100%; height: 100%; }
.hero-note { display: flex; gap: 22px; flex-wrap: wrap; margin-block-start: 28px; color: var(--muted); font-size: .9rem; }
.hero-note strong { display: block; color: var(--ink); font-size: 1.25rem; }
@media (min-width: 900px) { .hero { padding-block: 56px 72px; } .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.trust svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.trust strong { display: block; color: var(--ink); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding: 22px 0; } }

.section { padding-block: 48px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-block-end: 22px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head h2 { margin: 0; }
@media (min-width: 900px) { .section { padding-block: 72px; } }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--stone); text-decoration: none; color: var(--ink); aspect-ratio: 4 / 5; }
.cat-tile svg { width: 100%; height: 100%; transition: transform .4s ease; }
.cat-tile:hover svg { transform: scale(1.04); }
.cat-tile .cat-label { position: absolute; inset-inline: 10px; inset-block-end: 10px; background: rgba(255, 255, 255, .94); border-radius: 10px; padding: 10px 12px; line-height: 1.3; }
.cat-tile .cat-label strong { display: block; }
.cat-tile .cat-label span.sub { font-size: .82rem; color: var(--muted); }
.cat-grid > :first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } .cat-grid > :first-child { grid-column: auto; aspect-ratio: 4 / 5; } }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .p-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.p-media { display: block; aspect-ratio: 1 / 1; background: var(--stone); overflow: hidden; }
.p-media svg { width: 100%; height: 100%; transition: transform .5s ease; }
.p-card:hover .p-media svg { transform: scale(1.05); }
.p-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.p-cat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .p-cat { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.p-name { font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.p-name::after { content: ""; position: absolute; inset: 0; }
.p-name:hover { color: var(--accent); }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-block-start: auto; padding-block-start: 6px; font-weight: 700; }
.p-price s { color: var(--muted); font-weight: 400; font-size: .88rem; }
.p-rating { font-size: .8rem; color: var(--muted); }
.p-rating b { color: var(--gold-ink); }
.p-flag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--surface); color: var(--ink); }
.p-flag.sale { background: var(--danger); color: #fff; }
.p-flag.out { background: var(--ink); color: #fff; }
.p-flag.low { background: var(--warn-soft); color: var(--warn); }
.p-add { position: relative; z-index: 2; margin-block-start: 10px; }
@media (max-width: 420px) { .p-body { padding: 10px; } .p-add { font-size: .85rem; padding: 0 10px; } }

/* editorial banner */
.edit-banner { display: grid; border-radius: 24px; overflow: hidden; background: var(--accent); color: #EEF4F1; }
.edit-banner h2 { color: #fff; }
.edit-banner .copy { padding: 32px 24px; }
.edit-banner .copy p { color: #D6E4DD; max-width: 44ch; }
.edit-banner .art { min-height: 260px; }
.edit-banner .art svg { width: 100%; height: 100%; }
@media (min-width: 900px) { .edit-banner { grid-template-columns: 1fr 1fr; } .edit-banner .copy { padding: 56px; align-self: center; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 12px 14px; text-align: start; border-block-end: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #FBFAF7; font-weight: 600; }
html[lang="ar"] th { text-transform: none; letter-spacing: 0; font-size: .88rem; }
tr:last-child td { border-block-end: 0; }
td.num, th.num { text-align: end; white-space: nowrap; }

/* newsletter */
.newsletter { background: var(--stone); border-radius: 24px; padding: 32px 22px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; padding: 48px; } }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form .field { flex: 1 1 220px; margin: 0; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-block-end: 16px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9B0A3; border-radius: 10px; background: var(--surface); color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir="rtl"] select { background-position: 15px 50%, 20px 50%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(164, 123, 59, .55); outline-offset: 0; border-color: var(--gold); border-radius: 10px; }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #FFFBFA; }
.err { color: var(--danger); font-size: .86rem; font-weight: 500; margin: 0; }
.err:empty { display: none; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span.pfx { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #B9B0A3; border-inline-end: 0; border-start-start-radius: 10px; border-end-start-radius: 10px; background: var(--stone); font-weight: 600; direction: ltr; }
.input-prefix input { border-start-start-radius: 0; border-end-start-radius: 0; direction: ltr; text-align: start; }
[dir="rtl"] .input-prefix input { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; font-size: .92rem; padding: 0; margin-block-end: 8px; }

/* choice pills / cards */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span.pill-face { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid #B9B0A3; border-radius: 999px; background: var(--surface); font-weight: 500; }
.pill input:checked + .pill-face { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent); }
.pill input:focus-visible + .pill-face { outline: 3px solid var(--gold); outline-offset: 2px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #C9C0B3; border-radius: 12px; background: var(--surface); cursor: pointer; }
.choice + .choice { margin-block-start: 8px; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #FAFCFB; }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice .c-main { flex: 1; min-width: 0; }
.choice .c-main strong { display: block; }
.choice .c-main small { color: var(--muted); font-size: .85rem; }
.choice .c-side { text-align: end; font-weight: 700; white-space: nowrap; }
.choice .c-side small { display: block; font-weight: 500; color: var(--ok); font-size: .8rem; }

/* shop */
.page-head { padding-block: 28px 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }
.crumbs { font-size: .86rem; color: var(--muted); margin-block-end: 10px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--stone-2); }
.crumbs a { color: var(--muted); }
.shop-layout { display: grid; gap: 24px; padding-block: 16px 56px; }
@media (min-width: 960px) { .shop-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
@media (min-width: 960px) { .filters { position: sticky; inset-block-start: 92px; } }
.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
.filters[open] summary::after { content: "–"; }
.filters .f-body { margin-block-start: 16px; }
.filters .cat-list { display: grid; gap: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-block-end: 16px; }
.toolbar .count { color: var(--muted); margin: 0; }
.toolbar .sort { display: flex; align-items: center; gap: 8px; }
.toolbar .sort select { min-height: 42px; width: auto; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--stone-2); border-radius: var(--radius); }
.empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--muted); }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); border: 0; font-size: .85rem; cursor: pointer; }

/* product page */
.pdp { display: grid; gap: 28px; padding-block: 12px 56px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } }
.gallery-main { border-radius: 20px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--stone); }
.gallery-main svg { width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block-start: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; background: var(--stone); }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.thumbs svg { width: 100%; height: 100%; }
@media (min-width: 900px) { .pdp-gallery { position: sticky; inset-block-start: 92px; } }
.pdp-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; font-weight: 700; margin-block: 8px 14px; }
.pdp-price s { font-size: 1rem; color: var(--muted); font-weight: 400; }
.save-tag { font-size: .8rem; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 2px 10px; border-radius: 999px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--danger); }
.qty { display: inline-flex; align-items: center; border: 1px solid #B9B0A3; border-radius: 999px; background: var(--surface); height: 48px; }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--stone); }
.qty input { width: 48px; border: 0; text-align: center; min-height: 0; padding: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 38px; } .qty.sm button { width: 36px; height: 36px; } .qty.sm input { width: 36px; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 18px; }
.buy-row .btn { flex: 1 1 200px; }
.delivery-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; font-size: .92rem; }
.delivery-box div { display: flex; gap: 10px; align-items: flex-start; }
.delivery-box svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-block-start: 3px; }
.accordion details { border-block-end: 1px solid var(--line); }
.accordion summary { padding: 16px 0; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-block-end: 16px; color: var(--ink-2); }
.accordion ul { margin: 0; padding-inline-start: 20px; }

/* cart & checkout */
.two-col { display: grid; gap: 28px; padding-block: 12px 56px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } }
.cart-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 16px; border-block-end: 1px solid var(--line); }
.cart-line:last-child { border-block-end: 0; }
.cart-line .thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--stone); }
.cart-line .thumb svg { width: 100%; height: 100%; }
.cart-line .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.cart-line .meta a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-line .meta a:hover { color: var(--accent); }
.cart-line .variant { color: var(--muted); font-size: .88rem; }
.cart-line .line-total { font-weight: 700; white-space: nowrap; }
.cart-line .controls { display: flex; align-items: center; gap: 14px; margin-block-start: 10px; }
@media (min-width: 600px) { .cart-line { grid-template-columns: 110px minmax(0, 1fr); } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 960px) { .summary { position: sticky; inset-block-start: 92px; } }
.summary h2 { font-size: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.sum-row.total { border-block-start: 1px solid var(--line); margin-block-start: 8px; padding-block-start: 14px; font-size: 1.15rem; font-weight: 700; }
.sum-row .disc { color: var(--ok); }
.sum-lines { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-block-end: 1px solid var(--line); }
.sum-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 6px; font-size: .9rem; }
.sum-lines .thumb { position: relative; border-radius: 8px; overflow: visible; aspect-ratio: 1; background: var(--stone); }
.sum-lines .thumb svg { width: 100%; height: 100%; border-radius: 8px; }
.sum-lines .q { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; background: var(--ink-2); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; line-height: 20px; text-align: center; font-weight: 700; }
.note { font-size: .85rem; color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: .92rem; margin-block-end: 16px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-block-start: 2px; }
.notice.info { background: var(--accent-soft); color: var(--accent-2); }
.notice.warn { background: var(--warn-soft); color: #5E3E00; }
.notice.danger { background: var(--danger-soft); color: #7A1E1E; }
.notice.ok { background: var(--ok-soft); color: #14502F; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-block-end: 18px; }
.panel h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .9rem; flex: none; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; }
.zones-table caption { text-align: start; font-weight: 700; padding: 0 0 8px; }

/* footer */
.site-footer { background: #1B1A18; color: #CFC8BD; margin-block-start: 24px; padding-block: 48px 28px; font-size: .92rem; }
.site-footer a { color: #E9E3D8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child { grid-column: 1 / -1; }
.site-footer h2 { color: #fff; font-size: .95rem; margin-block-end: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #ADA597; }
.foot-bottom { border-block-start: 1px solid #34312D; margin-block-start: 32px; padding-block-start: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #ADA597; font-size: .84rem; }
.pay-marks { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-marks span { border: 1px solid #4A4640; border-radius: 6px; padding: 2px 10px; font-weight: 700; font-size: .78rem; color: #E9E3D8; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-grid > :first-child { grid-column: auto; } }
.phone { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* toast */
.toast-wrap { position: fixed; inset-inline: 16px; inset-block-start: 84px; z-index: 60; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 460px; width: 100%; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast a { color: #CFE5DA; font-weight: 700; white-space: nowrap; }
.toast p { margin: 0; flex: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* RetainrWorks demo badge */
.rw-badge { position: fixed; inset-block-end: 12px; inset-inline-start: 12px; z-index: 50; max-width: calc(100vw - 24px); padding: 7px 12px; border-radius: 999px; background: rgba(30, 28, 26, .9); color: #F4F1EC; font-size: .74rem; font-weight: 500; text-decoration: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); line-height: 1.3; }
.rw-badge:hover { background: var(--ink); color: #fff; text-decoration: underline; }
html[lang="ar"] .rw-badge { font-size: .8rem; }

/* KNET mock gateway */
.gw-body { background: #E9ECEF; }
.gw-demo-bar { background: #8A1C1C; color: #fff; text-align: center; font-weight: 700; padding: 10px var(--gutter); font-size: .92rem; }
.gw { max-width: 520px; margin: 24px auto; padding-inline: var(--gutter); }
.gw-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, .1); overflow: hidden; border: 1px solid #D5DAE0; }
.gw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: #F4F6F8; border-block-end: 1px solid #D5DAE0; }
.gw-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #24364B; letter-spacing: .04em; }
.gw-mark svg { width: 28px; height: 28px; }
.gw-head .lang-toggle { height: 34px; }
.gw-inner { padding: 20px; }
.gw-merchant { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: .92rem; padding: 14px; background: #F7F8FA; border: 1px solid #E1E5EA; border-radius: 10px; margin-block-end: 18px; }
.gw-merchant dt { color: #4E5A68; }
.gw-merchant dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.gw-merchant .amt { font-size: 1.15rem; color: #1B2B3D; }
.gw input, .gw select { border-color: #A9B3BE; }
.gw .btn-gw { background: #24364B; border-color: #24364B; }
.gw .btn-gw:hover { background: #1A283A; }
.gw-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gw-actions .btn { flex: 1 1 140px; border-radius: 8px; }
.gw-sim { border: 1px dashed #C68A1A; background: #FFF8EA; border-radius: 10px; padding: 12px 14px; margin-block-end: 16px; }
.gw-sim legend { font-size: .85rem; color: #6B4600; }
.gw-sim .pills { gap: 6px; }
.gw-result { text-align: center; padding: 8px 0; }
.gw-result .icon { width: 64px; height: 64px; margin: 0 auto 10px; }
.gw-result dl { text-align: start; }
.spinner { width: 44px; height: 44px; margin: 24px auto; border-radius: 50%; border: 4px solid #D5DAE0; border-block-start-color: #24364B; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.exp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gw-foot { text-align: center; color: #4E5A68; font-size: .82rem; margin-block: 16px 60px; }

/* confirmation */
.confirm-hero { text-align: center; padding-block: 36px 12px; }
.confirm-hero .tick { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.confirm-hero .tick svg { width: 36px; height: 36px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--stone); border: 2px solid var(--stone-2); }
.timeline li.done .dot { background: var(--accent); border-color: var(--accent); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .94rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; }

/* orders dashboard */
.admin-bar { background: #1B1A18; color: #E9E3D8; }
.admin-bar .header-row { min-height: 60px; }
.admin-bar .brand { color: #fff; }
.admin-bar .brand-name small { color: #ADA597; }
.admin-bar .lang-toggle { background: transparent; color: #fff; border-color: #4A4640; }
.admin-bar .btn-ghost { color: #fff; border-color: #4A4640; }
.admin-bar .btn-ghost:hover { background: #2A2825; }
.tag-owner { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #C9A365; color: #1B1A18; margin-inline-start: 6px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 18px 22px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .k { font-size: .82rem; color: var(--muted); }
.stat .v { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; margin-block: 4px; overflow-wrap: anywhere; }
.stat .s { font-size: .8rem; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-block-end: 4px; margin-block-end: 12px; scrollbar-width: thin; }
.tabs button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stone-2); background: var(--surface); cursor: pointer; font-weight: 500; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs .n { font-size: .78rem; opacity: .75; margin-inline-start: 4px; }
.admin-tools { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-block-end: 14px; }
@media (min-width: 720px) { .admin-tools { grid-template-columns: minmax(0, 1fr) 220px; } }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.st-new { background: #E4ECF7; color: #1C3F6E; }
.st-processing { background: var(--warn-soft); color: #6B4600; }
.st-shipped { background: #EDE6F6; color: #4B2A7A; }
.st-delivered { background: var(--ok-soft); color: #14502F; }
.st-cancelled { background: #EEECEA; color: #4A4640; }
.pay { font-size: .82rem; color: var(--muted); }
.orders-table tbody tr { cursor: pointer; }
.orders-table tbody tr:hover { background: #FBFAF7; }
.orders-table .ref { font-weight: 700; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; font-weight: 700; }
.mine { font-size: .7rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-2); padding: 1px 6px; border-radius: 4px; margin-inline-start: 6px; }
@media (max-width: 719px) {
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .orders-table tr { padding: 12px 14px; border-block-end: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .orders-table td { padding: 0; border: 0; text-align: start; }
  .orders-table td.num { text-align: end; }
  .orders-table td.hide-sm { display: none; }
}
dialog.drawer { margin: 0; margin-inline-start: auto; inset-block: 0; height: 100%; max-height: 100%; width: min(480px, 100%); max-width: 100%; border: 0; padding: 0; background: var(--bg); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.drawer::backdrop { background: rgba(20, 18, 16, .45); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-block-end: 1px solid var(--line); position: sticky; top: 0; }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { padding: 20px; }
.drawer-body h3 { font-size: .95rem; margin-block: 20px 8px; }
.items-mini { list-style: none; margin: 0; padding: 0; }
.items-mini li { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-block-end: 1px solid var(--line); font-size: .92rem; }

/* mobile menu search */
.mobile-search { position: relative; }
.mobile-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.mobile-search input { padding-inline-start: 36px; }
.menu-btn svg { width: 24px; height: 24px; }
.announce { margin: 0; }
.gw-demo-bar { margin: 0; }
.header-search input[type="search"], .mobile-search input[type="search"] { padding-inline-start: 36px; }
