/* El Hanae — layout concept: the mihrab arch (the shape of the rug itself) frames every hero image;
   calm night-indigo type on a cool white ground, brass used only for prices and calls to action. */
:root {
  --ground: #f6f8fb;
  --paper: #ffffff;
  --ink: #13213a;
  --ink-soft: #4a5871;
  --sky: #a9c7e3;
  --sky-soft: #e6eef7;
  --brass: #a87a2f;
  --brass-deep: #8a6222;
  --line: #dce3ec;
  --ok: #2f7a55;

  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-arabic: "Reem Kufi", "Segoe UI", sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.3rem, 5vw, 3.6rem);

  --radius: 10px;
  --arch: 999px 999px 14px 14px / 46% 46% 14px 14px;
  --wrap: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: .005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.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));
}
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); font-weight: 700; }
.lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }

/* Announcement + header */
.announce { background: var(--ink); color: #e9eef6; font-size: .85rem; text-align: center; }
.announce .wrap { padding-block: 8px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-latin { font-family: var(--f-display); font-size: 1.55rem; letter-spacing: .04em; }
.logo-ar { font-family: var(--f-arabic); color: var(--brass); font-size: 1.15rem; }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.cart-count { background: var(--ink); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding-inline: 5px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); }
  .menu-btn { display: inline-block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 26px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, transform .2s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f3256; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sky-soft), var(--ground)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-soft); }
.hero-trust span::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.arch { border-radius: var(--arch); overflow: hidden; background: var(--sky); box-shadow: 0 30px 60px -30px rgba(19,33,58,.45); aspect-ratio: 4 / 5; max-width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { position: relative; max-width: 470px; justify-self: center; width: 100%; }
.qibla-badge { position: absolute; left: -14px; bottom: 34px; background: var(--paper); border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px -12px rgba(19,33,58,.35); display: grid; gap: 2px; font-size: .82rem; }
.qibla-badge strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 400; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 380px; }
  .qibla-badge { left: 8px; }
}

/* Prayer times strip: subject detail */
.salah { border-block: 1px solid var(--line); background: var(--paper); }
.salah .wrap { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding-block: 18px; }
.salah div { display: grid; gap: 2px; }
.salah b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.salah span { font-family: var(--f-arabic); color: var(--brass); font-size: .95rem; }
@media (max-width: 520px) { .salah b { font-size: .95rem; } }

