/* =====================================================================
   THE ELITE — design system
   Editorial luxury: high-contrast serif display + clean sans body,
   brand dark brown & alabaster, muted gold accent, soft depth.
   ===================================================================== */

:root {
  /* Brand */
  --brand: #22170D;          /* Dark Brown (brand board) */
  --brand-2: #33241A;
  --brand-3: #4A3828;
  --alabaster: #ECE4DB;      /* Alabaster (brand board) */
  --cream: #F7F2EC;
  --white: #FFFFFF;
  --gold: #B8935A;           /* decorative accent (lines, icons, chart) */
  --gold-ink: #85652F;       /* gold for text on light: 4.6:1 on white */
  --gold-soft: #F3EADC;

  /* Semantic */
  --bg: var(--cream);
  --surface: var(--white);
  --text: #22170D;
  --text-2: #5E5147;         /* secondary text: 7:1 on white */
  --muted: #8A7D72;
  --line: rgba(34, 23, 13, .09);
  --line-2: rgba(34, 23, 13, .16);
  --ok: #2F6B45;   --ok-bg: #E7F2EA;
  --warn: #93600F; --warn-bg: #FBF0DC;
  --bad: #A63A2F;  --bad-bg: #FBE9E6;
  --info: #2F5878; --info-bg: #E6EFF6;

  /* Type */
  --font-display: "Playfair Display", "Noto Kufi Arabic", Georgia, serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(34,23,13,.05), 0 1px 1px rgba(34,23,13,.03);
  --shadow-2: 0 2px 4px rgba(34,23,13,.04), 0 8px 24px -6px rgba(34,23,13,.10);
  --shadow-3: 0 4px 8px rgba(34,23,13,.05), 0 22px 48px -12px rgba(34,23,13,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
  --t: 180ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font-body); font-size: 15.5px; line-height: 1.6; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--gold-ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { letter-spacing: 0; font-weight: 700; } /* never letter-space Arabic */
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); font-size: .9rem; }
.text-2 { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.inline { display: inline; }
.logo, .logo-mark { display: block; fill: currentColor; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; }
[dir=rtl] .flip-rtl { transform: scaleX(-1); }
.back-ico { transform: scaleX(-1); }            /* back = points left in LTR */
[dir=rtl] .back-ico { transform: none; }        /* ...and right in RTL */
.eyebrow { font-family: var(--font-body); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }
[dir=rtl] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* keyboard focus: always visible */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .55rem 1.15rem;
  border: 1px solid transparent; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; white-space: nowrap;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t); }
