/* PDC3 — light, professional pharmaceutical trade catalogue.
   Logical properties are used throughout so Arabic RTL needs almost no overrides. */
:root {
  --ink: #10292b;
  --muted: #5d7274;
  --brand: #0e6b6b;
  --brand-dark: #08494a;
  --accent: #b9912a;
  --bg: #f5f9f9;
  --surface: #ffffff;
  --soft: #e8f3f2;
  --line: #dce8e8;
  --danger: #b23b3b;
  --ok: #1d7a52;
  --shadow: 0 10px 30px rgba(14, 76, 76, .08);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Sans Lao", "Leelawadee UI", "DokChampa", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mono { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.5px; box-shadow: 0 4px 12px rgba(14,107,107,.25); }
.brand-name { font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -.4px; }
.brand-tag { font-size: 10.5px; color: var(--muted); letter-spacing: .2px; white-space: nowrap; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .78; }
.main-nav a:hover { opacity: 1; color: var(--brand); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.lang-wrap { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; background: var(--surface); }
.lang-wrap svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; stroke-width: 1.8; flex: 0 0 auto; }
#lang-select { border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; padding: 3px 2px; max-width: 118px; outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 14px; text-decoration: none; transition: .18s ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(14,107,107,.2); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); background: var(--soft); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.basket-btn { position: relative; }
.basket-badge { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: none; place-items: center; padding: 0 4px; }
.basket-badge.show { display: grid; }

/* ------------------------------------------------------------------ hero */
.hero { background: radial-gradient(900px 500px at 85% 10%, #dff0ee 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-block: 74px 78px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 12.5px; letter-spacing: .5px; text-transform: uppercase; background: var(--soft); border: 1px solid #cfe6e4; padding: 7px 13px; border-radius: 30px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -1.4px; margin: 22px 0 18px; max-width: 15ch; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note::before { content: "✓"; color: var(--ok); font-weight: 800; }
.hero-art { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; }
.hero-art::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: #e3f2f0; filter: blur(4px); z-index: 0; inset-block-start: -30px; inset-inline-end: -30px; opacity: .7; }
.art-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.art-cell { background: linear-gradient(160deg, #f7fbfb, #eaf4f3); border: 1px solid #e0eeee; border-radius: 12px; aspect-ratio: 1/.86; display: grid; place-items: center; }
.art-cell svg { width: 74%; height: 74%; }
.art-caption { position: relative; z-index: 1; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.art-caption strong { color: var(--brand); font-size: 17px; display: block; }

/* -------------------------------------------------------------- sections */
section { padding-block: 68px; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.8px; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }
.kicker { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; display: block; margin-bottom: 10px; }

.trust { background: var(--surface); border-block: 1px solid var(--line); padding-block: 42px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { padding-inline-start: 16px; border-inline-start: 3px solid var(--soft); }
.trust-item:nth-child(1) { border-color: var(--brand); }
.trust-item:nth-child(2) { border-color: #3f8f8f; }
.trust-item:nth-child(3) { border-color: #78aeac; }
.trust-item:nth-child(4) { border-color: var(--accent); }
.trust-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.trust-item span { font-size: 13px; color: var(--muted); line-height: 1.55; display: block; }

.stats { background: var(--brand-dark); color: #fff; padding-block: 38px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { text-align: center; padding: 8px 10px; border-inline-end: 1px solid rgba(255,255,255,.16); }
.stat:last-child { border: 0; }
.stat b { display: block; font-size: clamp(21px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.8px; line-height: 1.2; }
.stat span { font-size: 12px; opacity: .82; }

/* -------------------------------------------------------------- catalogue */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-wrap { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-wrap svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
#catalog-search { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); outline: none; }
[dir="rtl"] #catalog-search { padding: 12px 42px 12px 14px; }
#catalog-search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,107,107,.11); }
.catalog-count { font-size: 13px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 9px 15px; border-radius: 30px; font-size: 13px; font-weight: 600; transition: .16s; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c6dddc; }
.card-visual { background: linear-gradient(150deg, #f1f9f8, #e6f2f1); height: 132px; display: grid; place-items: center; border-bottom: 1px solid #e5f0ef; }
.card-visual svg { width: 108px; height: 94px; }
.card-body { padding: 17px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.chip { background: var(--soft); color: var(--brand-dark); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.pid { font-size: 10.5px; color: #8ba0a1; letter-spacing: .3px; }
.card-name { font-size: 16px; line-height: 1.3; margin: 0 0 6px; letter-spacing: -.2px; }
.card-comp { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; min-height: 38px; line-height: 1.45; }
.card-meta { margin: 0 0 16px; font-size: 12px; }
.card-meta div { display: flex; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); }
.card-meta dt { color: #849899; min-width: 92px; flex: 0 0 auto; }
.card-meta dd { margin: 0; color: var(--ink); word-break: break-word; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-size: 12px; font-weight: 700; color: var(--accent); }
.btn-add { border: 1px solid var(--brand); color: var(--brand); background: transparent; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; transition: .16s; }
.btn-add:hover { background: var(--brand); color: #fff; }
.btn-add.is-added { background: var(--soft); border-color: #b9d9d7; color: var(--brand-dark); }
.catalog-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; font-size: 12.5px; color: var(--muted); }
.tech-note { max-width: 720px; }
.no-results { padding: 50px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ------------------------------------------------------------------ about */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.prose p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.prose h3 { margin: 26px 0 8px; font-size: 18px; }
.history-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history-card img { width: 100%; height: 230px; object-fit: cover; object-position: center 32%; filter: saturate(.72) contrast(1.02); background: #d9d9d9; }
.history-card figcaption { padding: 12px 16px; font-size: 12px; color: var(--muted); }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.fact { background: var(--soft); border-radius: 11px; padding: 14px; }
.fact b { display: block; font-size: 19px; color: var(--brand-dark); }
.fact span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------- compliance */
.compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; position: relative; }
.rule::before { counter-increment: rule; content: counter(rule, decimal-leading-zero); position: absolute; inset-inline-end: 20px; top: 16px; font-size: 22px; font-weight: 800; color: #d6e6e5; }
.compliance-grid { counter-reset: rule; }
.rule h3 { font-size: 15.5px; margin: 0 0 8px; padding-inline-end: 40px; }
.rule p { margin: 0; font-size: 13.5px; color: var(--muted); }
.compliance-note { margin-top: 20px; padding: 16px 20px; border-inline-start: 4px solid var(--accent); background: #fdf9ec; font-size: 13.5px; color: #6e5a20; border-radius: 0 10px 10px 0; }

/* ---------------------------------------------------------------- contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.contact-lines { display: grid; gap: 18px; }
.contact-line { border-inline-start: 3px solid var(--soft); padding-inline-start: 16px; }
.contact-line small { display: block; color: var(--brand); font-weight: 800; font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
.contact-line span, .contact-line a { font-size: 14px; color: var(--ink); }
.contact-line .pending { color: var(--muted); font-style: italic; display: block; margin-top: 2px; }
.email-link { color: var(--brand) !important; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--soft); }
.email-link:hover { border-bottom-color: var(--brand); }
.contact-cta { background: linear-gradient(150deg, var(--brand-dark), #0b6262); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-cta h3 { margin: 0 0 10px; font-size: 20px; }
.contact-cta p { opacity: .85; font-size: 14px; margin: 0 0 20px; }
.contact-cta .btn-primary { background: #fff; color: var(--brand-dark); }
.contact-cta .btn-primary:hover { background: #eef7f6; }

/* ----------------------------------------------------------------- drawer */
.overlay { position: fixed; inset: 0; background: rgba(9, 36, 37, .45); z-index: 60; backdrop-filter: blur(2px); }
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(470px, 100%); background: var(--bg); z-index: 61; box-shadow: -14px 0 40px rgba(9, 36, 37, .18); transform: translateX(101%); transition: transform .26s ease; display: flex; flex-direction: column; }
[dir="rtl"] .drawer { transform: translateX(-101%); }
.drawer.open, [dir="rtl"] .drawer.open { transform: translateX(0); }
#inquiry-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-head { padding: 20px 22px 16px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--muted); flex: 0 0 auto; }
.drawer-body { overflow-y: auto; padding: 20px 22px 30px; flex: 1; }
.drawer-section-title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; margin: 0 0 10px; }
.basket-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.basket-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.basket-item strong { display: block; font-size: 13px; line-height: 1.3; }
.basket-item small { color: var(--muted); font-size: 11.5px; }
.btn-remove { border: 0; background: transparent; color: #a6b8b8; font-size: 21px; line-height: 1; padding: 2px 6px; }
.btn-remove:hover { color: var(--danger); }
.empty { color: var(--muted); font-size: 13px; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; margin: 0 0 20px; }
.link-btn { border: 0; background: transparent; color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: var(--surface); color: var(--ink); font-size: 13px; outline: none; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,107,107,.1); }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 16px 0; }
.consent input { margin-top: 3px; accent-color: var(--brand); }
.form-status { padding: 11px 13px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; }
.form-status.info { background: var(--soft); color: var(--brand-dark); }
.form-status.success { background: #e6f5ed; color: var(--ok); }
.form-status.error { background: #fdecec; color: var(--danger); }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.drawer-foot { padding: 14px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.drawer-foot .btn { width: 100%; }

/* ------------------------------------------------------------------ toast */
.geo-toast { position: fixed; z-index: 50; inset-inline-end: 20px; bottom: 20px; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: 12px; box-shadow: var(--shadow); padding: 13px 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.geo-toast p { margin: 0; flex: 1 1 200px; }
.geo-toast .icon-btn { width: 26px; height: 26px; font-size: 16px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #0c3536; color: #d9ebea; padding-block: 36px 26px; font-size: 12.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.footer-grid strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.footer-grid p { margin: 0 0 8px; opacity: .8; max-width: 62ch; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.footer-langs a { color: #cfe7e5; text-decoration: none; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 4px 10px; font-size: 11.5px; }
.footer-langs a:hover { background: rgba(255,255,255,.1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; opacity: .72; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 54px; }
  .hero-art { max-width: 560px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .stat:nth-child(3) { border: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  section { padding-block: 46px; }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand-tag { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid, .compliance-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .art-caption { flex-direction: column; gap: 6px; }
}
