:root {
  --ink: #161a22;
  --ink-soft: #5c6573;
  --paper: #eef1f6;
  --paper-2: #e1e6ef;
  --card: #ffffff;
  --brass: #1f6f5b;
  --brass-deep: #174f42;
  --line: rgba(22, 26, 34, 0.12);
  --good: #1d6b45;
  --wa: #128c7e;
  --ms: #0084ff;
  --shadow: 0 24px 60px rgba(22, 26, 34, 0.08);
  --serif: "Amiri", "Noto Naskh Arabic", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --radius: 18px;
  --on-accent: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--brass-deep);
  font-size: 13px;
  letter-spacing: 0.01em;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(40px, 5vw, 68px); margin: 14px 0; }
h2 { font-size: clamp(30px, 3vw, 44px); margin: 0 0 10px; }
h3 { margin: 0 0 8px; font-size: 20px; }
p { margin: 0; }

.site-header, .store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0;
}
.logo svg { display: block; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .text-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.nav a.active, .nav a:hover { color: var(--ink); background: rgba(28, 23, 18, 0.05); }
.actions { display: flex; align-items: center; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--ink);
  color: #f7f3ec;
  font-size: 15px;
  line-height: 1;
}
.btn.light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.brass { background: var(--brass); color: #fffaf3; }
.btn.full { width: 100%; }
.btn:hover { transform: translateY(-1px); }

.hero { padding: 54px 0 20px; }
.hero-grid, .split, .checkout-grid, .product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.stats { display: flex; gap: 22px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: 22px; }
.stats span { color: var(--ink-soft); font-size: 13px; }

.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #efe8dc;
  color: var(--ink-soft);
  font-size: 12px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8b8a2; }
.url {
  margin-inline-start: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fffdf9;
}
.mock { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 280px; }
.mock-copy { padding: 22px; }
.mock-copy strong { font-family: var(--serif); font-size: 28px; display: block; }
.mock-photo {
  background: #d9cfc2 center/cover no-repeat;
  min-height: 220px;
}
.mini-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.mini {
  background: #f7f1e8;
  border-radius: 12px;
  overflow: hidden;
  font-size: 12px;
}
.mini i {
  display: block;
  height: 84px;
  background: #ddd2c4 center/cover no-repeat;
}
.mini span { display: block; padding: 8px 10px 10px; }

.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.cards, .plans, .packs { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, 1fr); }
.card, .plan, .pack, .policy, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card .num {
  font-family: var(--serif);
  color: var(--brass);
  font-size: 28px;
}
.muted { color: var(--ink-soft); }
.list { margin: 14px 0 0; padding: 0; list-style: none; }
.list li { padding: 7px 0 7px 0; border-top: 1px solid var(--line); }
.list li::before { content: "– "; color: var(--brass); }

.plans { grid-template-columns: 1.15fr 1fr 1fr; align-items: stretch; }
.plan.featured {
  background: var(--ink);
  color: #f6f1e8;
  border-color: var(--ink);
}
.plan.featured .muted, .plan.featured .list li { color: #d9d0c4; }
.price { font-family: var(--serif); font-size: 48px; line-height: 1; margin: 12px 0 4px; }
.price small { font-family: var(--sans); font-size: 14px; margin-inline-start: 4px; }
.old { color: #a89880; text-decoration: line-through; font-size: 14px; }
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.2);
  color: var(--brass-deep);
  font-size: 12px;
}
.plan.featured .tag { color: #f0d7ad; }
.packs { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }

.policy + .policy { margin-top: 14px; }
.policy h2 { font-size: 32px; }
.policy ul { margin: 8px 0 0; padding-inline-start: 18px; }
.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6efe4;
}

.site-footer, .store-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--ink-soft);
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot nav { display: flex; gap: 14px; }

.domain-bar {
  background: var(--ink);
  color: #f3ecdf;
  font-size: 13px;
}
.domain-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.domain-bar a { color: #e7c99a; }

.store-header .logo { font-size: 26px; letter-spacing: 0.08em; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}
.badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brass);
  color: white;
  font-size: 11px;
  line-height: 18px;
}

