/* LOKA 3D – luxury catalog. Mobile first, RTL. */
:root {
  --bg: #0d0b0a;
  --bg-2: #14110e;
  --card: #1a1612;
  --card-2: #221d18;
  --line: rgba(201, 164, 92, 0.22);
  --line-2: rgba(255, 255, 255, 0.08);
  --gold: #c9a45c;
  --gold-2: #e5cb92;
  --red: #7d1424;
  --red-2: #a01d33;
  --white: #f6f1e7;
  --text: #ece5d9;
  --muted: #a59d92;
  --grey: #6f6962;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --f-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --f-head: "El Messiri", "Tajawal", serif;
  --f-lat: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ar);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lat { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; }
/* Cormorant uses old-style figures by default; codes like LOKA031 must read clearly */
.lat, .badge, .code, .l-code, .brand, .wordmark, .eyebrow, .step .n, .f-brand, .founder { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
@media (max-width: 699px) {
  .card .sizes { display: none; }
  .tools .select { max-width: 40%; }
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b140b; }
.btn-gold:hover { background: var(--gold-2); }
.btn-red { background: var(--red); color: var(--white); border-color: rgba(255,255,255,.08); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--line); color: var(--gold-2); background: transparent; }
.btn-line:hover { border-color: var(--gold); background: rgba(201,164,92,.08); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 11, 10, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; direction: ltr; }
.brand .b-name { font-family: var(--f-lat); font-weight: 700; font-size: 26px; letter-spacing: .14em; color: var(--white); }
.brand .b-owner { font-family: var(--f-lat); font-size: 11px; letter-spacing: .32em; color: var(--gold); margin-top: 3px; }
.nav { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.sel-btn { position: relative; }
.sel-count {
  position: absolute; top: -4px; inset-inline-start: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--red-2); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.sel-count[data-n="0"] { display: none; }
.menu-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--text); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.site-header .drawer { display: none; border-top: 1px solid var(--line-2); padding: 8px 0 16px; min-height: 0; }
.site-header .drawer.open { display: block; }
.drawer a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-weight: 500; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2px; }
  .menu-btn, .site-header .drawer, .site-header .drawer.open { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 48px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 15% 30%, rgba(201,164,92,.12), transparent 60%),
              radial-gradient(700px 400px at 90% 90%, rgba(125,20,36,.22), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 32px; align-items: center; }
.eyebrow { font-family: var(--f-lat); letter-spacing: .32em; font-size: 12px; color: var(--gold); direction: ltr; unicode-bidi: isolate; text-transform: uppercase; }
.wordmark { font-family: var(--f-lat); font-weight: 700; color: var(--white); font-size: clamp(54px, 15vw, 104px); line-height: .95; letter-spacing: .08em; margin: 10px 0 6px; direction: ltr; text-align: right; }
.owner-line { display: flex; align-items: center; gap: 14px; margin: 14px 0 22px; direction: ltr; justify-content: flex-end; }
.owner-line::before { content: ""; height: 1px; width: 56px; background: var(--gold); opacity: .7; }
.owner-line .o-name { font-family: var(--f-lat); font-size: 20px; letter-spacing: .24em; color: var(--white); }
.owner-line .o-title { font-family: var(--f-lat); font-size: 11px; letter-spacing: .3em; color: var(--muted); display: block; }
.hero h1 { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 6vw, 40px); line-height: 1.35; margin: 0 0 12px; color: var(--white); }
.hero p.lead { color: var(--muted); max-width: 520px; margin: 0 0 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; }
.hero-art a { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); aspect-ratio: 2 / 3; }
.hero-art a:nth-child(2) { transform: translateY(-22px); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-art { gap: 16px; }
  .hero-art a:nth-child(2) { transform: translateY(-40px); }
}

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 5vw, 32px); margin: 4px 0 0; color: var(--white); line-height: 1.3; }
.sec-head a.more { color: var(--gold-2); font-weight: 500; white-space: nowrap; }
.sec-head a.more::after { content: " ←"; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--line-2); isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,6,5,.92) 8%, rgba(8,6,5,.2) 55%, transparent); }
.cat-card .c-body { position: absolute; inset-inline: 14px; bottom: 12px; }
.cat-card h3 { margin: 0; font-family: var(--f-head); font-size: 18px; font-weight: 600; color: var(--white); line-height: 1.35; }
.cat-card .c-count { color: var(--gold-2); font-size: 13px; }
.cat-card:hover img { transform: scale(1.05); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1050px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line); }
.card .media { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--card-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(13,11,10,.78); border: 1px solid var(--line); color: var(--gold-2); font-family: var(--f-lat); font-weight: 700; letter-spacing: .08em; font-size: 13px; padding: 2px 10px; border-radius: 999px; direction: ltr; }
.badge-star { top: auto; bottom: 10px; direction: rtl; font-family: var(--f-ar); font-weight: 500; letter-spacing: 0; background: var(--red); border-color: transparent; color: #fff; font-size: 12px; }
.card .body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.4; margin: 0; color: var(--white); }
.card .cat { font-size: 13px; color: var(--muted); }
.card .price { color: var(--gold-2); font-weight: 700; font-size: 15px; }
.card .price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.card .sizes { font-size: 12px; color: var(--muted); }
.card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.card .actions .btn { min-height: 42px; padding: 6px 8px; font-size: 13.5px; }
@media (min-width: 700px) { .card h3 { font-size: 17px; } .card .body { padding: 14px 16px 16px; } }

