/* ═══════════ توزيعات — design tokens ═══════════ */
:root {
  --red:      #DC2626;
  --red-d:    #B91C1C;
  --amber:    #D97706;
  --amber-l:  #F59E0B;
  --pink:     #EC4899;

  --bg:        #FFF7F7;
  --bg-alt:    #FCF1F1;
  --surface:   rgba(255,255,255,.72);
  --surface-2: #FFFFFF;
  --border:    #F6DEDE;
  --border-strong: #EFC9C9;

  --text:      #0F172A;
  --text-2:    #4A5568;
  --text-muted:#83666C;

  --grad: linear-gradient(135deg, #DC2626 0%, #EC4899 100%);
  --grad-gold: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  --grad-soft: linear-gradient(135deg, rgba(220,38,38,.10), rgba(236,72,153,.10));

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(120, 30, 40, .06);
  --shadow:    0 8px 30px rgba(120, 30, 40, .09);
  --shadow-lg: 0 20px 50px rgba(120, 30, 40, .16);

  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;

  --container: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-head: 'Noto Naskh Arabic', 'Segoe UI', serif;
  --font-body: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
}

body.dark {
  --bg:        #140B0E;
  --bg-alt:    #1B0F13;
  --surface:   rgba(255,255,255,.045);
  --surface-2: #22141A;
  --border:    rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.20);
  --text:      #F8EFF1;
  --text-2:    #D6C3C8;
  --text-muted:#A98F96;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
  --shadow:    0 8px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.12rem; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; width: 100%; }
