:root {
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --ink: #10201b;
  --muted: #5b6b66;
  --line: #e3ebe7;
  --primary: #0f5c4d;
  --primary-600: #0b4a3e;
  --primary-50: #e8f3ef;
  --accent: #c8a46a;
  --accent-50: #faf4ea;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(16, 32, 27, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 32, 27, 0.28);
  --font: "Tajawal", system-ui, sans-serif;
}
html[lang="en"] { --font: "Plus Jakarta Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.ico { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px rgba(15, 92, 77, .7); }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary-50); }
.btn-ghost { color: var(--primary); padding-inline: 8px; }
.btn-white { background: #fff; color: var(--primary); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 24px; height: 24px; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; height: 38px; min-width: 52px;
  font-weight: 700; cursor: pointer; color: var(--ink); font-family: "Tajawal", "Plus Jakarta Sans", sans-serif;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(1000px 500px at 85% 0%, var(--primary-50), transparent 60%), radial-gradient(700px 400px at 0% 100%, var(--accent-50), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-block; background: var(--accent-50); color: #8a6a35; border: 1px solid #efe1c6; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-trust strong { color: var(--primary); }
.hero-media { position: relative; }
.img-frame { background: linear-gradient(135deg, var(--primary-50), var(--accent-50)); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-img { aspect-ratio: 4 / 4.2; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.hero-card-a { bottom: 24px; inset-inline-start: -20px; flex-direction: column; align-items: flex-start; gap: 0; }
.hc-num { font-size: 1.6rem; color: var(--primary); line-height: 1.1; }
.hc-label { color: var(--muted); font-weight: 500; font-size: .9rem; }
.hero-card-b { top: 24px; inset-inline-end: -14px; font-size: .95rem; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }

/* Paths */
.paths { padding: 20px 0 10px; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.path-card p { color: var(--muted); flex: 1; }
.path-ico { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--primary-50); margin-bottom: 14px; }
.path-link { color: var(--primary); font-weight: 700; }
.path-card-accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.path-card-accent p { color: #cfe5de; }
.path-card-accent .path-ico { background: rgba(255,255,255,.12); }
.path-card-accent .path-link { color: var(--accent); }

/* Sections */
.section { padding: 84px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { margin-bottom: 30px; max-width: 680px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow.light { color: var(--accent); }

/* Shop */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: .95rem; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; position: relative; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: #fff; color: var(--primary); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.badge.custom { background: var(--accent); color: #fff; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1.05rem; margin-bottom: 4px; }
.product-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--primary); }
.price s { color: #9aa8a3; font-weight: 500; font-size: .9rem; margin-inline-start: 6px; }

/* Forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; flex: 1; }
.row { display: flex; gap: 14px; }
input, select, textarea {
  font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  background: var(--bg-soft); color: var(--ink); width: 100%; transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px var(--primary-50); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
.form-err { color: #b42318; font-weight: 600; font-size: .9rem; margin: 0; text-align: center; }

/* Sell */
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps h4 { margin-bottom: 2px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Custom builder */
.custom-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
legend { font-weight: 800; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 16px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); display: flex; align-items: center; gap: 8px; transition: all .15s; }
.choice:hover { border-color: var(--primary); }
.choice.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; background: none; border: 0; font-family: inherit; font-size: .82rem; color: var(--muted); font-weight: 600; padding: 0; }
.swatch i { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--line); display: block; transition: transform .15s; }
.swatch.active i { outline: 3px solid var(--primary); outline-offset: 2px; transform: scale(1.05); }
.swatch.active { color: var(--primary); }
.summary { position: sticky; top: 96px; }
.summary-preview { height: 170px; border-radius: 16px; background: linear-gradient(180deg, var(--bg-soft), #fff); border: 1px dashed var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.preview-shape { transition: all .3s ease; }
.sum-list { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.sum-list dt { color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 700; text-align: end; }
.sum-price { display: flex; justify-content: space-between; align-items: baseline; background: var(--accent-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.sum-price span { color: #8a6a35; font-weight: 600; font-size: .92rem; }
.sum-price strong { font-size: 1.4rem; color: var(--primary); }
.summary .form-note { margin-top: 10px; }

/* Why */
.section-dark { background: var(--primary); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px; }
.why p { color: #cfe5de; margin: 0; }
.why-ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; background: #fff; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); }

/* CTA */
.cta-band { padding: 0 0 84px; }
.cta-inner { background: linear-gradient(120deg, var(--primary), #157a66); color: #fff; border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { color: #cfe5de; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 90px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h5 { font-size: 1rem; margin-bottom: 12px; }
.footer-grid > div > a, .footer-grid > div > span { display: block; margin-bottom: 8px; color: var(--muted); }
.footer-grid a:hover { color: var(--primary); }
.logo-footer { margin-bottom: 10px; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .82rem; font-weight: 700; color: var(--ink); font-family: "Plus Jakarta Sans", sans-serif; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; gap: 12px; flex-wrap: wrap; }

/* Sticky mobile bar */
.sticky-bar { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .hero-grid, .sell-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-img { aspect-ratio: 16 / 11; }
  .paths-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero { padding-top: 24px; }
  .hero-card-a { inset-inline-start: 10px; bottom: 12px; }
  .hero-card-b { inset-inline-end: 10px; top: 12px; }
  .section { padding: 60px 0; }
  .row { flex-direction: column; }
  .card { padding: 20px; }
  .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 30px 22px; }
  .hero-ctas .btn { flex: 1; }
  .sticky-bar { display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky-bar .btn { flex: 1; }
}

/* ===== Product cards: clickable, sold, loading ===== */
.product[data-id] { cursor: pointer; color: inherit; text-decoration: none; }
.product:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.product.is-sold .product-img img { filter: grayscale(.7); opacity: .7; }
.product.is-sold .badge { background: #10201b; color: #fff; }
.skeleton { min-height: 330px; background: linear-gradient(90deg, var(--bg-soft) 0%, #fff 50%, var(--bg-soft) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* spam trap: invisible but must not move off-screen (an off-screen offset widens RTL pages on phones) */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; padding: 4px 0; align-self: flex-start; }

/* ===== Uploads ===== */
/* Keep the hidden file input inside its label: when a phone returns from the photo picker it scrolls
   the input into view, and an input positioned against the modal panel scrolled the whole editor away. */
.upload { position: relative; display: block; }
.upload input[type="file"] { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.upload-box { display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px dashed var(--line); border-radius: 14px; padding: 18px; color: var(--muted); font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.upload:hover .upload-box, .upload input:focus-visible + .upload-box { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.upload-ico { font-size: 1.4rem; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(16,32,27,.75); color: #fff; cursor: pointer; line-height: 1; }

/* ===== Sent confirmation ===== */
.sent { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 28px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sent .link-btn { align-self: center; margin-top: 6px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; margin: 0 auto 12px; }

/* ===== Modal ===== */
body.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 32, 27, .55); backdrop-filter: blur(4px); animation: fade .2s ease; }
.modal-panel { position: relative; background: #fff; border-radius: 24px; width: min(980px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: hidden; overflow: clip; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .22s ease; }
#modalBody { overflow-y: auto; padding: 28px; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.pd { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.pd-main { position: relative; aspect-ratio: 4 / 3.4; border-radius: 18px; touch-action: pan-y; }
/* Gallery: arrows + photo counter on the main photo (see gallery.js) */
.pd-nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.9rem; line-height: 1; padding: 0 0 4px; cursor: pointer; box-shadow: var(--shadow); z-index: 1; }
.pd-nav:hover { background: #fff; }
.pd-prev { inset-inline-start: 12px; }
.pd-next { inset-inline-end: 12px; }
[dir="rtl"] .pd-nav { transform: scaleX(-1); }
.pd-count { position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(16,32,27,.72); color: #fff; font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; direction: ltr; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 auto; width: 84px; height: 66px; border-radius: 10px; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .75; transition: opacity .15s, border-color .15s; }
.pd-thumb:hover, .pd-thumb.active { opacity: 1; }
.pd-thumb.active { border-color: var(--primary); }
.pd-info h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 4px; }
.badge-inline { display: inline-block; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 999px; }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.pd-price strong { font-size: 1.9rem; color: var(--primary); }
.pd-price s { color: #9aa8a3; }
.save { background: var(--accent-50); color: #8a6a35; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.pd-desc { color: var(--ink); }
.pd-specs, .pay-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; padding: 14px 16px; background: var(--bg-soft); border-radius: 14px; font-size: .95rem; }
.pd-specs dt, .pay-details dt { color: var(--muted); }
.pd-specs dd, .pay-details dd { margin: 0; font-weight: 700; }
.pay-details { margin-top: 12px; background: var(--accent-50); }
.pd-note { color: var(--muted); font-size: .92rem; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-actions.center { justify-content: center; }

/* ===== Checkout ===== */
.checkout { max-width: 640px; margin: 0 auto; }
.checkout h2 { margin: 0; }
.co-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.co-thumb { width: 72px; height: 60px; border-radius: 10px; flex: none; }
.co-item > div:nth-child(2) { flex: 1; min-width: 0; }
.co-item .muted { font-size: .88rem; }
.co-price { color: var(--primary); white-space: nowrap; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { flex-direction: row !important; align-items: flex-start; gap: 12px !important; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt:hover { border-color: var(--primary); }
.pay-opt.active { border-color: var(--primary); background: var(--primary-50); }
.pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.pay-ico { font-size: 1.4rem; line-height: 1.2; }
.pay-opt strong { display: block; }
.pay-opt small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; line-height: 1.45; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 0; border-top: 1px solid var(--line); font-weight: 700; }
.co-total strong { font-size: 1.5rem; color: var(--primary); }
.done { text-align: center; max-width: 520px; margin: 0 auto; padding: 20px 0; }
.done .pay-details { text-align: start; }

@media (max-width: 760px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-panel { border-radius: 22px 22px 0 0; max-height: 94vh; max-height: 94dvh; width: 100%; }
  #modalBody { padding: 20px 16px 28px; }
  .pd { grid-template-columns: 1fr; gap: 18px; }
  .pay-options { grid-template-columns: 1fr; }
}

/* ===== Accounts ===== */
.acct-btn { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 999px; height: 38px; padding: 0 16px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.acct-btn:hover { background: var(--primary-50); }
.acct-btn.signed-in { background: var(--primary-50); border-color: transparent; }
.acct-note { font-size: .88rem; color: var(--muted); background: var(--bg-soft); border-radius: 12px; padding: 10px 14px; }
.acct-note strong { color: var(--ink); }
.modal-top { z-index: 110; }
.modal-scroll { overflow-y: auto; padding: 28px; }
.auth-panel { width: min(440px, 100%); }
.auth-form { gap: 12px; }
.auth-form h2 { text-align: center; margin: 0; font-size: 1.5rem; }
.auth-ico { width: 60px; height: 60px; border-radius: 18px; background: var(--primary-50); display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto; }
.center { text-align: center; }
.auth-form > p.muted { margin: 0; font-size: .95rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 14px; padding: 4px; margin: 4px 0; }
.auth-tabs button { border: 0; background: none; padding: 10px; border-radius: 10px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(16,32,27,.08); }
.auth-switch { text-align: center; margin: 0; font-size: .92rem; color: var(--muted); }
.auth-switch .link-btn { display: inline; padding: 0; }
.auth-forgot { text-align: center; font-size: .88rem; color: var(--muted); text-decoration: underline; }
.acct h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.acct-head { display: flex; gap: 14px; align-items: center; }
.acct-head h2 { font-size: 1.3rem; margin: 0; }
.acct-head p { margin: 0; text-align: start; }
.acct-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; flex: none; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-row small { display: block; font-size: .82rem; }
.acct-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.acct .btn-block { margin-top: 22px; }
.st { font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.st-new { background: #e8f0fe; color: #1d4ed8; }
.st-contacted, .st-confirmed, .st-offer_sent, .st-in_production { background: #fff4e0; color: #9a5b00; }
.st-paid, .st-purchased, .st-delivered, .st-completed { background: #e6f6ec; color: #17733f; }
@media (max-width: 640px) {
  .acct-btn { padding: 0 12px; font-size: .85rem; max-width: 110px; }
  .modal-scroll { padding: 22px 16px 28px; }
}

/* ===== SEO text + standalone pages ===== */
.seo-text h2 { margin-bottom: 14px; }
.seo-text p { line-height: 1.9; }
.seo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.seo-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--primary); text-decoration: none; }
.seo-links a:hover { border-color: var(--primary); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 24px 0 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--primary); text-decoration: none; }
.page-pd { padding-bottom: 48px; }
.page-section { padding: 32px 0 56px; }
.page-section h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 12px; }
.page-section h2 { margin-top: 32px; }
.page-section p, .page-section li { line-height: 1.9; }
.page-related { margin-top: 40px; }
