/* AVRON storefront — RTL, Cairo, mobile-first refinements */
:root {
  --ink: #111;
  --ink-2: #1c1b1a;
  --paper: #f8f7f5;
  --card: #fff;
  --sand: #c5b6a5;
  --sand-deep: #8d7c6b;
  --line: #e5e2de;
  --muted: #77736e;
  --ok: #1f7a47;
  --ok-bg: #e7f4ec;
  --bad: #a3231c;
  --bad-bg: #fdeceb;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: Cairo, Tahoma, sans-serif; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="ltr"] { unicode-bidi: plaintext; }
.price, .line-total, .summary-row span:last-child, .unit, .cart-count { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--ink); border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s, color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #2a2826; }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-light { background: #c9b9a7; border-color: #c9b9a7; color: #171717; }
.btn-light:hover { background: #d8cabb; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent;
  border-radius: 50%; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s, transform .16s;
}
.icon-btn:hover { background: #f0edea; color: var(--bad); }
.icon-btn:active { transform: scale(.94); }
.link-arrow { font-weight: 700; font-size: 13px; color: var(--sand-deep); }

/* Forms */
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: #fff;
  border: 1px solid #d6d2cd; border-radius: var(--r-sm); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
input[aria-invalid="true"], .field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 700; }
.field label small, .label small { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error { color: var(--bad); font-size: 12px; }
.hint { font-size: 12px; color: var(--sand-deep); margin: 4px 0 10px; }
.notice { background: #f1ede8; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14px; }

/* Announcement + header */
.announcement { background: #bfae99; color: #17130f; text-align: center; padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.site-header { background: #0d0d0d; color: #fff; position: sticky; top: 0; z-index: 40; }
.header-inner { max-width: 1380px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 4%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Arial, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 4px; }
.brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; }
.brand small { display: block; font-size: 7px; letter-spacing: 3px; color: #bfae99; margin-top: 4px; }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a { position: relative; padding: 6px 0; color: #ddd; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--sand); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #555; border-radius: 999px; padding: 8px 14px; font-size: 13px; transition: border-color .2s; }
.cart-link:hover { border-color: var(--sand); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sand); color: #111; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.cart-count[data-count="0"] { background: #333; color: #aaa; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid #444; border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; right: 12px; left: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease-out); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Toasts */
.toast-stack { position: fixed; z-index: 60; top: 90px; left: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow);
  border-inline-start: 4px solid var(--ok); font-size: 14px;
  animation: toast-in .35s var(--ease-out) both;
}
.toast.error { border-color: var(--bad); }
.toast a { font-weight: 700; white-space: nowrap; color: var(--sand-deep); }
.toast.is-leaving { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); filter: blur(2px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* Hero */
.hero { min-height: 560px; background: #151515; color: #fff; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-copy { padding: 80px max(6%, calc((100vw - 1260px) / 4)); display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { color: #c9b9a7; font-size: 11px; letter-spacing: 3px; font-weight: 700; }
.eyebrow.dark { color: var(--sand-deep); }
.hero h1 { font-size: clamp(52px, 6vw, 96px); line-height: 1.15; margin: 24px 0; font-weight: 800; }
.hero h1 em { font-style: normal; color: #c4b5a4; }
.hero p { max-width: 400px; color: #c7c7c7; line-height: 2; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; gap: 24px; margin-top: auto; padding-top: 45px; color: #888; font: 10px Arial; letter-spacing: 2px; }
.hero-visual { background: radial-gradient(circle at 50% 40%, #48413b 0%, #1c1a19 46%, #090909 90%); display: flex; justify-content: center; align-items: center; position: relative; min-height: 460px; }
.hero-visual > img { width: min(68%, 410px); height: auto; border-radius: 50%; box-shadow: 0 25px 80px #0009; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.visual-note { position: absolute; bottom: 35px; left: 35px; font: 10px Arial; letter-spacing: 3px; color: #b5a89b; }
.perks { display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: 14px 24px; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }

/* Sections */
.section-wrap { max-width: 1330px; margin: auto; padding: 80px 24px; }
.section-wrap.tight { padding-top: 28px; padding-bottom: 28px; }
.section-wrap.narrow { max-width: 820px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; margin: 8px 0 0; }
.section-head p { color: var(--muted); font-size: 14px; margin: 0; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 4px; }
.page-head p { color: var(--muted); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.category-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 180px; padding: 18px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(150deg, #262321, #0f0f0f); color: #fff; isolation: isolate;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease-out); }
.category-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .05) 60%); }
.category-card:hover img { transform: scale(1.05); }
.category-name { font-size: 18px; font-weight: 800; }
.category-card small { color: #d9cfc4; font-size: 12px; }

/* Product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { background: var(--card); border-radius: var(--r); overflow: hidden; padding-bottom: 14px; transition: box-shadow .3s; }
.product-card:hover { box-shadow: var(--shadow); }
.product-image { position: relative; display: block; aspect-ratio: 3 / 4; background: #eee; overflow: hidden; }
.product-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), opacity .4s; outline: 1px solid rgba(0, 0, 0, .04); outline-offset: -1px; }
.product-image .alt-image { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-image > img:first-child { transform: scale(1.04); }
.product-card:hover .alt-image { opacity: 1; }
.badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.dark { background: #111; color: #fff; }
.badge.sand { background: var(--sand); color: #111; }
.image-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; background: linear-gradient(140deg, #dedbd7, #a9a39d); }
.image-placeholder img { width: 55%; border-radius: 50%; }
.image-placeholder span { font: 10px Arial; letter-spacing: 3px; }
.image-placeholder.big { aspect-ratio: 3 / 4; border-radius: var(--r-lg); }
.product-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 15px 0; font-size: 14px; }
.product-name { font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; white-space: nowrap; }
.price s { color: var(--muted); font-size: .85em; }
.price.big { font-size: 24px; margin: 6px 0 18px; }
.price.big s { font-size: 16px; }
.empty-products, .empty-state { grid-column: 1 / -1; padding: 60px 20px; text-align: center; background: #fff; border-radius: var(--r-lg); }
.empty-state svg { margin: 0 auto 10px; color: var(--sand-deep); }
.empty-state h2 { margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }
.pager-btn { min-height: 40px; padding: 0 18px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 13px; font-weight: 700; transition: border-color .2s; }
a.pager-btn:hover { border-color: var(--ink); }
.pager-btn.disabled { opacity: .4; }
.pager-info { font-size: 13px; color: var(--muted); }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; padding-top: 32px; }
.filters { position: sticky; top: 100px; background: #fff; border-radius: var(--r-lg); padding: 20px; }
.filter-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.filter-group > label { font-size: 13px; font-weight: 700; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { flex: 1; }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.filters-toggle { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, .chip-btn {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 14px;
  border: 1px solid #d6d2cd; border-radius: var(--r-sm); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s, transform .12s;
}
.chip input:checked + span, .chip-btn.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(17, 17, 17, .15); }
.chip-btn:active { transform: scale(.96); }
.chip-btn.unavailable { color: #aaa; text-decoration: line-through; border-style: dashed; }

/* Product page */
.product-layout > *, .cart-layout > *, .shop-layout > *, .footer-grid > * { min-width: 0; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { border-radius: var(--r-lg); overflow: hidden; background: #eee; aspect-ratio: 3 / 4; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main img.is-swapping { opacity: .25; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: 0 0 76px; height: 96px; padding: 0; border: 2px solid transparent; border-radius: calc(var(--r) + 2px); overflow: hidden; background: #eee; cursor: pointer; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.thumb.active { border-color: var(--ink); }
.product-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 6px 0 0; }
.option-block { margin-bottom: 18px; }
.option-block .label { display: block; margin-bottom: 8px; }
.stock-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; min-height: 22px; }
.stock-note.low { color: #b26a00; }
.stock-note.out { color: var(--bad); }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #d6d2cd; border-radius: var(--r-sm); background: #fff; overflow: hidden; margin: 0; }
.qty button { width: 42px; border: 0; background: transparent; font-size: 18px; cursor: pointer; transition: background-color .15s; }
.qty button:hover { background: #f2efec; }
.qty input { width: 52px; min-height: 46px; border: 0; text-align: center; padding: 0; border-radius: 0; box-shadow: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.small input { min-height: 38px; width: 42px; }
.qty.small button { width: 34px; }
.assurance { list-style: none; padding: 16px 0; margin: 20px 0; border-block: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.assurance li::before { content: "✦"; color: var(--sand-deep); margin-inline-end: 10px; }
.assurance a { text-decoration: underline; text-underline-offset: 3px; }
.description h2 { font-size: 18px; }
.description { color: #3d3a37; font-size: 15px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 16px; align-items: center;
  padding: 12px; background: #fff; border-radius: var(--r-lg);
}
.cart-line.has-issue { box-shadow: inset 0 0 0 1px #f0c2bf; }
.cart-line form { margin: 0; }
.cart-thumb { width: 84px; height: 104px; border-radius: var(--r); overflow: hidden; background: #eee; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.line-issue { color: var(--bad); font-size: 12px; font-weight: 700; }
.line-total { min-width: 90px; text-align: left; }
.coupon-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff; padding: 12px; border-radius: var(--r-lg); margin: 0; }
.coupon-form input { flex: 1; min-width: 160px; }
.checkout-box { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.summary, .checkout-form, .card { background: #fff; border-radius: var(--r-lg); padding: 22px; margin: 0; }
.card { margin-bottom: 18px; }
.summary h2, .checkout-form h2, .card h2 { font-size: 18px; margin: 0 0 14px; }
.checkout-form h2 small { font-size: 12px; font-weight: 600; color: var(--sand-deep); margin-inline-start: 6px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; }
.summary-row.discount span:last-child { color: var(--ok); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 17px; font-weight: 800; }
hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

/* Order confirmation & tracking */
.success-hero { text-align: center; padding: 30px 0 24px; }
.check-draw { color: var(--ok); margin: 0 auto 12px; }
.check-draw circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s var(--ease-out) forwards; }
.check-draw path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-hero h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.ref-box { display: inline-flex; gap: 12px; align-items: center; padding: 12px 20px; margin: 10px 0; background: #fff; border: 1px dashed var(--sand-deep); border-radius: var(--r); }
.ref-box strong { font-size: 20px; letter-spacing: 1px; }
.center-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 30px; }
.track-form .btn { margin-top: 4px; }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.track-head div { display: flex; flex-direction: column; }
.status-pill { padding: 4px 14px; border-radius: 999px; background: #eee; font-size: 13px; font-weight: 700; }
.status-delivered { background: var(--ok-bg); color: var(--ok); }
.status-cancelled, .status-returned { background: var(--bad-bg); color: var(--bad); }
.status-shipped { background: #e8eefb; color: #23489b; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: step; }
.timeline li { position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 34px; }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eee; font-weight: 700; z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: #eee; }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 700; }
.timeline li.done::before, .timeline li.done::after { background: var(--ink); color: #fff; }
.timeline li.current::before { box-shadow: 0 0 0 4px rgba(17, 17, 17, .12); }
.shipment-box { display: flex; flex-direction: column; gap: 4px; padding: 14px; margin-bottom: 18px; background: #f6f3ef; border-radius: var(--r); font-size: 14px; }
.shipment-box a { color: var(--sand-deep); font-weight: 700; margin-inline-start: 8px; }
.prose { font-size: 15px; line-height: 2; }

/* Manifesto & footer */
.manifesto { background: #171717; color: #fff; text-align: center; padding: 85px 20px; }
.manifesto span { color: #bfae99; font: 11px Arial; letter-spacing: 3px; }
.manifesto h2 { font-size: clamp(27px, 4vw, 48px); margin: 22px 0; }
.manifesto p { color: #aaa; max-width: 620px; margin: auto; }
.site-footer { background: #0b0b0b; color: #fff; padding: 50px 6% 24px; }
.footer-grid { max-width: 1260px; margin: auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 14px; color: #d2c1ae; }
.footer-grid a { display: block; font-size: 13px; color: #aaa; padding: 3px 0; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.flink { display: flex !important; align-items: center; gap: 10px; }
.flink .fi { flex: none; color: #8d7c6b; transition: color .2s; }
.flink:hover .fi { color: var(--sand); }
.flink span[dir="ltr"] { unicode-bidi: isolate; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-grid .social-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #2c2a28; border-radius: 999px;
  color: #cfc6bc; font-size: 13px; transition: border-color .2s, color .2s, background-color .2s;
}
.footer-grid .social-chip .fi { color: var(--sand); }
.footer-grid .social-chip:hover { border-color: var(--sand); color: #fff; background: #151413; }
.footer-brand strong { font: 800 28px Arial; letter-spacing: 5px; color: #d2c1ae; }
.footer-brand p { font-size: 12px; color: #999; margin: 6px 0 0; }
.copyright { display: block; max-width: 1260px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid #222; color: #777; font-size: 11px; letter-spacing: 1px; }
.whatsapp-fab { position: fixed; bottom: 20px; left: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s var(--ease-out); }
.whatsapp-fab:hover { transform: scale(1.06); }

/* Scroll reveal (enabled by JS only, so content is visible without JS) */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }


/* Colour chips, availability table, description formatting */
.color-chip { display: inline-flex; align-items: center; gap: 8px; }
.swatch {
  display: inline-block; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--swatch, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); vertical-align: middle; margin-inline-end: 6px;
}
.color-chip .swatch { margin: 0; }
.chip-btn.selected .swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255, 255, 255, .4); }
.chip-btn:disabled { cursor: not-allowed; }
.chip-btn.unavailable { color: #aaa; text-decoration: line-through; border-style: dashed; }
.chip-btn.color-chip.unavailable { text-decoration: none; opacity: .55; }

.stock-table-wrap { margin: 22px 0 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.stock-table-title { font-size: 16px; margin: 0 0 12px; }
.stock-table-scroll { overflow-x: auto; max-width: 100%; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.stock-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.stock-table th, .stock-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stock-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; background: #faf9f7; }
.stock-table thead th:first-child { border-start-start-radius: var(--r-sm); }
.stock-table thead th:last-child { border-start-end-radius: var(--r-sm); }
.stock-table tbody th { text-align: right; font-weight: 700; }
.stock-table tbody tr:last-child th, .stock-table tbody tr:last-child td { border-bottom: 0; }
.stock-table tr.row-active th, .stock-table tr.row-active td { background: #f6f2ed; }
.cell-pick {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px;
  border: 1px solid #cfe6d8; border-radius: 999px; background: var(--ok-bg); color: var(--ok);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .12s;
}
.cell-pick:hover { border-color: var(--ok); }
.cell-pick:active { transform: scale(.95); }
.cell-pick.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.cell-out { color: #a8a39d; font-size: 12px; font-weight: 600; }
.cell-na { color: #c4c0bb; }
.stock-table-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.description p { margin: 0 0 10px; }
.description ul { margin: 0 0 12px; padding-inline-start: 20px; }
.description li { margin: 4px 0; }
.description li::marker { color: var(--sand-deep); }

/* Shop category strip */
.category-strip-wrap { padding-bottom: 0 !important; }
.category-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700;
  transition: border-color .15s, background-color .15s, color .15s;
}
.cat-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-inline-start: -8px; }
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Page loader (logo + جاري التحميل) */
.page-loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #2a2622 0%, #111 55%, #090909 100%);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
html.js-loading .page-loader, .page-loader.show { opacity: 1; visibility: visible; transition: opacity .2s ease, visibility 0s; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader-mark img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); animation: loader-pulse 1.6s ease-in-out infinite; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(197, 182, 165, .18); border-top-color: var(--sand);
  animation: loader-spin .9s linear infinite;
}
.loader-text { color: #d9cdbf; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.loader-text i { font-style: normal; animation: loader-dot 1.2s infinite; opacity: .2; }
.loader-text i:nth-child(2) { animation-delay: .2s; }
.loader-text i:nth-child(3) { animation-delay: .4s; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse { 50% { transform: scale(.94); opacity: .85; } }
@keyframes loader-dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader-ring, .loader-mark img { animation: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-box { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .cart-label { display: none; }
  .main-nav {
    position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; gap: 0;
    background: #0d0d0d; border-top: 1px solid #222; padding: 8px 4% 16px;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .3s var(--ease-out), opacity .2s;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #1d1d1d; }
  .main-nav a.active::after { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 55px 7%; }
  .hero-visual { min-height: 320px; }
  .hero-visual > img { width: 230px; }
  .product-grid, .product-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .section-head { display: block; }
  .section-wrap { padding: 48px 16px; }
  .section-wrap.tight { padding: 20px 16px; }
  .shop-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .filters { display: none; position: static; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toast-stack { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 560px) {
  .stock-table-wrap { padding: 14px 12px; }
  .stock-table th, .stock-table td { padding: 7px 4px; }
  .stock-table tbody th { font-size: 12px; white-space: normal; min-width: 64px; }
  .cell-pick { padding: 0 8px; min-height: 30px; font-size: 11px; }
  .cell-pick svg { display: none; }
  .product-info h1 { overflow-wrap: anywhere; }
  .buy-row .qty { flex: none; }
  .brand { font-size: 17px; letter-spacing: 3px; }
  .brand img { width: 40px; height: 40px; }
  .cart-link { padding: 7px 10px; }
  .hero h1 { font-size: 48px; }
  .product-meta { flex-direction: column; gap: 4px; font-size: 13px; padding: 10px 10px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cart-line { grid-template-columns: 72px 1fr auto; grid-template-areas: "thumb body remove" "thumb qty total"; gap: 8px 12px; }
  .cart-thumb { grid-area: thumb; width: 72px; height: 92px; }
  .cart-line-body { grid-area: body; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line .line-total { grid-area: total; min-width: 0; }
  .cart-line > form:last-child { grid-area: remove; justify-self: end; }
  .timeline li { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .product-card:hover .alt-image { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