.store-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: #ebe4d8;
}
.store-hero .copy { padding: 72px 8vw 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.store-hero .photo { background: #cfc4b4 center/cover no-repeat; min-height: 420px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 22px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink-soft);
}
.chip.on { background: var(--ink); color: #f7f3ec; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: transparent;
}
.product .media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #e4dcd0;
  aspect-ratio: 3/4;
}
.product img { width: 100%; height: 100%; object-fit: cover; }
.flag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--card);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}
.product h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.meta { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 14px; }
.price-row { display: flex; gap: 8px; align-items: baseline; }
.price-row b { font-size: 16px; }

.product-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; padding: 28px 0 60px; }
.gallery {
  border-radius: 20px;
  overflow: hidden;
  background: #e5dcd0;
  min-height: 620px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 620px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.choice {
  min-width: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.choice.on { border-color: var(--ink); background: var(--ink); color: #f7f3ec; }
.qty { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.qty button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}

.checkout-grid { align-items: start; padding-bottom: 50px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 14px; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
.pay-options { display: grid; gap: 8px; margin: 8px 0 16px; }
.pay {
  text-align: right;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
}
.pay.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.pay small { display: block; color: var(--ink-soft); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.total { font-size: 20px; font-weight: 600; }
.error { color: #8f2d2d; font-size: 14px; min-height: 1.2em; }
.success { display: none; }
.success.show { display: block; }
.hidden { display: none !important; }

.floats {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
.floats a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  border-radius: 999px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.floats .wa { background: var(--wa); }
.floats .ms { background: var(--ms); }

.drawer-back {
  position: fixed;
  inset: 0;
  background: rgba(28, 23, 18, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 40;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--paper);
  z-index: 41;
  transform: translateX(-104%);
  transition: 0.25s ease;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.cart-open .drawer-back { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: #e5dcd0; }
.grow { flex: 1; overflow: auto; }
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #f7f3ec;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: none; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .hero-grid, .split, .plans, .product-layout, .checkout-grid, .store-hero { grid-template-columns: 1fr; }
  .cards, .grid, .packs { grid-template-columns: 1fr 1fr; }
  .store-hero .copy { padding: 36px 20px; }
  .gallery, .gallery img { min-height: 420px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
  }
  .nav.open { display: flex; }
  .cards, .grid, .packs, .plans, .feature-grid, .cat-grid, .theme-pick { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; }
  .wrap { width: min(1160px, calc(100% - 28px)); }
  h1 { font-size: 36px; }
}

.feature-grid, .cat-grid { display: grid; gap: 16px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-grid ul, .feature-grid ul { margin: 10px 0 0; padding: 0; list-style: none; }
.cat-grid li, .feature-grid li { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14.5px; }
.icon-pill {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brass) 14%, white);
  margin-bottom: 10px; font-size: 20px;
}

.studio { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.theme-pick { display: grid; gap: 8px; }
.theme-opt {
  text-align: right; border: 1px solid var(--line); background: var(--card);
  border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center;
}
.theme-opt.on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.swatches { display: flex; height: 46px; border-radius: 12px; overflow: hidden; }
.swatches i { flex: 1; display: block; }
.colors { display: grid; gap: 10px; margin: 14px 0; }
.colors label { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.colors input[type="color"] { width: 54px; height: 36px; border: 1px solid var(--line); background: transparent; padding: 0; border-radius: 10px; }
.preview-stage {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; min-height: 680px;
  box-shadow: var(--shadow);
}
.preview-stage .store-header { position: relative; }
.preview-stage .mini-hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 240px; }
.preview-stage .mini-hero .copy { padding: 28px 22px; }
.preview-stage .mini-hero h2 { font-size: 36px; }
.preview-stage .shot {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--brass) 70%, white), transparent 62%),
    var(--paper-2);
}
.preview-stage .grid { grid-template-columns: repeat(3, 1fr); padding: 8px 16px 22px; }
.preview-stage .swatch {
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brass) 55%, white), var(--paper-2));
}
.preview-stage .product:nth-child(2) .swatch { background: linear-gradient(200deg, var(--ink), color-mix(in srgb, var(--brass) 40%, var(--paper))); color: var(--paper); }
.preview-stage .product:nth-child(3) .swatch { background: var(--card); border: 1px solid var(--line); }

html[data-theme="sahl"], .preview-stage[data-theme="sahl"] {
  --paper: #f6f7f9; --paper-2: #e6eaf0; --ink: #1c212b; --ink-soft: #5d6675;
  --card: #fff; --brass: #1f6f5b; --brass-deep: #1f6f5b; --line: rgba(22,26,34,.1);
  --radius: 16px; --on-accent: #fff; --shadow: 0 16px 40px rgba(22,26,34,.06);
}
html[data-theme="layl"], .preview-stage[data-theme="layl"] {
  --paper: #101318; --paper-2: #1b212b; --ink: #f5f2eb; --ink-soft: #b7b1a6;
  --card: #191e27; --brass: #d6b37a; --brass-deep: #d6b37a; --line: rgba(245,242,235,.14);
  --radius: 10px; --on-accent: #1a140c; --shadow: none;
}
html[data-theme="nabd"], .preview-stage[data-theme="nabd"] {
  --paper: #fff6f1; --paper-2: #ffe4d8; --ink: #141414; --ink-soft: #3a3a3a;
  --card: #fff; --brass: #e23b2f; --brass-deep: #e23b2f; --line: #141414;
  --radius: 0px; --on-accent: #fff; --shadow: 6px 6px 0 #141414;
}
html[data-theme="naeem"], .preview-stage[data-theme="naeem"] {
  --paper: #fbf6f7; --paper-2: #f3e4e8; --ink: #3a2c32; --ink-soft: #7a6570;
  --card: #fff; --brass: #c45b7a; --brass-deep: #c45b7a; --line: rgba(58,44,50,.1);
  --radius: 28px; --on-accent: #fff; --shadow: 0 18px 40px rgba(196,91,122,.14);
}
html[data-theme="daftar"], .preview-stage[data-theme="daftar"] {
  --paper: #f4f0e6; --paper-2: #e7e0d2; --ink: #1e2433; --ink-soft: #5c564c;
  --card: #fbf8f1; --brass: #243f78; --brass-deep: #243f78; --line: rgba(30,36,51,.16);
  --radius: 2px; --on-accent: #fff; --shadow: none;
}

html[data-theme] .store-header, .preview-stage .store-header {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}
html[data-theme] .btn:not(.light), .preview-stage .btn:not(.light) {
  background: var(--brass); color: var(--on-accent, #fff);
}
html[data-theme] .chip.on, .preview-stage .chip.on {
  background: var(--brass); border-color: var(--brass); color: var(--on-accent, #fff);
}
html[data-theme="layl"] .domain-bar, .preview-stage[data-theme="layl"] .domain-bar { background: #07090c; }
html[data-theme="nabd"] .card,
html[data-theme="nabd"] .panel,
html[data-theme="nabd"] .product .media,
html[data-theme="nabd"] .btn,
html[data-theme="nabd"] .chip,
.preview-stage[data-theme="nabd"] .product .media,
.preview-stage[data-theme="nabd"] .btn,
.preview-stage[data-theme="nabd"] .chip {
  border: 2px solid #141414; border-radius: 0; box-shadow: 5px 5px 0 #141414;
}
html[data-theme="nabd"] .store-hero, .preview-stage[data-theme="nabd"] .mini-hero {
  background: var(--brass); color: var(--on-accent);
}
html[data-theme="nabd"] .store-hero .lede, .preview-stage[data-theme="nabd"] .mini-hero .lede { color: inherit; }
html[data-theme="naeem"] .product .media,
html[data-theme="naeem"] .btn,
html[data-theme="naeem"] .chip,
.preview-stage[data-theme="naeem"] .product .media,
.preview-stage[data-theme="naeem"] .btn { border-radius: 28px; }
html[data-theme="daftar"] h1,
html[data-theme="daftar"] h2,
.preview-stage[data-theme="daftar"] h2 { font-family: var(--serif); }
html[data-theme="daftar"] .product,
.preview-stage[data-theme="daftar"] .product { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
html[data-theme="layl"] .product .media,
.preview-stage[data-theme="layl"] .product .media { border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 980px) {
  .feature-grid, .cat-grid, .preview-stage .grid, .preview-stage .mini-hero { grid-template-columns: 1fr 1fr; }
}