.btn:hover { background: var(--brand-3); color: #fff; box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-light:hover { background: var(--cream); color: var(--text); border-color: var(--brand); box-shadow: none; }
.btn-gold { background: var(--gold); color: var(--brand); }
.btn-gold:hover { background: #C9A56C; color: var(--brand); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #24563A; }
.btn-bad { background: var(--bad); } .btn-bad:hover { background: #8A2F26; }
.btn-accent { background: var(--gold); color: var(--brand); } .btn-accent:hover { background: #C9A56C; color: var(--brand); }
.btn-sm { min-height: 34px; padding: .3rem .8rem; font-size: .84rem; }
.btn-lg { min-height: 50px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 1.1rem; }
hr, .divider { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* ---------- KPI ---------- */
.kpi { position: relative; overflow: hidden; }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .label { color: var(--text-2); font-size: .84rem; font-weight: 500; }
.kpi .value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-top: .35rem; letter-spacing: -.01em; }
.kpi .chip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.kpi .chip .ico { width: 19px; height: 19px; }
.kpi.pos .value { color: var(--ok); } .kpi.neg .value { color: var(--bad); }
.kpi.warn .chip { background: var(--warn-bg); color: var(--warn); }
.kpi.dark { background: var(--brand); color: var(--alabaster); border-color: var(--brand); }
.kpi.dark .label { color: rgba(236,228,219,.7); }
.kpi.dark .chip { background: rgba(184,147,90,.18); color: var(--gold); }
a.kpi { color: inherit; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .62rem; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #F0EBE5; color: var(--text-2); }
.badge-plain::before { display: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.card.table-wrap { padding: 0; }
.card .table-wrap { margin-inline: -1.25rem; }
.card.table-wrap > h3, .card.table-wrap > p, .card.table-wrap > .row { padding: 1.1rem 1.25rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
th { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: #FBF8F4; }
[dir=rtl] th { letter-spacing: 0; font-size: .82rem; text-transform: none; }
tbody tr { transition: background var(--t); }
tbody tr:hover { background: #FCFAF7; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td, tfoot th { background: #FBF8F4; font-weight: 600; font-size: .95rem; color: var(--text); text-transform: none; letter-spacing: 0; }
tfoot tr:last-child th, tfoot tr:last-child td { font-size: 1.05rem; border-top: 1px solid var(--line-2); }
tr.low td { background: #FFF8EC; }

/* ---------- forms ---------- */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .88rem; color: var(--text); }
input[type=text], input[type=password], input[type=number], input[type=tel], input[type=email], input[type=url], input[type=date], input[type=month],
input[type=time], input[type=datetime-local], input[type=search], input[type=file], select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font: inherit; font-size: .95rem; background: #fff; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t); }
textarea { min-height: 84px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(34,23,13,.3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,147,90,.18); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; margin: 0; margin-inline-end: .5rem; accent-color: var(--brand); vertical-align: middle; }
.helptext { display: block; color: var(--muted); font-size: .8rem; margin-top: .3rem; font-weight: 400; }
.errorlist { color: var(--bad); list-style: none; padding: 0; margin: .3rem 0 0; font-size: .84rem; font-weight: 500; }
.field:has(.errorlist) input, .field:has(.errorlist) select { border-color: var(--bad); }
form ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; }
form ul:not(.errorlist) li label { display: flex; align-items: center; font-weight: 500; padding: .35rem 0; cursor: pointer; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E5147' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-inline-end: 2.2rem; }
[dir=rtl] select { background-position: left .8rem center; }

/* Django 5 renders radio/checkbox groups as <div id=..><div><label><input> text</label></div>... */
form div[id^="id_"] > div > label { display: flex; align-items: center; font-weight: 500; padding: .35rem 0; cursor: pointer; }

/* segmented choice (radio cards) */
.choice-cards div[id^="id_"] { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.choice-cards div[id^="id_"] > div > label { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .85rem 1rem; background: #fff; min-height: 52px;
  transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.choice-cards div[id^="id_"] > div > label:hover { border-color: rgba(34,23,13,.35); }
.choice-cards div[id^="id_"] > div > label:has(input:checked) { border-color: var(--brand); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--brand); }
@media (max-width: 560px) { .choice-cards div[id^="id_"] { grid-template-columns: 1fr; } }

/* checkbox grid (manager modules) */
#id_modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
#id_modules > div > label { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .6rem .8rem; background: #fff; }
#id_modules > div > label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

/* quantity stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.stepper button { width: 36px; height: 40px; border: 0; background: transparent; cursor: pointer; color: var(--text); display: grid; place-items: center; transition: background var(--t); }
.stepper button:hover { background: var(--cream); }
.stepper input { width: 44px !important; min-height: 40px; border: 0 !important; text-align: center; padding: 0; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { width: 76px !important; text-align: center; }

/* ---------- messages ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.messages li { display: flex; gap: .6rem; align-items: center; padding: .8rem 1rem; border-radius: var(--r-sm); margin-bottom: .5rem;
  background: var(--info-bg); color: var(--info); font-weight: 500; border: 1px solid rgba(47,88,120,.12); animation: rise .3s var(--ease) both; }
.messages .success { background: var(--ok-bg); color: var(--ok); border-color: rgba(47,107,69,.15); }
.messages .error { background: var(--bad-bg); color: var(--bad); border-color: rgba(166,58,47,.15); }
.messages .warning { background: var(--warn-bg); color: var(--warn); border-color: rgba(147,96,15,.15); }

/* =====================================================================
   PUBLIC SHOP
   ===================================================================== */
.shop-header { position: sticky; top: 0; z-index: 30; background: rgba(34,23,13,.95); color: #fff;
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(236,228,219,.08); }
.shop-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; color: #fff; }
.brand:hover { color: #fff; }
.brand .logo { height: 50px; width: auto; }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .3rem .8rem; border-radius: var(--r-sm);
  border: 1px solid rgba(236,228,219,.28); color: inherit !important; font-size: .88rem; font-weight: 500; text-decoration: none !important; transition: background var(--t), border-color var(--t); }
.lang-btn:hover { background: rgba(236,228,219,.1); border-color: rgba(236,228,219,.5); }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 38px; padding: .3rem .95rem; border-radius: var(--r-sm);
  background: var(--alabaster); color: var(--brand) !important; font-weight: 600; font-size: .9rem; transition: background var(--t); }
.cart-pill:hover { background: #fff; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }

/* hero */
.hero { position: relative; overflow: hidden; color: var(--alabaster); text-align: center;
  background: radial-gradient(1200px 500px at 50% -10%, #4A3726 0%, rgba(74,55,38,0) 60%), linear-gradient(180deg, #22170D 0%, #2B1D12 100%);
  padding: 5.5rem 1.25rem 9rem; margin-top: -72px; padding-top: calc(5.5rem + 72px); }
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 500; margin: .8rem 0 1rem; line-height: 1.08; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero p { max-width: 540px; margin: 0 auto; color: rgba(236,228,219,.78); font-size: 1.05rem; }
.hero .cta { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .mountains { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: auto; z-index: 1; }
.hero .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; inset-inline-end: -160px; top: -120px;
  background: radial-gradient(closest-side, rgba(184,147,90,.18), transparent); z-index: 1; }

/* value strip under hero */
.features { position: relative; z-index: 3; margin-top: -3.25rem; }
.features .card { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; box-shadow: var(--shadow-3); border: 0; }
.feature { display: flex; gap: .85rem; align-items: flex-start; padding: 1.25rem 1.4rem; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature .ico-wrap { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex-shrink: 0; }
.feature strong { display: block; font-size: .95rem; }
.feature span { color: var(--text-2); font-size: .85rem; }

/* category nav */
.cat-nav-wrap { position: sticky; top: 72px; z-index: 20; background: rgba(247,242,236,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); margin-top: 2.5rem; }
.cat-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .8rem 0; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: .5rem 1.05rem; border-radius: var(--r-pill); color: var(--text-2); font-weight: 500; font-size: .92rem;
  transition: background var(--t), color var(--t); }
.cat-nav a:hover { background: var(--alabaster); color: var(--brand); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.75rem 0 1.25rem; scroll-margin-top: 140px; }
.section-title h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
.section-title .count { color: var(--muted); font-size: .88rem; }

/* product card */
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: var(--r-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.product .img { position: relative; aspect-ratio: 5/4; display: grid; place-items: center; color: var(--brand); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #F6EFE6 0%, #E7DCCF 100%); }
.product .img .logo-mark { width: 26%; opacity: .14; transition: transform .4s var(--ease), opacity .4s; }
.product:hover .img .logo-mark { transform: scale(1.06); opacity: .2; }
.product .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product:hover .img img { transform: scale(1.04); }
.product .img .badge { position: absolute; top: .8rem; inset-inline-start: .8rem; background: rgba(255,255,255,.92); }
.product .body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product h3 { font-size: 1.12rem; font-weight: 600; margin: 0; }
.product .desc { color: var(--text-2); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .buy { display: flex; flex-direction: column; gap: .75rem; margin-top: auto; padding-top: .8rem; }
.product .price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.product .price small { font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 500; margin-inline-start: .15rem; }
.product form { display: flex; gap: .5rem; align-items: center; }
.product form .btn { flex: 1; }
.product.soldout { opacity: .6; }
.product.soldout:hover { transform: none; box-shadow: var(--shadow-1); }

/* checkout / cart / track */
.page-head { padding: 2.5rem 0 1.25rem; }
.page-head h1 { margin: .35rem 0 0; font-weight: 500; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .9rem; margin-top: .4rem; border-top: 1px solid var(--line); }
.summary-total strong:last-child { font-family: var(--font-display); font-size: 1.5rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--alabaster); color: var(--brand); flex-shrink: 0; }
.cart-thumb .logo-mark { width: 40%; opacity: .25; }
.cart-item .grow { flex: 1; min-width: 0; }
.sticky-side { position: sticky; top: 96px; }
/* main column + summary side card (cart, checkout, tracking, gift) - stacks on tablets/phones */
.side-grid { grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); align-items: start; }
.side-grid-narrow { grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1.25rem 0; }
.progress .step { text-align: center; font-size: .8rem; color: var(--muted); }
.progress .bar { height: 4px; border-radius: 4px; background: var(--line-2); margin-bottom: .5rem; }
.progress .step.done { color: var(--brand); font-weight: 600; }
.progress .step.done .bar { background: var(--gold); }
.progress .step.current .bar { background: linear-gradient(90deg, var(--gold) 50%, var(--line-2) 50%); }
[dir=rtl] .progress .step.current .bar { background: linear-gradient(270deg, var(--gold) 50%, var(--line-2) 50%); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .45rem 0 .8rem; padding-inline-start: 1.4rem; border-inline-start: 2px solid var(--line); position: relative; }
.timeline li:last-child { border-color: transparent; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: .65rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.pay-box { background: linear-gradient(180deg, #FBF6EE, var(--gold-soft)); border: 1px solid rgba(184,147,90,.35); border-radius: var(--r); padding: 1.3rem; }
.pay-box .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.transfer-no { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #fff; border: 1px dashed rgba(184,147,90,.6);
  border-radius: var(--r-sm); padding: .6rem .8rem; margin-top: .5rem; font-weight: 600; }
.big-code { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: .12em; color: var(--brand); line-height: 1.1; }

/* footer */
.site-footer { position: relative; overflow: hidden; background: var(--brand); color: var(--alabaster); margin-top: 5rem; padding: 3.5rem 1.25rem 2rem; text-align: center; }
.site-footer .logo { height: 80px; width: auto; margin: 0 auto 1rem; color: var(--alabaster); }
.site-footer .tag { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.05rem; }
.site-footer .foot-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; font-size: .85rem; }
.site-footer a { color: rgba(236,228,219,.65); }
.site-footer a:hover { color: #fff; }
.site-footer .copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(236,228,219,.1); font-size: .78rem; color: rgba(236,228,219,.45); }

/* =====================================================================
   STAFF
   ===================================================================== */
.staff { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand); color: var(--alabaster); padding: 1.25rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: rgba(236,228,219,.15) transparent; }
.sidebar .brand { justify-content: center; margin: .5rem 0 1.5rem; }
.sidebar .brand .logo { height: 74px; width: auto; color: var(--alabaster); }
.sidebar .section { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: rgba(184,147,90,.85); margin: 1.4rem .85rem .5rem; }
[dir=rtl] .sidebar .section { letter-spacing: 0; font-size: .78rem; }
.sidebar a.nav { display: flex; gap: .75rem; align-items: center; color: rgba(236,228,219,.78); padding: .6rem .85rem; border-radius: 10px; margin-bottom: 2px;
  font-size: .92rem; font-weight: 500; position: relative; transition: background var(--t), color var(--t); }
.sidebar a.nav .ico { width: 18px; height: 18px; opacity: .8; }
.sidebar a.nav:hover { background: rgba(236,228,219,.07); color: #fff; }
.sidebar a.nav.active { background: linear-gradient(90deg, rgba(184,147,90,.22), rgba(184,147,90,.06)); color: #fff; }
[dir=rtl] .sidebar a.nav.active { background: linear-gradient(270deg, rgba(184,147,90,.22), rgba(184,147,90,.06)); }
.sidebar a.nav.active::before { content: ""; position: absolute; inset-inline-start: -0.9rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
[dir=rtl] .sidebar a.nav.active::before { border-radius: 3px 0 0 3px; }
.sidebar a.nav.active .ico { opacity: 1; color: var(--gold); }
.sidebar .side-foot { margin-top: auto; padding-top: 1rem; }
.user-card { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 12px; background: rgba(236,228,219,.06); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--brand); font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.user-card .who { min-width: 0; line-height: 1.25; }
.user-card .who strong { display: block; font-size: .88rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .who span { font-size: .75rem; color: rgba(236,228,219,.55); }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.75rem;
  background: rgba(247,242,236,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .page-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.topbar .lang-btn { color: var(--text) !important; border-color: var(--line-2); background: #fff; }
.topbar .lang-btn:hover { border-color: var(--brand); background: #fff; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; transition: border-color var(--t); }
.icon-btn:hover { border-color: var(--brand); color: var(--text); }
.content { padding: 1.75rem; max-width: 1440px; }
.section-label { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 1.8rem 0 .9rem; }
.section-label:first-child { margin-top: 0; }
.menu-toggle { display: none; }
.scrim { display: none; }

/* order board */
.board { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: #EFE8E0; border-radius: var(--r); padding: .75rem; min-height: 240px; }
.col h3 { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: .85rem; font-weight: 600; padding: .25rem .35rem .75rem; margin: 0; color: var(--text-2); }
.col h3 .count { background: #fff; border-radius: var(--r-pill); padding: .05rem .55rem; font-size: .75rem; color: var(--text); }
.col h3 .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-inline-end: .45rem; }
.ocard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem; margin-bottom: .6rem; color: var(--text);
  box-shadow: var(--shadow-1); transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t); }
.ocard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgba(184,147,90,.5); color: var(--text); }
.ocard .code { font-weight: 700; letter-spacing: .06em; font-size: .9rem; }
.ocard .meta { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.ocard .meta .ico { width: 14px; height: 14px; }
.pos-item { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pos-item:last-child { border-bottom: 0; }

/* module tiles (manager home) */
.module-tile { display: flex; flex-direction: column; gap: .9rem; color: inherit; min-height: 150px; }
.module-tile .chip { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.module-tile .chip .ico { width: 22px; height: 22px; }
.module-tile .name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.module-tile .hint { margin-top: auto; font-size: .82rem; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; }
.module-tile .hint .ico { width: 16px; height: 16px; color: var(--gold); transition: transform var(--t); }
.module-tile:hover .hint .ico { transform: translateX(3px); }
[dir=rtl] .module-tile:hover .hint .ico { transform: scaleX(-1) translateX(3px); }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--cream); }
.login-art { position: relative; overflow: hidden; color: var(--alabaster); display: flex; flex-direction: column; justify-content: space-between; padding: 3rem;
  background: radial-gradient(900px 500px at 30% 0%, #4A3726, transparent 60%), linear-gradient(180deg, #22170D, #2B1D12); }
.login-art .logo { height: 110px; width: auto; color: var(--alabaster); }
.login-art .mountains { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; }
.login-art blockquote { position: relative; z-index: 2; margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.6rem; line-height: 1.35; max-width: 420px; color: #fff; }
.login-art blockquote span { display: block; margin-top: .75rem; font-family: var(--font-body); font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.login-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.login-box { width: min(400px, 100%); }
.login-box h1 { font-weight: 500; margin-bottom: .25rem; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .45s var(--ease) both; }
.reveal-2 { animation-delay: .06s; } .reveal-3 { animation-delay: .12s; } .reveal-4 { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 140px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .staff { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-3); }
  [dir=rtl] .sidebar { transform: translateX(100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(34,23,13,.4); z-index: 50; }
  .menu-toggle { display: inline-grid; }
  .board { grid-template-columns: repeat(5, 260px); }
  .topbar { padding: .75rem 1rem; } .content { padding: 1.1rem; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; padding: 2rem; }
  .login-art blockquote { display: none; }
  .features .card { grid-template-columns: 1fr; }
  .feature + .feature { border-inline-start: 0; border-top: 1px solid var(--line); }
  .sticky-side { position: static; }
  .side-grid, .gift-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .shop-header .container { height: 64px; }
  .shop-header .brand .logo { height: 42px; }
  .cart-pill .label { display: none; }
  .hero { padding-bottom: 7rem; margin-top: -64px; padding-top: calc(3.5rem + 64px); }
  .cat-nav-wrap { top: 64px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .product { border-radius: var(--r); }
  .product .body { padding: .75rem; }
  .product h3 { font-size: .98rem; }
  .product .desc { display: none; }
  .product form { justify-content: space-between; }
  .product .stepper button { width: 30px; }
  .product .stepper input { width: 30px !important; }
  .product form .btn { padding-inline: .7rem; }
  .product form .btn .label { display: none; }
  .topbar .who-mini { display: none; }
  /* cart rows: name + total on top, stepper + update below */
  .cart-item { flex-wrap: wrap; gap: .6rem .9rem; }
  .cart-thumb { width: 52px; height: 52px; }
  .cart-item .grow { flex: 1 1 calc(100% - 52px - 1rem); }
  .cart-item form { order: 3; flex: 1; }
  .cart-item > .num { order: 4; min-width: 0 !important; }
  /* staff top bar: one line, title truncates */
  .topbar { gap: .5rem; }
  .topbar > .row { flex-wrap: nowrap; min-width: 0; }
  .topbar .page-title { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .lang-btn span { display: none; }
  .topbar .lang-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  /* KPI tiles: 2 per row on phones instead of one long column */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .grid-4 .kpi { padding: .9rem; }
  .grid-4 .kpi .value { font-size: 1.2rem; }
  .grid-4 .kpi .chip { width: 30px; height: 30px; border-radius: 9px; }
  .grid-4 .kpi .label { font-size: .78rem; }
  .grid-4 .kpi .muted { font-size: .72rem; }
}

/* ---- period tabs ---- */
.tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: #EFE8E0; border-radius: var(--r-sm); flex-wrap: wrap; }
.tabs a { padding: .4rem .85rem; border-radius: 6px; color: var(--text-2); font-size: .86rem; font-weight: 500; }
.tabs a:hover { color: var(--brand); background: rgba(255,255,255,.6); }
.tabs a.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-1); font-weight: 600; }
.kpi .muted { margin-top: .3rem; font-size: .8rem; }

/* ---- print (delivery note) ---- */
@media print {
  .sidebar, .topbar, .no-print, .messages, .scrim { display: none !important; }
  .staff { display: block; } .content { padding: 0; } body { background: #fff; }
  .print-sheet { box-shadow: none; border: 0; max-width: none !important; }
}

/* ---------------------------------------------------------------- gifts */
.text-warn { color: var(--warn); }
.text-warn svg { width: 14px; height: 14px; vertical-align: -2px; }
.gift-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; font-weight: 600; color: var(--gold-ink);
  background: var(--gold-soft); border-radius: 999px; padding: .05rem .5rem; margin-inline-start: .25rem; }
.gift-tag svg { width: 12px; height: 12px; }
.gift-toggle { display: flex; align-items: center; gap: .85rem; margin: 1.1rem 0 0; padding: .95rem 1.1rem; cursor: pointer;
  border: 1px dashed rgba(184,147,90,.6); border-radius: var(--r-sm); background: #fff; transition: background .15s, border-color .15s; }
.gift-toggle:hover { border-color: var(--gold); }
.gift-toggle:has(input:checked) { border-style: solid; border-color: var(--brand); background: var(--gold-soft); }
.gift-toggle > span:last-child { display: flex; flex-direction: column; gap: .1rem; }
.gift-toggle .ico-wrap, .gift-banner .ico-wrap { width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: var(--gold-soft); }
.gift-toggle .ico-wrap svg, .gift-banner .ico-wrap svg { width: 20px; height: 20px; }
.gift-box { background: linear-gradient(180deg, #FBF6EE, var(--gold-soft)); border: 1px solid rgba(184,147,90,.35);
  border-radius: var(--r-sm); padding: 1rem 1.1rem; margin-top: .75rem; }
.gift-box .check { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.gift-card { margin: 0; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--gold);
  border-radius: var(--r-sm); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.6; color: var(--brand); }
.gift-card footer { margin-top: .5rem; font-family: var(--font-body); font-size: .85rem; color: var(--gold-ink); }
.gift-banner { display: flex; align-items: center; gap: .9rem; margin: 1.25rem 0 0; padding: .9rem 1.1rem;
  background: var(--gold-soft); border: 1px solid rgba(184,147,90,.4); border-radius: var(--r); }
.gift-banner > div { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.gift-banner span:not(.ico-wrap) { color: var(--text-2, #5b4c3f); font-size: .92rem; }
.gift-hero { text-align: center; max-width: 640px; margin: 2rem auto 1.5rem; }
.gift-hero h1 { margin: .3rem 0 .2rem; }
.gift-ico { width: 72px; height: 72px; margin: 0 auto .8rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: var(--gold-soft); box-shadow: 0 10px 30px rgba(34,23,13,.18); }
.gift-ico svg { width: 34px; height: 34px; }
.gift-grid { grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); align-items: start; }
@media (max-width: 760px) { .gift-grid { grid-template-columns: 1fr; } .gift-banner { flex-wrap: wrap; } }