.img-missing { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 12px; background: repeating-linear-gradient(45deg, #1a1612, #1a1612 10px, #1d1915 10px, #1d1915 20px); }

/* ---------- how to order ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; position: relative; }
.step .n { font-family: var(--f-lat); font-size: 40px; color: var(--gold); line-height: 1; }
.step h3 { font-family: var(--f-head); font-weight: 600; margin: 8px 0 4px; color: var(--white); font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- founder band ---------- */
.founder { text-align: center; padding: 56px 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.founder .f-name { font-family: var(--f-lat); font-size: clamp(28px, 7vw, 44px); letter-spacing: .2em; color: var(--white); direction: ltr; }
.founder .f-title { font-family: var(--f-lat); letter-spacing: .34em; font-size: 12px; color: var(--gold); direction: ltr; }
.founder p { max-width: 640px; margin: 18px auto 0; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { padding: 44px 0 110px; border-top: 1px solid var(--line-2); background: #0a0908; }
.site-footer .f-grid { display: grid; gap: 28px; }
.site-footer .f-brand .b-name { font-family: var(--f-lat); font-size: 32px; font-weight: 700; letter-spacing: .14em; color: var(--white); direction: ltr; }
.site-footer .f-brand .b-tag { font-family: var(--f-lat); letter-spacing: .3em; font-size: 11px; color: var(--gold); direction: ltr; }
.site-footer .f-brand .b-owner { margin-top: 14px; font-family: var(--f-lat); letter-spacing: .22em; color: var(--white); direction: ltr; }
.site-footer .f-brand .b-owner small { display: block; letter-spacing: .3em; font-size: 10px; color: var(--muted); }
.site-footer h4 { margin: 0 0 10px; font-family: var(--f-head); font-weight: 600; color: var(--gold-2); font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); }
.site-footer ul a:hover { color: var(--gold-2); }
.site-footer .copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--grey); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (min-width: 800px) { .site-footer .f-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 60px; } }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 45; bottom: 18px; inset-inline-end: 18px; width: 58px; height: 58px; border-radius: 50%;
  background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  border: 2px solid rgba(255,255,255,.15);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #22bb5f; }
body.has-bar .wa-float { bottom: 92px; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; inset-inline: 16px; bottom: 90px; margin-inline: auto; max-width: 420px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast a { color: var(--gold-2); font-weight: 700; white-space: nowrap; }

/* ---------- page head ---------- */
.page-head { padding: 30px 0 10px; }
.page-head h1 { font-family: var(--f-head); font-weight: 600; font-size: clamp(28px, 6vw, 40px); margin: 4px 0 6px; color: var(--white); line-height: 1.3; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- catalog tools ---------- */
.tools { position: sticky; top: 68px; z-index: 30; background: rgba(13,11,10,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.tools .row { display: flex; gap: 8px; }
.search { flex: 1; position: relative; }
.search input { width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); padding: 8px 44px 8px 16px; }
.search input:focus { border-color: var(--gold); outline: none; }
.search svg { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.select { min-height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); padding: 8px 14px; max-width: 46%; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--gold); color: #1b140b; border-color: var(--gold); font-weight: 700; }
.chip .n { opacity: .7; font-size: 12px; margin-inline-start: 4px; }
.result-info { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 12px; color: var(--muted); font-size: 14px; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty h2 { font-family: var(--f-head); color: var(--white); font-weight: 600; margin: 0 0 6px; }
.load-more { display: flex; justify-content: center; gap: 10px; padding: 28px 0; flex-wrap: wrap; }

/* ---------- design page ---------- */
.design { display: grid; gap: 26px; padding: 20px 0 40px; }
@media (min-width: 900px) { .design { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .gallery { position: sticky; top: 90px; } }
.gallery .main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); min-height: 240px; cursor: zoom-in; display: grid; place-items: center; }
/* show the whole design (portrait or landscape) without cropping */
.gallery .main img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.zoom-hint { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgba(13,11,10,.8); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--gold-2); display: flex; gap: 6px; align-items: center; pointer-events: none; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 70px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--card); cursor: pointer; opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info .code { font-family: var(--f-lat); color: var(--gold); letter-spacing: .18em; font-weight: 700; direction: ltr; display: inline-block; }
.info h1 { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 6vw, 38px); line-height: 1.3; margin: 6px 0 10px; color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tags a { font-size: 13px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tags a:hover { border-color: var(--line); color: var(--gold-2); }
.big-price { font-size: 30px; font-weight: 700; color: var(--gold-2); margin: 6px 0 2px; }
.big-price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.field-label { font-weight: 700; margin: 18px 0 8px; color: var(--white); display: block; }
.size-opts { display: grid; gap: 8px; }
.size-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; min-height: 56px; }
.size-opt input { accent-color: var(--gold); width: 18px; height: 18px; }
.size-opt .s-l { display: flex; align-items: center; gap: 10px; }
.size-opt .s-dims { color: var(--muted); font-size: 13px; display: block; }
.size-opt .s-price { color: var(--gold-2); font-weight: 700; white-space: nowrap; }
.size-opt:has(input:checked) { border-color: var(--gold); background: rgba(201,164,92,.07); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--gold-2); }
.qty button:hover { background: rgba(255,255,255,.05); }
.qty output, .qty input { min-width: 40px; text-align: center; font-weight: 700; border: 0; background: transparent; width: 44px; }
.buy { display: grid; gap: 10px; margin-top: 22px; }
.desc { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); }
.desc h2 { font-family: var(--f-head); font-weight: 600; font-size: 19px; color: var(--white); margin: 0 0 6px; }
.note { font-size: 13px; color: var(--grey); margin-top: 10px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,4,4,.96); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 8px; }
.lb-bar .lb-title { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stage { flex: 1; overflow: auto; display: grid; place-items: center; -webkit-overflow-scrolling: touch; }
.lb-stage img { max-height: calc(100vh - 140px); width: auto; cursor: zoom-in; }
.lightbox.zoomed .lb-stage { place-items: start; }
.lightbox.zoomed .lb-stage img { max-height: none; width: 220%; max-width: none; cursor: zoom-out; }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding: 10px; }

/* ---------- selections ---------- */
.sel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 10px 0 40px; }
@media (min-width: 900px) { .sel-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } .summary { position: sticky; top: 90px; } }
.line { display: grid; grid-template-columns: 86px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; }
.line + .line { margin-top: 10px; }
.line > div, .sel-layout > * { min-width: 0; }
.line label { flex: 1 1 100%; min-width: 0; }
.line select { width: 100%; }
.line .l-img { border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: var(--card-2); position: relative; }
.line .l-img img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 17px; color: var(--white); line-height: 1.4; }
.line .l-code { font-family: var(--f-lat); color: var(--gold); letter-spacing: .12em; font-weight: 700; font-size: 13px; direction: ltr; display: inline-block; }
.line .l-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.line select { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); padding: 6px 10px; max-width: 100%; }
.line .l-total { font-weight: 700; color: var(--gold-2); }
.line .remove { background: transparent; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.line .remove:hover { color: #ff8f9f; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.summary h2 { font-family: var(--f-head); font-weight: 600; margin: 0 0 10px; color: var(--white); font-size: 21px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.sum-row.total { color: var(--white); font-weight: 700; font-size: 20px; border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px; }
.sum-row.total span:last-child { color: var(--gold-2); }
.summary textarea { width: 100%; min-height: 84px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); padding: 10px; resize: vertical; margin-top: 4px; }
.summary .btn { width: 100%; margin-top: 12px; }
.warn { background: rgba(125,20,36,.25); border: 1px solid rgba(160,29,51,.6); color: #ffd6dc; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.sel-bar { position: fixed; z-index: 44; inset-inline: 0; bottom: 0; background: rgba(20,17,14,.97); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sel-bar .t { font-weight: 700; color: var(--gold-2); }
@media (min-width: 900px) { .sel-bar { display: none; } body.has-bar .wa-float { bottom: 18px; } }

/* ---------- about ---------- */
.prose { max-width: 760px; padding: 10px 0 50px; color: var(--muted); }
.prose h2 { font-family: var(--f-head); font-weight: 600; color: var(--white); margin: 28px 0 8px; font-size: 23px; }
.prose strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