.section { padding-block: 4rem; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-12 { margin-top: .75rem; } .mt-24 { margin-top: 1.5rem; } .mb-40 { margin-bottom: 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--red); font-weight: 600; }
.link:hover { text-decoration: underline; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

.glow {
  position: fixed; inset-inline: 0; top: 0; height: 60vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,.16), transparent 62%);
}
.blob { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.blob-a { width: 380px; height: 380px; background: rgba(236,72,153,.20); top: 18%; inset-inline-start: -140px; }
.blob-b { width: 420px; height: 420px; background: rgba(217,119,6,.16); bottom: 6%; inset-inline-end: -160px; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card-pad { padding: 1.75rem; }
.card-ico { color: var(--red); width: 30px; height: 30px; margin-bottom: .75rem; }
.card-pad h3 { margin-bottom: .5rem; }
.card-pad p { color: var(--text-2); font-size: .95rem; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 1rem; }

/* ═══════════ buttons & controls ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius-pill); border: none;
  font-size: .92rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; white-space: nowrap; min-height: 44px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, opacity .18s;
}
.btn svg { width: var(--icon-sm); height: var(--icon-sm); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(220,38,38,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(220,38,38,.4); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--grad-soft); transform: translateY(-2px); border-color: var(--red); }
.btn-gold { background: var(--grad-gold); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(217,119,6,.35); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; min-height: 38px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid transparent; cursor: pointer; color: var(--text);
  transition: background .18s, transform .18s var(--ease), border-color .18s;
}
.icon-btn:hover { background: var(--grad-soft); border-color: var(--border); transform: translateY(-1px); }
.icon-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.icon-btn svg { width: var(--icon-md); height: var(--icon-md); }
.cart-count {
  position: absolute; top: 4px; inset-inline-end: 4px; min-width: 19px; height: 19px;
  display: grid; place-items: center; padding-inline: 5px;
  background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; border-radius: var(--radius-pill);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: rgba(220,38,38,.09);
  border: 1px solid rgba(220,38,38,.16);
  padding: .3rem .75rem; border-radius: var(--radius-pill); margin-bottom: .9rem;
}
.eyebrow svg { width: 14px; height: 14px; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.field > span { font-size: .78rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
input, select, textarea {
  width: 100%; padding: .7rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1.5px solid var(--border);
  font-size: .93rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
body.dark input, body.dark select, body.dark textarea { background: rgba(255,255,255,.05); }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,.14); }
input[type="checkbox"], input[type="radio"] { padding: 0; border: none; width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; box-shadow: none; }
input[type="range"] { padding: 0; border: none; background: transparent; box-shadow: none; accent-color: var(--red); cursor: pointer; }
input[type="number"] { -moz-appearance: textfield; }
input.error, select.error, textarea.error { border-color: var(--red); background: rgba(220,38,38,.05); }
textarea { resize: vertical; min-height: 90px; }
.field-error { color: var(--red); font-size: .8rem; font-weight: 600; margin-top: .4rem; min-height: 1.1em; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: .7rem; text-align: center; }
.field-inline { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-muted); }
.field-inline select { width: auto; padding: .45rem .8rem; }

/* ═══════════ navbar ═══════════ */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto; padding: .55rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: var(--grad); color: #fff;
  box-shadow: 0 8px 22px rgba(220,38,38,.3); flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.12rem; }
.brand-text small { font-size: .68rem; color: var(--text-muted); letter-spacing: .02em; }
.nav-links { display: flex; gap: .3rem; }
.nav-link {
  padding: .5rem .85rem; border-radius: var(--radius-pill); font-size: .89rem; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: background .18s, color .18s;
}
.nav-link:hover { background: var(--grad-soft); color: var(--red); }
.nav-link.active { background: var(--red); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-burger { display: none; }
.mobile-menu {
  display: none; flex-direction: column; gap: .2rem; padding: .6rem 1.5rem 1.1rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: .6rem .5rem; border-radius: var(--radius-sm); font-weight: 600; }
.mobile-menu a:hover { background: var(--grad-soft); color: var(--red); }

/* ═══════════ views ═══════════ */
.view { display: none; animation: fadeUp .45s var(--ease) both; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-head { padding-block: 2.75rem 1.75rem; position: relative; z-index: 1; }
.page-head h1 { margin-bottom: .5rem; }
.page-head p { color: var(--text-2); max-width: 62ch; }

/* ═══════════ hero ═══════════ */
.hero { position: relative; z-index: 1; padding-block: 3.5rem 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .hl {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--text-2); font-size: 1.04rem; max-width: 56ch; margin-bottom: 1.6rem; }
.hero-search {
  display: flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .45rem;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-pill); box-shadow: var(--shadow); max-width: 560px;
}
body.dark .hero-search { background: rgba(255,255,255,.05); }
.hero-search svg { width: var(--icon-md); color: var(--text-muted); flex-shrink: 0; }
.hero-search input { border: none; background: transparent; padding: .55rem .5rem; flex: 1; box-shadow: none; }
.hero-search input:focus { box-shadow: none; }
.hero-search .btn { flex-shrink: 0; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.chips-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.chip {
  padding: .35rem .85rem; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid var(--border);
  font-size: .8rem; font-weight: 600; color: var(--text-2); min-height: 34px;
  transition: all .18s var(--ease);
}
body.dark .chip { background: rgba(255,255,255,.05); }
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

.stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--red); }
.stat span { font-size: .8rem; color: var(--text-muted); }

.hero-art { position: relative; }
.art-card { padding: 1.25rem; border-radius: var(--radius-lg); }
.float-badge {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .5rem .9rem; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; box-shadow: var(--shadow);
  animation: bob 4s ease-in-out infinite;
}
body.dark .float-badge { background: var(--surface-2); }
.float-badge svg { width: var(--icon-sm); color: var(--amber); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ═══════════ section headers & grids ═══════════ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.sec-head h2 { margin-bottom: .35rem; }
.sec-head p { color: var(--text-2); font-size: .93rem; max-width: 62ch; }
.sec-head-center { justify-content: center; text-align: center; }
.sec-head-center p { margin-inline: auto; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-occ { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ═══════════ category cards ═══════════ */
.cat-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: start; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.cat-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-soft); color: var(--red);
}
.cat-ico svg { width: 23px; height: 23px; }
.cat-card strong { font-family: var(--font-head); font-size: 1.02rem; }
.cat-card span { font-size: .8rem; color: var(--text-muted); }
.cat-card .cat-count { font-size: .74rem; font-weight: 700; color: var(--amber); }

/* ═══════════ product cards ═══════════ */
.p-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
body.dark .p-card { background: var(--surface-2); }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.p-art { position: relative; aspect-ratio: 4 / 3; background: var(--grad-soft); overflow: hidden; }
.p-art svg { width: 100%; height: 100%; }
.p-badges { position: absolute; top: .6rem; inset-inline-start: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .18rem .55rem; border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-red { background: var(--grad); color: #fff; border-color: transparent; }
.badge-gold { background: var(--grad-gold); color: #fff; border-color: transparent; }
.badge-green { background: #E8F7EE; color: #166534; border-color: #C7EBD6; }
body.dark .badge-green { background: rgba(74,222,128,.14); color: #86EFAC; border-color: transparent; }
.p-body { padding: 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.p-cat { font-size: .72rem; font-weight: 700; color: var(--amber); letter-spacing: .03em; }
.p-title { font-family: var(--font-head); font-size: 1rem; line-height: 1.35; }
.p-meta { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-muted); }
.p-meta svg { width: 14px; height: 14px; color: var(--amber); fill: var(--amber); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .6rem; }
.p-price { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--red); }
.p-price small { font-size: .7rem; color: var(--text-muted); font-weight: 600; font-family: var(--font-body); }
.p-add {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--grad-soft); color: var(--red); border: 1px solid var(--border); cursor: pointer;
  transition: all .18s var(--ease);
}
.p-add:hover { background: var(--grad); color: #fff; transform: scale(1.06); }
.p-add svg { width: var(--icon-md); height: var(--icon-md); }
.p-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.p-tag { font-size: .68rem; padding: .12rem .5rem; border-radius: var(--radius-pill); background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
body.dark .p-tag { background: rgba(255,255,255,.05); }

/* ═══════════ toolbar & tabs ═══════════ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .25rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: .25rem; overflow-x: auto; }
body.dark .tabs { background: rgba(255,255,255,.05); }
.tab {
  padding: .45rem 1rem; border-radius: var(--radius-pill); border: none; background: transparent;
  font-size: .84rem; font-weight: 700; color: var(--text-muted); cursor: pointer; white-space: nowrap;
  transition: all .2s var(--ease);
}
.tab:hover { color: var(--red); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(220,38,38,.28); }

/* ═══════════ occasion cards ═══════════ */
.occ-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: 1.35rem .9rem; border-radius: var(--radius); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
body.dark .occ-card { background: var(--surface-2); }
.occ-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.occ-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; }
.occ-ico svg { width: 22px; height: 22px; }
.occ-card strong { font-family: var(--font-head); font-size: .98rem; }
.occ-card span { font-size: .76rem; color: var(--text-muted); }

/* ═══════════ steps ═══════════ */
.step-card { position: relative; padding: 1.5rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
body.dark .step-card { background: var(--surface-2); }
.step-num {
  position: absolute; top: -14px; inset-inline-start: 1.25rem;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem;
  box-shadow: 0 8px 18px rgba(220,38,38,.3);
}
.step-card h3 { margin: .6rem 0 .35rem; font-size: 1.02rem; }
.step-card p { color: var(--text-2); font-size: .88rem; }
.step-ico { color: var(--red); }
.step-ico svg { width: 24px; height: 24px; }

/* ═══════════ testimonials ═══════════ */
.testi { padding: 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem; }
body.dark .testi { background: var(--surface-2); }
.testi-stars { display: flex; gap: .15rem; color: var(--amber); }
.testi-stars svg { width: 15px; height: 15px; fill: var(--amber); }
.testi p { font-size: .93rem; color: var(--text-2); flex: 1; }
.testi-person { display: flex; align-items: center; gap: .7rem; }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-soft); color: var(--red); font-weight: 700; font-size: .9rem;
  border: 1px solid var(--border); flex-shrink: 0;
}
.testi-person strong { display: block; font-size: .9rem; }
.testi-person span { font-size: .76rem; color: var(--text-muted); }

/* ═══════════ bands & lists ═══════════ */
.band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.25rem; padding: 2.25rem; border-radius: var(--radius-lg); align-items: center; }
.band h2 { margin-bottom: .6rem; }
.band p { color: var(--text-2); margin-bottom: 1.1rem; }
.band-cta { grid-template-columns: 1.4fr .6fr; align-items: center; }
.band-cta-actions { display: flex; flex-direction: column; gap: .6rem; }
.tick-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.2rem; }
.tick-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .91rem; color: var(--text-2); }
.tick-list svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: .28rem; }
.band-art { display: flex; flex-direction: column; gap: 1rem; }
.palette-row { display: flex; gap: .6rem; justify-content: center; }
.palette-row span { width: 52px; height: 52px; border-radius: 16px; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.palette-row span:nth-child(2) { animation-delay: .4s; }
.palette-row span:nth-child(3) { animation-delay: .8s; }
.palette-row span:nth-child(4) { animation-delay: 1.2s; }
.mini-wizard { display: flex; flex-direction: column; gap: .5rem; }
.mw-step {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem;
  border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--text-2);
}
body.dark .mw-step { background: rgba(255,255,255,.05); }
.mw-step span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-alt); font-size: .74rem; font-weight: 700; flex-shrink: 0;
}
body.dark .mw-step span { background: rgba(255,255,255,.1); }
.mw-step.active { border-color: var(--red); color: var(--text); background: var(--grad-soft); }
.mw-step.active span { background: var(--grad); color: #fff; }

.trust-grid .card-ico { color: var(--red); }
.info-list { display: flex; flex-direction: column; gap: .95rem; }
.info-list li { display: flex; gap: .7rem; align-items: flex-start; }
.info-list svg { width: var(--icon-md); color: var(--red); flex-shrink: 0; margin-top: .18rem; }
.info-list strong { display: block; font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.info-list span, .info-list a { font-size: .93rem; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 2.25rem; border-radius: var(--radius-lg); }
.newsletter h2 { margin-bottom: .4rem; }
.newsletter p { color: var(--text-2); font-size: .93rem; }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-content: start; }
.news-form .field-error { grid-column: 1 / -1; margin-top: 0; }

/* ═══════════ AI designer ═══════════ */
.ai-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.wiz { padding: 1.75rem; border-radius: var(--radius-lg); }
.steps-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }
.step-dot {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem;
  border-radius: var(--radius-pill); background: var(--bg-alt); border: 1px solid var(--border);
  font-size: .76rem; font-weight: 700; color: var(--text-muted);
}
body.dark .step-dot { background: rgba(255,255,255,.05); }
.step-dot span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: .7rem; }
.step-dot.active { background: var(--grad-soft); border-color: var(--red); color: var(--red); }
.step-dot.active span { background: var(--grad); color: #fff; }
.step-dot.done { color: var(--text-2); border-color: var(--border-strong); }

.wiz-step h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.wiz-step > .muted { margin-bottom: 1.1rem; font-size: .89rem; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.opt {
  display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .95rem .6rem;
  border-radius: var(--radius); background: var(--surface-2); border: 1.5px solid var(--border);
  cursor: pointer; text-align: center; font-size: .85rem; font-weight: 600;
  transition: all .2s var(--ease);
}
body.dark .opt { background: rgba(255,255,255,.05); }
.opt svg { width: 22px; height: 22px; color: var(--text-muted); }
.opt:hover { border-color: var(--red); transform: translateY(-2px); }
.opt.sel { border-color: var(--red); background: var(--grad-soft); color: var(--red); }
.opt.sel svg { color: var(--red); }
.quick-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.range-row { display: flex; align-items: center; gap: .5rem; }
.range-row span { color: var(--text-muted); }
.range-out { text-align: center; font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.range-out strong { color: var(--red); font-size: 1.2rem; font-family: var(--font-head); }
input[type="range"] { padding: 0; background: transparent; accent-color: var(--red); cursor: pointer; }
.swatch-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.swatch {
  width: 52px; height: 52px; border-radius: 16px; cursor: pointer; border: 3px solid transparent;
  box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), border-color .18s;
}
.swatch:hover { transform: translateY(-3px); }
.swatch.sel { border-color: var(--text); transform: translateY(-3px); }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.wiz-pos { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

.ai-out { padding: 1.6rem; border-radius: var(--radius-lg); position: sticky; top: 84px; }
.ai-out h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin-bottom: 1rem; }
.ai-out h2 svg { width: var(--icon-md); color: var(--amber); }
.ai-empty { text-align: center; color: var(--text-muted); font-size: .88rem; padding: 1.5rem .5rem; }
.ai-empty svg { width: 34px; height: 34px; margin: 0 auto .6rem; color: var(--border-strong); }

.ai-pal { display: flex; gap: .4rem; margin-bottom: 1rem; }
.ai-pal span { flex: 1; height: 40px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.ai-line { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.ai-line:last-of-type { border-bottom: none; }
.ai-line span:first-child { color: var(--text-muted); }
.ai-line strong { font-weight: 700; }
.pack { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; background: var(--surface-2); transition: all .2s var(--ease); }
body.dark .pack { background: rgba(255,255,255,.05); }
.pack.best { border-color: var(--red); background: var(--grad-soft); box-shadow: var(--shadow); }
.pack-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.pack-head strong { font-family: var(--font-head); font-size: 1rem; }
.pack-price { font-family: var(--font-head); font-weight: 700; color: var(--red); font-size: 1.05rem; }
.pack ul { display: flex; flex-direction: column; gap: .3rem; margin-top: .5rem; }
.pack ul li { display: flex; gap: .45rem; font-size: .82rem; color: var(--text-2); }
.pack ul li svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; margin-top: .3rem; }
.pack-total { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--grad); color: #fff; }
.pack-total strong { font-family: var(--font-head); font-size: 1.2rem; }

/* ═══════════ shop ═══════════ */
.shop-bar {
  display: flex; align-items: center; gap: .5rem; padding: .4rem 1rem .4rem .4rem;
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
body.dark .shop-bar { background: rgba(255,255,255,.05); }
.shop-bar svg { width: var(--icon-md); color: var(--text-muted); flex-shrink: 0; }
.shop-bar input { border: none; background: transparent; box-shadow: none; flex: 1; }
.shop-bar input:focus { box-shadow: none; }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.filters { padding: 1.25rem; border-radius: var(--radius); position: sticky; top: 84px; }
.filters h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin-bottom: 1rem; }
.filters h3 svg { width: var(--icon-sm); color: var(--red); }
.filter-block { border: none; margin-bottom: 1.35rem; }
.filter-block legend { font-size: .78rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; margin-bottom: .55rem; }
.check-list { display: flex; flex-direction: column; gap: .1rem; max-height: 240px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: .5rem; padding: .38rem .45rem; border-radius: var(--radius-sm); font-size: .87rem; cursor: pointer; transition: background .18s; }
.check:hover { background: var(--grad-soft); }
.check input { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.results-head p { font-size: .86rem; }

/* ═══════════ sell & contact ═══════════ */
.sell-grid, .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
.sell-side { position: sticky; top: 84px; }
.sell-side h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; margin-bottom: .75rem; }
.sell-side h3 svg { width: var(--icon-sm); color: var(--red); }
.sell-side p { font-size: .89rem; }
.form-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.faq { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
body.dark .faq-item { background: rgba(255,255,255,.05); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem .95rem; background: transparent; border: none; cursor: pointer;
  font-size: .88rem; font-weight: 700; text-align: start;
}
.faq-q svg { width: var(--icon-sm); color: var(--red); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 .95rem .9rem; font-size: .85rem; color: var(--text-2); }

/* ═══════════ footer ═══════════ */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 2.5rem; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid h4 { font-size: .92rem; margin-bottom: .8rem; }
.footer-grid a { display: block; font-size: .86rem; color: var(--text-2); padding: .22rem 0; transition: color .18s; }
.footer-grid a:hover { color: var(--red); }
.footer-base {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-block: 1.1rem; font-size: .8rem; color: var(--text-muted);
}

/* ═══════════ drawer ═══════════ */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); z-index: 60; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw); z-index: 61;
  background: var(--bg); border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slideIn .3s var(--ease) both;
}
@keyframes slideIn { from { transform: translateX(-24px); opacity: .4; } to { transform: none; opacity: 1; } }
[dir="rtl"] .drawer { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-head h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; }
.drawer-head svg { width: var(--icon-md); color: var(--red); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-foot { border-top: 1px solid var(--border); padding: 1.1rem 1.25rem; background: var(--bg-alt); }

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--grad-soft); overflow: hidden; }
.cart-thumb svg { width: 100%; height: 100%; }
.cart-info strong { display: block; font-size: .88rem; font-family: var(--font-head); }
.cart-info span { font-size: .78rem; color: var(--text-muted); }
.qty-row { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; }
.qty-btn {
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; color: var(--text);
  transition: all .18s var(--ease);
}
body.dark .qty-btn { background: rgba(255,255,255,.06); }
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-btn svg { width: 14px; height: 14px; }
.qty-val { min-width: 26px; text-align: center; font-weight: 700; font-size: .86rem; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-price { font-weight: 700; color: var(--red); font-size: .92rem; }
.cart-del { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: .2rem; border-radius: 6px; transition: color .18s; }
.cart-del:hover { color: var(--red); }
.cart-del svg { width: 16px; height: 16px; }
.sum-line { display: flex; justify-content: space-between; font-size: .88rem; padding: .3rem 0; color: var(--text-2); }
.sum-line.total { font-size: 1.05rem; font-weight: 700; color: var(--text); padding-top: .7rem; border-top: 1px solid var(--border); margin-top: .5rem; }
.sum-line.total span:last-child { font-family: var(--font-head); color: var(--red); font-size: 1.2rem; }

/* ═══════════ empty / skeleton ═══════════ */
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto .8rem; color: var(--border-strong); }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.skel { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.skel-art { aspect-ratio: 4 / 3; }
.skel-line { height: 12px; margin: .8rem 1rem; border-radius: 6px; }
.skel-line.short { width: 55%; }
.skel, .skel-line { background-image: linear-gradient(90deg, transparent 25%, rgba(220,38,38,.09) 50%, transparent 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═══════════ modal ═══════════ */
.overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1rem; background: rgba(15,23,42,.55); backdrop-filter: blur(5px); animation: fade .2s ease; overflow-y: auto; }
.modal {
  position: relative; width: 100%; max-width: 460px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-lg); animation: fadeUp .3s var(--ease) both;
}
.modal-lg { max-width: 720px; }
.modal-x { position: absolute; top: .6rem; inset-inline-start: .6rem; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pm-art { border-radius: var(--radius); overflow: hidden; background: var(--grad-soft); aspect-ratio: 1 / 1; }
.pm-art svg { width: 100%; height: 100%; }
.pm-info h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.pm-price { font-family: var(--font-head); font-size: 1.5rem; color: var(--red); font-weight: 700; margin-bottom: .6rem; }
.pm-desc { font-size: .89rem; color: var(--text-2); margin-bottom: 1rem; }
.pm-opts { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.1rem; }
.pm-dots { display: flex; gap: .45rem; }
.pm-dot { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; transition: transform .18s var(--ease); }
.pm-dot:hover { transform: scale(1.1); }
.pm-dot.sel { border-color: var(--text); }

/* ═══════════ toast ═══════════ */
.toast-wrap { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: .5rem; max-width: min(360px, 90vw); }
.toast {
  display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem;
  border-radius: var(--radius-sm); font-size: .87rem; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: fadeUp .3s var(--ease) both;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.toast svg { width: var(--icon-sm); flex-shrink: 0; }
.toast.success svg { color: #16A34A; }
.toast.error svg { color: var(--red); }
.toast.info svg { color: var(--amber); }

/* ═══════════ responsive ═══════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 520px; }
  .ai-layout, .sell-grid, .contact-grid, .shop-layout { grid-template-columns: 1fr; }
  .filters, .ai-out, .sell-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band, .band-cta { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-art { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .container { padding-inline: 1rem; }
  .nav-inner { padding-inline: 1rem; }
  .section { padding-block: 2.75rem; }
  .hero { padding-block: 2.25rem 1.5rem; }
  .hero-search, .shop-bar { flex-wrap: wrap; border-radius: var(--radius); padding: .75rem; }
  .hero-search input, .shop-bar input { flex: 1 1 100%; }
  .hero-search .btn, .shop-bar .btn { width: 100%; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .grid-cats, .grid-occ { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .stats { gap: 1.25rem; }
  .toolbar, .sec-head, .results-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .news-form { grid-template-columns: 1fr; }
  .toast-wrap { inset-inline: 1rem; bottom: 1rem; }
  .modal { padding: 1.25rem; }
  .wiz-nav { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .wiz-nav .btn { flex: 1; }
  .wiz-pos { order: 3; width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
