/*
 * Clinic Store premium theme (storefront + checkout).
 * Loaded after the base stylesheet; delete its <link> to get the previous look back.
 */

:root {
  --gold: #c9a227;
  --gold-2: #ecd9a0;
  --gold-3: #f8f1dc;
  --gold-ink: #7a5d0c;
  --navy: #061a2e;
  --navy-2: #0b2a48;
  --ink: #0c2240;
  --muted: #5a6c84;
  --line: #e2e9f1;
  --paper: #f5f7fa;
  --cs-shadow-sm: 0 2px 6px -2px rgba(6, 26, 46, .08);
  --cs-shadow-md: 0 18px 40px -22px rgba(6, 26, 46, .35);
  --cs-shadow-lg: 0 34px 70px -34px rgba(6, 26, 46, .5);
  --cs-ease: cubic-bezier(.2, .8, .2, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
html[lang="ar"] body { font-family: Cairo, Inter, system-ui, sans-serif; }
img, video { max-width: 100%; }
::selection { background: var(--gold-2); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- top accent + header ---------- */

div[class*="h-1.5"] { height: 3px; background: linear-gradient(90deg, var(--navy), var(--brand) 45%, var(--gold) 75%, var(--gold-2)); }

.site-header {
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(201, 162, 39, .18);
  box-shadow: 0 12px 30px -26px rgba(6, 26, 46, .5);
}
.site-head { min-height: 70px; }
.site-nav a { position: relative; padding: 6px 0; color: var(--muted); transition: color .2s; }
.site-nav a:hover { color: var(--ink); }
.site-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform: scaleX(0); transition: transform .3s var(--cs-ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.brand-text div { color: var(--ink); letter-spacing: .01em; }
.cart-btn { width: 44px; height: 44px; border-color: rgba(201, 162, 39, .35); transition: border-color .2s, box-shadow .2s; }
.cart-btn:hover { border-color: var(--gold); box-shadow: 0 8px 20px -12px rgba(201, 162, 39, .8); }
.cart-btn em { background: linear-gradient(180deg, #f3e3b0, var(--gold)); }
.lang-switch { border-color: rgba(201, 162, 39, .3); box-shadow: var(--cs-shadow-sm); }
.lang-switch button.active { background: linear-gradient(135deg, #0a67c2, var(--brand) 50%, #063f7a); }

/* ---------- buttons ---------- */

.brand-btn {
  background: linear-gradient(135deg, #0b6dcb, var(--brand) 45%, #063f7a);
  box-shadow: 0 14px 28px -14px rgba(0, 90, 170, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
  letter-spacing: .01em;
  transition: transform .2s var(--cs-ease), box-shadow .2s, filter .2s;
}
.brand-btn:hover { background: linear-gradient(135deg, #0b6dcb, var(--brand) 45%, #063f7a); filter: brightness(1.08); transform: translateY(-2px); }
.brand-btn:active { transform: translateY(0); }
.brand-btn:disabled { opacity: .55; transform: none; filter: none; cursor: not-allowed; }
.head-cta { padding: 11px 20px; }

.ghost-btn { border-color: rgba(0, 90, 170, .35); transition: background .2s, border-color .2s; }
.ghost-btn:hover { background: var(--brand-soft); border-color: var(--brand); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(0, 90, 170, .45), transparent 60%),
    radial-gradient(600px 360px at 10% 110%, rgba(201, 162, 39, .16), transparent 60%),
    linear-gradient(160deg, #030c17, #06213a 55%, #0a3a66);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .6), transparent);
}
.hero .brand-btn {
  background: linear-gradient(180deg, #f6e8b8, var(--gold));
  color: #1a1406;
  box-shadow: 0 16px 34px -14px rgba(201, 162, 39, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.hero .brand-btn:hover { background: linear-gradient(180deg, #f9eec9, #d4ae33); }
.hero-ghost { border-color: rgba(246, 231, 178, .4); backdrop-filter: blur(6px); }
.hero-ghost:hover { background: rgba(246, 231, 178, .1); border-color: var(--gold-2); }
.hero-sub { color: #e2d3a4; }
.hero-slide { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(246, 231, 178, .25); }

/* ---------- section headings ---------- */

.badge {
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(201, 162, 39, .4);
  background: linear-gradient(180deg, #fffaf0, var(--gold-3));
  color: var(--gold-ink);
  letter-spacing: .02em;
}
.offers-section h2, .why-head h2, section[class*="py-16"] h2 { letter-spacing: -.02em; color: var(--ink); }
.offers-section .mb-10 h2::after, .why-head h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- why files ---------- */

.why-files { background: radial-gradient(900px 420px at 50% -8%, rgba(0, 90, 170, .1), transparent 60%), linear-gradient(180deg, #f7fafd, #fff); }
.why-card { opacity: 1; transform: none; border-color: var(--line); box-shadow: var(--cs-shadow-md); }
.why-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .3s;
}
.why-card:hover, .why-on .why-card:hover { transform: translateY(-6px); border-color: rgba(201, 162, 39, .45); box-shadow: var(--cs-shadow-lg); }
.why-card:hover::before { opacity: 1; }
.why-num { color: rgba(201, 162, 39, .18); }

/* ---------- offers ---------- */

.offers-section { background: radial-gradient(800px 320px at 50% 0%, rgba(0, 90, 170, .07), transparent 60%), linear-gradient(180deg, #fff, #f8fafc); }
.offers-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.offers-stage > * { flex: 0 1 calc((100% - 52px) / 3); max-width: calc((100% - 52px) / 3); }

.offer-card {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(150deg, #f3e3b0, var(--gold) 28%, #e6eef7 58%, var(--gold)) border-box;
  box-shadow: var(--cs-shadow-md);
  transition: transform .4s var(--cs-ease), box-shadow .4s;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--cs-shadow-lg); }
.offer-card.is-featured, .offer-card.is-selected { box-shadow: var(--cs-shadow-lg), 0 0 0 1px rgba(201, 162, 39, .45); }
.offer-visual { border-radius: 24px 24px 18px 18px; }
.offer-panel { border-color: rgba(201, 162, 39, .22); background: rgba(255, 255, 255, .97); }
.offer-panel h3 { color: var(--ink); }
.offer-badge {
  background: linear-gradient(180deg, #f8edc4, var(--gold));
  color: #1a1406;
  letter-spacing: .03em;
  box-shadow: 0 10px 20px -8px rgba(201, 162, 39, .7);
}
.offer-kicker { color: var(--gold-ink); }
.offer-chips li { background: linear-gradient(180deg, #f5f9fd, #eaf2fa); border: 1px solid rgba(0, 90, 170, .08); color: var(--ink); }
.offer-foot { border-top: 1px dashed rgba(201, 162, 39, .35); padding-top: 14px; }
.price { color: var(--brand); font-size: 30px; }
.old-price { color: #9aa8b8; }
.offer-cta { min-height: 44px; }
.offer-ghost { border-color: rgba(201, 162, 39, .45); transition: background .2s, border-color .2s; }
.offer-ghost:hover { background: var(--gold-3); border-color: var(--gold); }

/* ---------- why Clinic Store ---------- */

section[class*="py-16"] { background: linear-gradient(180deg, #f5f7fa, #fff); }
section[class*="py-16"] .rounded-2xl {
  position: relative;
  border-color: var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--cs-shadow-sm);
  transition: transform .3s var(--cs-ease), box-shadow .3s, border-color .3s;
}
section[class*="py-16"] .rounded-2xl::before {
  content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 0; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
section[class*="py-16"] .rounded-2xl:hover { transform: translateY(-3px); box-shadow: var(--cs-shadow-md); border-color: rgba(201, 162, 39, .35); }

/* ---------- reviews ---------- */

.rv-sec { background: linear-gradient(180deg, #fff, #f7f9fc); }
.rv-stats { border-color: rgba(201, 162, 39, .3); }
.rv-card { border-color: var(--line); box-shadow: var(--cs-shadow-sm); transition: transform .3s var(--cs-ease), box-shadow .3s; }
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--cs-shadow-md); }
.rv-ava { background: linear-gradient(135deg, var(--navy-2), var(--brand)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(201, 162, 39, .5); }

/* ---------- footer ---------- */

footer[class*="border-t"] {
  position: relative;
  padding: 48px 0 96px;
  border: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(201, 162, 39, .12), transparent 70%), linear-gradient(180deg, #071c31, #030d18);
  color: #c7d3e0;
}
footer[class*="border-t"]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
footer[class*="border-t"] img { height: 58px; padding: 8px 14px; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
footer[class*="border-t"] div[class*="text-sm"] { color: #aebdcd; letter-spacing: .02em; }

.wa-float { box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .6), 0 0 0 4px rgba(37, 211, 102, .15); }

/* ---------- cart drawer ---------- */

@keyframes csFade { from { opacity: 0; } }
@keyframes csSlideR { from { transform: translateX(40px); opacity: 0; } }
@keyframes csSlideL { from { transform: translateX(-40px); opacity: 0; } }
.cart-overlay { background: rgba(3, 12, 23, .55); backdrop-filter: blur(3px); animation: csFade .2s ease; }
.cart-drawer {
  display: flex; flex-direction: column;
  width: min(420px, 94vw);
  padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  border-start-start-radius: 26px; border-end-start-radius: 26px;
  box-shadow: -30px 0 60px -20px rgba(3, 12, 23, .45);
  animation: csSlideR .3s var(--cs-ease);
}
[dir="rtl"] .cart-drawer { animation-name: csSlideL; }
.cart-drawer-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-drawer-head h3 { font-size: 22px; }
.cart-drawer-head button { transition: background .2s; }
.cart-drawer-head button:hover { background: var(--gold-3); }
.cart-lines li { grid-template-columns: 76px 1fr; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfe; }
.cart-lines img { width: 76px; height: 76px; border-radius: 14px; }
.cart-lines span { color: var(--brand); font-weight: 800; font-size: 14px; }
.qty-row button { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; transition: border-color .2s, background .2s; }
.qty-row button:hover { border-color: var(--brand); background: var(--brand-soft); }
.qty-row.is-lg button { width: 40px; height: 40px; }

/* ---------- checkout ---------- */

.checkout-page { background: radial-gradient(900px 300px at 50% 0%, rgba(0, 90, 170, .06), transparent 60%), linear-gradient(180deg, #f3f6fa, #fff 60%); }
.checkout-grid { padding: 32px 0 40px; }
.checkout-page .card { border-color: var(--line); border-radius: 26px; box-shadow: var(--cs-shadow-md); }
.checkout-page .card.h-fit { border-top: 3px solid var(--gold); }
.field {
  min-height: 50px;
  border-radius: 14px;
  border-color: var(--line);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 90, 170, .12); outline: none; }
.label { color: var(--ink); }
.size-board { border-color: rgba(201, 162, 39, .28); background: linear-gradient(180deg, #fffdf7, #fbfcfe); }
.size-alloc-row { border-radius: 16px; }
.receipt { border-top: 4px solid var(--gold); box-shadow: var(--cs-shadow-lg); }

/* ---------- responsive ---------- */

.hero-slogan-row, .hero-slogan-row.is-rest { display: block; white-space: normal; }
.hero-slogan-row .hero-flag-mark { display: inline-flex; vertical-align: middle; margin-inline-start: 12px; transform: translateY(-3px); }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; text-align: center; }

@media (min-width: 980px) {
  .checkout-grid > .card.h-fit { position: sticky; top: 90px; }
}

@media (max-width: 979px) {
  .offers-stage > * { flex-basis: calc((100% - 26px) / 2); max-width: calc((100% - 26px) / 2); }
}

@media (max-width: 719px) {
  .site-head { min-height: 58px; }
  .offers-stage { gap: 22px; }
  .offers-stage > * { flex-basis: 100%; max-width: 100%; }
  .offer-card:hover { transform: none; }
  .price { font-size: 32px; }
  .offer-foot .offer-actions { flex-direction: row; }
  .offer-foot .offer-actions > * { flex: 1; }
  .why-files, .film-section, .offers-section, section[class*="py-16"] { padding-top: 48px; padding-bottom: 48px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .why-card { padding: 14px 12px 16px; border-radius: 20px; }
  .why-card h3 { font-size: 15px; }
  .why-card p { font-size: 12.5px; line-height: 1.6; }
  .why-num { font-size: 30px; }
  .why-visual { height: 96px; margin-bottom: 8px; }
  .why-art { width: 86px; height: 86px; }
  footer[class*="border-t"] { padding: 40px 0 100px; }
  .wa-float { width: 54px; height: 54px; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; }
  .checkout-grid { padding: 18px 0 28px; gap: 16px; }
  .checkout-page .card { border-radius: 22px; padding: 20px 16px; }
  .cart-drawer { width: 100vw; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
