/* My Shahana — storefront catalogue
   Layout: poster-led catalogue. Crown-teal header, split hero with the full spray line-up,
   sticky category rail, product families as poster cards with colour swatches, detail sheet. */
:root {
  --sky: #e3f3f8;        /* poster background */
  --paper: #f7fbfc;      /* page */
  --card: #ffffff;
  --ink: #0f2e37;        /* text */
  --muted: #557079;
  --line: #cfe3ea;
  --teal: #1a8aa0;       /* crown */
  --teal-deep: #0e5d6d;
  --rose: #b23a43;       /* poster subtitle red */
  --on-teal: #ffffff;
  --wa: #1f9d55;

  --f-display-lat: "Marcellus", "Times New Roman", serif;
  --f-display-ku: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --f-body-lat: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --f-body-ku: "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, sans-serif;

  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky: #10303a; --paper: #0a1f26; --card: #0f2a33; --ink: #e6f3f6; --muted: #9fbcc4;
    --line: #1f4651; --teal: #4fc0d6; --teal-deep: #8ad8e7; --rose: #f08a91; --on-teal: #062027; --wa: #36c477;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky: #10303a; --paper: #0a1f26; --card: #0f2a33; --ink: #e6f3f6; --muted: #9fbcc4;
  --line: #1f4651; --teal: #4fc0d6; --teal-deep: #8ad8e7; --rose: #f08a91; --on-teal: #062027; --wa: #36c477;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body-lat); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: var(--f-body-ku); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.d { font-family: var(--f-display-lat); font-weight: 400; letter-spacing: .01em; }
html[dir="rtl"] .d { font-family: var(--f-display-ku); font-weight: 700; letter-spacing: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--card); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--teal); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper);
}
.lang button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--teal); color: var(--on-teal); }
.lang button[data-lang="ckb"], .lang button[data-lang="ar"] { font-family: var(--f-body-ku); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; }
.top .btn-wa { padding: 9px 15px; font-size: 14px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky), var(--paper)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 18px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); color: var(--teal-deep); }
html[dir="rtl"] .hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.45; }
.hero .sub { color: var(--rose); font-size: 19px; margin: 14px 0 0; font-weight: 600; }
.hero .lede { color: var(--muted); max-width: 52ch; margin: 18px 0 28px; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: grid; }
.facts b { font-family: var(--f-display-lat); font-size: 30px; font-weight: 400; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-art::before {
  content: ""; position: absolute; inset: -6% -10% 8% -10%; border-radius: 50% 50% 0 0;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%);
}
.hero-art img { position: relative; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(14, 93, 109, .55); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Category rail */
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 15; background: var(--paper); border-bottom: 1px solid var(--line); }
.rail .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.rail .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.chip small { color: var(--muted); font-weight: 500; margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .8; }

/* Catalogue */
.section { padding-block: 44px 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--teal-deep); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
  display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: start; padding: 0; min-width: 0;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(14, 93, 109, .6); }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: var(--sky); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.badge {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
}
.count {
  position: absolute; bottom: 10px; inset-inline-end: 10px; background: color-mix(in srgb, var(--card) 90%, transparent);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--teal-deep);
}
.card .body { display: grid; align-content: start; gap: 6px; padding: 14px 16px 16px; }
.card .cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
html[dir="rtl"] .card .cat { letter-spacing: 0; font-size: 12px; }
.card h3 { font-size: 17px; font-weight: 700; font-family: inherit; }
.card .size { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dot {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line); padding: 0;
}
.dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--teal); }

/* Wholesale band */
.band { background: var(--teal-deep); color: var(--paper); }
:root[data-theme="dark"] .band { background: #0d3a45; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0d3a45; } }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
.band h2 { font-size: clamp(28px, 3.6vw, 42px); color: #ffffff; }
.band p { color: #cfe9ef; max-width: 54ch; }
.band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band li { display: flex; gap: 12px; align-items: flex-start; color: #e8f6f9; }
.band li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; transform: rotate(45deg); background: #7fd3e3; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 56px; }
.contact h2 { grid-column: 1 / -1; font-size: clamp(26px, 3vw, 36px); color: var(--teal-deep); }
.cbox { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); display: grid; gap: 6px; }
.cbox span { font-size: 13px; color: var(--muted); }
.cbox a { font-family: var(--f-display-lat); font-size: clamp(20px, 2vw, 24px); white-space: nowrap; text-decoration: none; color: var(--teal); direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.cbox a.small { font-family: inherit; font-size: 17px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; }
footer a { color: var(--teal); text-decoration: none; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 26px; color: var(--muted); font-size: 14px; }
footer img { height: 38px; width: auto; }

/* Detail sheet */
.sheet { border: 0; padding: 0; background: transparent; max-width: min(1000px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.sheet::backdrop { background: rgba(6, 30, 37, .62); backdrop-filter: blur(3px); }
.sheet-in { background: var(--card); color: var(--ink); border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; max-height: calc(100dvh - 24px); }
.sheet-img { background: var(--sky); position: relative; min-width: 0; display: flex; align-items: center; }
.sheet-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sheet-txt { padding: 28px; overflow-y: auto; display: grid; align-content: start; gap: 14px; min-width: 0; }
.sheet-txt h3 { font-size: 26px; color: var(--teal-deep); }
.sheet-txt .tag { color: var(--rose); font-weight: 600; margin: 0; }
.sheet-txt .meta { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 10px; align-items: flex-start; }
.notes li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; transform: rotate(45deg); background: var(--teal); }
.vlabel { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
html[dir="rtl"] .vlabel { letter-spacing: 0; font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sky); }
.thumbs button[aria-pressed="true"] { border-color: var(--teal); }
.thumbs img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.vname { font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 2;
}

/* Floating WhatsApp (phones) */
.fab {
  position: fixed; z-index: 25; display: none;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.fab svg { width: 28px; height: 28px; }

@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nav { display: none; }
  .top-actions { margin-inline-start: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 32px; }
  .hero-art { width: min(100%, 360px); }
  .band .wrap { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-in { grid-template-columns: 1fr; overflow-y: auto; }
  .sheet-txt { overflow: visible; }
  .sheet-img img { max-height: 52dvh; object-fit: contain; }
  .fab { display: grid; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .body { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .top .btn-wa span { display: none; }
  .top .btn-wa { padding: 9px; }
  .brand img { height: 40px; }
  .sheet-txt { padding: 20px; }
  .contact .wrap { grid-template-columns: 1fr; }
  .lang button { padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
html[dir="rtl"] .vname { text-align: right; }