/* Collections */
.grid-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { display: grid; gap: 10px; text-decoration: none; }
.cat-img { border-radius: var(--arch); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sky-soft); display: grid; place-items: center; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover .cat-img img { transform: scale(1.04); }
.cat-img .soon { font-family: var(--f-arabic); font-size: 2.4rem; color: var(--sky); }
.cat h3 { font-size: 1.15rem; }
.cat p { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 860px) { .grid-cats { grid-template-columns: repeat(2, 1fr); } }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 20px 40px -24px rgba(19,33,58,.4); transform: translateY(-2px); }
.card-img { aspect-ratio: 1; background: var(--sky-soft); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 18px; display: grid; gap: 6px; align-content: start; }
.card-body h3 { font-size: 1.12rem; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.price { font-weight: 800; color: var(--brass-deep); font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-soft); font-weight: 500; margin-left: 8px; }
.stars { color: var(--brass); letter-spacing: 2px; font-size: .9rem; }
@media (max-width: 860px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-products { grid-template-columns: 1fr; } }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: 18px; }
.feature-list { display: grid; gap: 18px; margin-top: 24px; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; color: var(--ink); }
.feature-list b { display: block; }
.feature-list p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: #e9eef6; }
.band h2 { color: #fff; }
.band .lede { color: #b9c5d8; }
.band .eyebrow { color: #d9b46e; }

/* Guide (SEO content) */
.guide { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.guide nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 8px; font-size: .92rem; }
.guide nav a { color: var(--ink-soft); text-decoration: none; }
.guide nav a:hover { color: var(--ink); }
.prose { max-width: 68ch; display: grid; gap: 16px; min-width: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sky-soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } .guide nav { position: static; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.review p { color: var(--ink-soft); }
.review footer { font-size: .85rem; font-weight: 700; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* Product page */
.crumbs { font-size: .85rem; color: var(--ink-soft); padding-block: 18px; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 64px; }
.pdp > * { min-width: 0; }
.gallery { display: grid; gap: 12px; position: sticky; top: 90px; }
.gallery-main { border-radius: 18px; overflow: hidden; background: var(--sky-soft); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 18px; }
.buy h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.buy .price { font-size: 1.6rem; }
.option-label { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px 9px 10px; font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.qty button { border: 0; background: none; width: 42px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty input { width: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: none; color: var(--ink); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .88rem; color: var(--ink-soft); padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.perks span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .92rem; }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .gallery { position: static; } }

/* Order drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr min(440px, 100%); }
.drawer-scrim { background: rgba(19,33,58,.45); border: 0; cursor: pointer; }
.drawer-panel { background: var(--paper); overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px; display: grid; gap: 16px; align-content: start; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-close { border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.line-item img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.line-item button { border: 0; background: none; color: var(--ink-soft); cursor: pointer; text-decoration: underline; font: inherit; font-size: .8rem; }
.totals { display: flex; justify-content: space-between; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ground); color: var(--ink); width: 100%; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--sky-soft); font-size: .9rem; }
.notice.ok { background: #e3f2ea; color: var(--ok); }
.empty { color: var(--ink-soft); text-align: center; padding: 24px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c5d8; font-size: .92rem; }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.site-footer .logo-latin { color: #fff; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid #33456a; background: #1b2c4a; color: #fff; font: inherit; }
.newsletter button { padding: 11px 18px; }
.foot-bottom { border-top: 1px solid #2a3b5c; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---- v2: selling sections ---- */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.who article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.who .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--sky-soft); display: grid; place-items: center; color: var(--ink); }
.who h3 { font-size: 1.15rem; }
.who p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .who { grid-template-columns: 1fr; } }

.quote-line { font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; max-width: 30ch; text-wrap: balance; }
.quote-line small { display: block; font-family: var(--f-body); font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }
.band .quote-line small { color: #b9c5d8; }

.compare td:nth-child(3), .compare th:nth-child(3) { background: #eef4fb; font-weight: 700; color: var(--ink); }
.compare th:nth-child(3) { background: var(--ink); color: #fff; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #a0473b; font-weight: 800; }

.gift { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--sky-soft); border-radius: 24px; padding: clamp(24px, 5vw, 56px); }
.gift > * { min-width: 0; }
.gift .arch { aspect-ratio: 1; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
@media (max-width: 860px) { .gift { grid-template-columns: 1fr; } }

.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 28px; }
.seal { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--brass); display: grid; place-items: center; text-align: center; font-family: var(--f-display); color: var(--brass-deep); line-height: 1.1; font-size: 1.5rem; }
.seal small { display: block; font-family: var(--f-body); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 760px) { .guarantee { grid-template-columns: 1fr; justify-items: start; } }

.countdown { display: inline-flex; gap: 8px; align-items: center; background: #fff6e6; color: var(--brass-deep); border: 1px solid #ecd6ab; border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 700; }
.ship-note { font-size: .9rem; color: var(--ink-soft); }
.ship-note b { color: var(--ink); }
.gift-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px dashed var(--brass); border-radius: 12px; background: #fffaf1; font-size: .92rem; }
.gift-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brass); }

.sticky-buy { display: none; }
@media (max-width: 860px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; justify-content: space-between; background: var(--paper); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 30px -18px rgba(19,33,58,.4); }
  .sticky-buy .btn { padding: 12px 20px; }
  body.has-sticky { padding-bottom: 76px; }
}
.meaning { font-family: var(--f-arabic); color: var(--brass); font-size: 2.6rem; line-height: 1; }

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---- v3: friendly checkout ---- */
.drawer-panel { gap: 18px; }
.drawer-head h2 { font-size: 1.6rem; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; }
.drawer-close:hover { background: var(--sky-soft); }
.ship-progress { background: var(--sky-soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; font-size: .92rem; font-weight: 600; }
.ship-bar { height: 8px; background: #fff; border-radius: 999px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: inherit; transition: width .4s; }
.line-item { grid-template-columns: 72px 1fr auto; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.line-item img { width: 72px; height: 72px; }
.line-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.line-qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink); text-decoration: none; }
.line-qty span { min-width: 24px; text-align: center; font-weight: 700; }
.summary { background: var(--ground); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.summary .row { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-soft); }
.summary .row.total { color: var(--ink); font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.checkout { display: grid; gap: 18px; }
.step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.step legend { font-family: var(--f-display); font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--f-body); font-size: .85rem; font-weight: 800; display: inline-grid; place-items: center; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .95rem; }
.opt-note { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa6b8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(169,199,227,.55); }
.field.valid input, .field.valid select { border-color: var(--ok); background-image: none; }
.field.valid input { padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232f7a55' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field.invalid input, .field.invalid select { border-color: #b4483a; background: #fff8f6; }
.hint { font-size: .85rem; color: #b4483a; min-height: 0; }
.hint:empty { display: none; }
.checkout .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px dashed var(--brass); border-radius: 12px; background: #fffaf1; cursor: pointer; font-size: .95rem; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { width: 46px; height: 28px; border-radius: 999px; background: #cfd7e2; position: relative; transition: background .2s; }
.toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + .toggle-ui { background: var(--brass); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--brass); outline-offset: 3px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.reassure { text-align: center; font-size: .85rem; color: var(--ink-soft); }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 40px; }
.done-icon { width: 72px; height: 72px; border-radius: 50%; background: #e3f2ea; color: var(--ok); font-size: 2rem; font-weight: 800; display: grid; place-items: center; }
.done h3 { font-size: 1.7rem; }
.done p { color: var(--ink-soft); max-width: 32ch; }
@media (max-width: 520px) { .drawer { grid-template-columns: 1fr; } .drawer-scrim { display: none; } }
