/* PROSTATE CARE shop pages (home, product, checkout, thanks). Cart UI is in cart.css.
   Brand palette from the PROSTAT landing page. Mobile first, RTL. */
:root {
  --bg: #F6F2EC;
  --cream: #F5EFE6;
  --card: #FFFFFF;
  --ink: #1A2229;
  --ink-soft: #3F4A52;
  --ink-mute: #7A8088;
  --line: #E2D9CB;
  --cta: #1F4D2B;
  --cta-hover: #296B3A;
  --cta-tint: #F1F7F2;
  --teal: #0F4C5C;
  --teal-50: #E8F0F2;
  --gold: #C8A66B;
  --success: #2E7D4F;
  --danger: #C03B2B;
  --shadow: 0 8px 24px rgba(15, 76, 92, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body.has-bar { padding-bottom: 84px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(31, 77, 43, .35); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

/* ── bars & header ── */
.announce { background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 8px 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 900; font-size: 20px; letter-spacing: .5px; color: var(--teal); text-decoration: none; direction: ltr; }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; font-size: 18px;
}
.icon-btn:hover { background: var(--teal-50); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 14px; border: 2px solid transparent;
  font-size: 16px; font-weight: 800; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-outline { background: #fff; color: var(--cta); border-color: var(--cta); }
.btn-outline:hover { background: var(--cta-tint); }
.btn-link { background: none; color: var(--teal); padding: 8px; font-weight: 700; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 20px; font-size: 17px; }
.btn:disabled { opacity: .7; cursor: wait; }

/* ── sections ── */
.section { padding-block: 32px; }
.section-title { font-size: 24px; font-weight: 900; margin: 0 0 8px; line-height: 1.35; }
.section-sub { color: var(--ink-soft); margin: 0 0 18px; }
.empty { text-align: center; padding: 48px 0; color: var(--ink-mute); }

/* ── home hero ── */
.hero {
  position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden;
  background: var(--teal) center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 40, 48, .92) 0%, rgba(10, 40, 48, .55) 55%, rgba(10, 40, 48, .1) 100%); }
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: 28px; }
.hero .eyebrow { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: 32px; font-weight: 900; line-height: 1.3; margin: 12px 0 10px; }
.hero p { margin: 0 0 18px; color: rgba(255, 255, 255, .9); max-width: 560px; }
.hero .btn-primary { background: #fff; color: var(--cta); }

/* ── trust ── */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-item { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.trust-item > span { font-size: 24px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item small { display: block; color: var(--ink-mute); font-size: 12px; line-height: 1.4; }
.trust-band { margin-top: -22px; position: relative; z-index: 2; }
.trust.mini { margin-top: 14px; }
.trust.mini .trust-item { padding: 8px 10px; }
.trust.mini .trust-item > span { font-size: 18px; }

/* ── product cards ── */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.badge.inline { position: static; display: inline-block; margin-bottom: 8px; }
.card-body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.card-title { text-decoration: none; display: grid; }
.card-title strong { font-size: 20px; font-weight: 900; color: var(--teal); direction: ltr; text-align: right; }
.card-title span { color: var(--ink-soft); font-weight: 700; }
.card-short { margin: 0; color: var(--ink-mute); font-size: 14px; line-height: 1.6; }
.card-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-price .price { font-size: 24px; font-weight: 900; }
.card-price small { color: var(--ink-mute); font-size: 13px; }

/* ── how to order ── */
.how { display: grid; gap: 10px; counter-reset: how; }
.how li { list-style: none; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.how li::before { counter-increment: how; content: counter(how); flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; }
.how strong { display: block; }
.how small { color: var(--ink-mute); }

/* ── accordion ── */
.acc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.acc[open] summary::after { content: "−"; }
.acc-body { padding: 0 16px 16px; color: var(--ink-soft); line-height: 1.8; }

/* ── product page ── */
.crumbs { font-size: 13px; color: var(--ink-mute); padding-block: 14px 6px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.pdp-grid { display: grid; gap: 20px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--cta); }
.pdp-info h1 { font-size: 24px; font-weight: 800; line-height: 1.4; margin: 0 0 8px; }
.pdp-info h1 strong { color: var(--teal); font-weight: 900; }
.pdp-short { color: var(--ink-soft); margin: 0 0 12px; }
.highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.highlights span { background: var(--teal-50); color: var(--teal); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price-block { display: grid; gap: 2px; margin-bottom: 14px; }
.price-block .now { font-size: 32px; font-weight: 900; line-height: 1.2; }
.price-block .per { color: var(--success); font-weight: 700; font-size: 14px; }
.bundle-list { display: grid; gap: 12px; margin-bottom: 16px; }
.bundle-opt {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 14px; text-align: right; color: var(--ink);
}
.bundle-opt .radio { flex: 0 0 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.bundle-opt.active { border-color: var(--cta); background: var(--cta-tint); box-shadow: 0 6px 18px rgba(31, 77, 43, .12); }
.bundle-opt.active .radio { border-color: var(--cta); background: var(--cta); }
.bundle-opt.active .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.opt-text { flex: 1; display: grid; }
.opt-text strong { font-size: 17px; }
.opt-text small { color: var(--ink-mute); font-size: 13px; }
.opt-price { font-size: 19px; font-weight: 900; }
.bundle-opt .tag { position: absolute; top: -11px; right: 14px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.bundle-opt .tag.best { background: var(--cta); }
.buy-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.wa-ask { display: block; margin-top: 12px; text-align: center; color: var(--teal); font-weight: 700; text-decoration: none; }
.fbt { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.fbt h3 { margin: 0 0 10px; font-size: 18px; }
.fbt-item { display: grid; grid-template-columns: 22px 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14px; }
.fbt-item:last-of-type { border-bottom: 0; margin-bottom: 10px; }
.fbt-item input { width: 20px; height: 20px; accent-color: var(--cta); }
.fbt-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.fbt-item.fixed { cursor: default; }
.prob-grid { display: grid; gap: 10px; }
.prob { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.prob > span { font-size: 26px; }
.prob h3 { margin: 6px 0 4px; font-size: 17px; }
.prob p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.points .check { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-weight: 900; font-size: 14px; }
.points strong { display: block; }
.points small { color: var(--ink-mute); font-size: 14px; }
.steps { display: grid; gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.step-body { display: flex; gap: 12px; align-items: center; padding: 14px; }
.step .num { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; }
.step strong { display: block; }
.step small { color: var(--ink-mute); font-size: 14px; }

/* ── sticky bars ── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
}
.sticky-bar .bar-info { flex: 1; display: grid; line-height: 1.3; }
.sticky-bar .bar-info strong { font-size: 17px; }
.sticky-bar .bar-info small { color: var(--ink-mute); }
.sticky-bar .btn { flex: 1.3; }
.sticky-bar button.bar-info { background: none; border: 0; padding: 0; text-align: right; cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 800; }

/* ── checkout ── */
.co-grid { display: grid; gap: 16px; padding-block: 16px 32px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.panel h2 { font-size: 20px; margin: 0 0 6px; }
.panel .sub { color: var(--ink-mute); margin: 0 0 14px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 15px; }
.field input { width: 100%; padding: 14px; font-size: 16px; font-family: inherit; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus { border-color: var(--cta); outline: none; box-shadow: 0 0 0 3px rgba(31, 77, 43, .12); }
.field .err { display: none; color: var(--danger); font-size: 13px; margin-top: 4px; }
.field.error input { border-color: var(--danger); }
.field.error .err { display: block; }
.phone-wrap { display: flex; direction: ltr; }
.phone-wrap .prefix { display: grid; place-items: center; padding: 0 12px; background: var(--cream); border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 800; }
.phone-wrap input { border-radius: 0 12px 12px 0; }
.cod-note { text-align: center; color: var(--ink-mute); font-size: 13px; margin-top: 10px; }

/* ── thanks ── */
.thx { display: grid; place-items: center; padding: 32px 16px 48px; }
.thx-card { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.thx-check { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-size: 44px; font-weight: 900; }
.thx-card h1 { font-size: 26px; margin: 0 0 8px; }
.thx-sum { text-align: right; background: var(--cream); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; margin: 18px 0; display: grid; gap: 6px; font-size: 14px; }
.thx-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.thx-sum .grand { font-weight: 900; font-size: 16px; border-top: 1px dashed var(--line); padding-top: 8px; }
.thx-sum > .thx-items { display: grid; gap: 6px; }
.thx-items > div { display: flex; justify-content: space-between; gap: 10px; }
.thx-sum b { white-space: nowrap; }
.thx-test { text-align: right; margin-top: 18px; background: #FFF4E5; border-radius: 14px; padding: 12px; font-size: 13px; }
.thx-test pre { direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-word; font-size: 12px; margin: 8px 0 0; }

/* ── footer ── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding-block: 28px; margin-top: 24px; font-size: 14px; }
.site-footer .logo { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }

/* ── wider screens ── */
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust.mini { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 480px; align-items: center; }
  .hero::after { background: linear-gradient(-90deg, rgba(10, 40, 48, .92) 0%, rgba(10, 40, 48, .6) 50%, rgba(10, 40, 48, .05) 100%); }
  .hero h1 { font-size: 44px; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .prob-grid, .steps { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .pdp-grid { grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
  .gallery { position: sticky; top: 84px; }
  .co-grid { grid-template-columns: 1fr 420px; align-items: start; }
  .co-grid .panel.form { position: sticky; top: 84px; }
  .pdp-page .sticky-bar { display: none; }
  body.pdp-page.has-bar { padding-bottom: 0; }
}
