/* Online Pharmacy UAE — site styles */
:root {
  --red: #d7262b;
  --red-dark: #b01c21;
  --gold: #f2a900;
  --ink: #14161a;
  --ink-2: #3b3f46;
  --muted: #6b717b;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --bg-warm: #fff7ec;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .04), 0 20px 48px rgba(20, 22, 26, .12);
  --max: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: .98rem; line-height: 1;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* Top bar + header */
.topbar {
  background: var(--ink); color: #d9dbe0; font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar .rx { display: inline-flex; align-items: center; gap: 6px; }
.topbar .rx b { color: var(--gold); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 22, 26, .05); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--red); background: #fdeeee; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 18px; font-size: .9rem; }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; align-items: center; justify-content: center; color: var(--ink);
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .header-cta .btn span { display: none; }
  .header-cta .btn { padding: 11px; width: 44px; height: 44px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 22, 26, .08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .logo img { height: 40px; }
  .topbar .hide-sm { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, #ffe9c2 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 110%, #ffe1e1 0%, transparent 60%),
    var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero h1 span { color: var(--red); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0; list-style: none; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.hero-trust .icon { color: var(--red); }

.hero-visual { position: relative; height: 480px; }
.hero-card {
  position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 12px; width: 230px;
}
.hero-card img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--bg-soft); }
.hero-card .cap { padding: 10px 4px 2px; font-weight: 700; font-size: .9rem; }
.hero-card .cap small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
.hero-card.c1 { left: 4%; top: 40px; transform: rotate(-6deg); z-index: 1; }
.hero-card.c2 { left: 36%; top: 0; transform: rotate(3deg); z-index: 3; width: 250px; }
.hero-card.c3 { right: 0; top: 150px; transform: rotate(8deg); z-index: 2; }
.hero-badge {
  position: absolute; left: 12%; bottom: 10px; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: .9rem;
}
.hero-badge .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--wa); color: #fff; display: grid; place-items: center; }
.hero-badge small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 56px; gap: 32px; }
  .hero-visual { height: 360px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-card { width: 170px; }
  .hero-card.c2 { width: 186px; left: 30%; }
  .hero-card.c3 { top: 110px; }
  .hero-badge { left: 4%; }
}
@media (max-width: 420px) {
  .hero-visual { height: 320px; }
  .hero-card { width: 140px; padding: 8px; }
  .hero-card.c2 { width: 156px; }
  .hero-card .cap { font-size: .8rem; }
}

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 32px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat h3 { font-size: 1.5rem; margin-bottom: 6px; }
.cat p { margin: 0 0 14px; max-width: 320px; }
.cat .more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cat img { position: absolute; right: -10px; top: 50%; transform: translateY(-50%) rotate(8deg); width: 170px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.cat.weight { background: linear-gradient(135deg, #fff3dc, #ffe4b3); }
.cat.men { background: linear-gradient(135deg, #e9f0ff, #d4e0ff); }
.cat .text { position: relative; z-index: 1; max-width: 60%; }
@media (max-width: 760px) {
  .cats { grid-template-columns: 1fr; }
  .cat { padding: 24px; min-height: 190px; }
  .cat img { width: 130px; }
}

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .thumb { position: relative; display: block; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.04); }
.card .tag {
  position: absolute; left: 10px; top: 10px;
  background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: 5px 10px;
}
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.card .sub { font-size: .85rem; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; color: var(--ink); }
.price.ask { font-weight: 600; color: var(--muted); font-size: .88rem; }
.card .order {
  width: 40px; height: 40px; border-radius: 12px; background: var(--wa); color: #fff;
  display: grid; place-items: center; flex: none; transition: background-color .15s;
}
.card .order:hover { background: var(--wa-dark); }
@media (max-width: 760px) {
  .card .body { padding: 12px; }
  .card .name { font-size: .92rem; }
  .card .order { width: 36px; height: 36px; }
}

/* Toolbar (products page) */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; flex: 1; max-width: 340px; min-width: 220px; }
.search input {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1.5px solid var(--line);
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); outline: none;
}
.search input:focus { border-color: var(--ink); }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); grid-column: 1 / -1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 18px;
}
.step:nth-child(2) .num { background: var(--red); }
.step:nth-child(3) .num { background: var(--gold); color: var(--ink); }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 4px; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 16px; background: #fdeeee; color: var(--red);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature:nth-child(even) .ic { background: var(--bg-warm); color: #c78a00; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* CTA band */
.cta {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 169, 0, .35), transparent 70%);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c3c6cc; margin: 0; max-width: 520px; }
.cta .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }

/* Notice */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-warm); border: 1px solid #f7deb0; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: .92rem; color: var(--ink-2);
}
.notice .icon { color: #c78a00; margin-top: 2px; }
.notice p { margin: 0; }

/* Page header */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--bg-warm), var(--bg)); }
.page-head p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a:hover { color: var(--red); }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding: 40px 0 88px; }
.pd-media { background: var(--bg-soft); border-radius: 24px; overflow: hidden; position: sticky; top: 100px; }
.pd-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pd h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.pd .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.pill.red { background: #fdeeee; color: var(--red); }
.pd .price-lg { display: block; font-size: 1.8rem; font-weight: 800; margin: 6px 0 24px; }
.pd .price-lg.ask { font-size: 1.15rem; color: var(--muted); font-weight: 600; }
.pd .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.info { border-top: 1px solid var(--line); }
.info-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.info-row dt { font-weight: 700; font-size: .9rem; }
.info-row dd { margin: 0; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
  .pd-media { position: static; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual {
  border-radius: 24px; background: linear-gradient(135deg, #fff3dc, #fdeeee); padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.split .visual img { border-radius: 16px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.split .visual img:nth-child(2) { transform: translateY(28px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--red); }
.stat span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, transform .2s;
}
a.ccard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ccard .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--bg-soft); color: var(--ink); }
.ccard .ic.wa { background: var(--wa); color: #fff; }
.ccard b { display: block; }
.ccard span { color: var(--muted); font-size: .92rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.form small { display: block; color: var(--muted); margin-top: 12px; text-align: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .form { padding: 24px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Long-form text (policies) */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose .updated { margin-top: 48px; font-size: .88rem; color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: #b9bcc3; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .flogo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 14px; margin-bottom: 16px; }
.footer .flogo img { height: 38px; width: auto; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer p { color: #9a9ea6; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #2a2d33; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #858a93; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
