@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url('/fonts/tajawal-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap; src: url('/fonts/tajawal-arabic-500-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url('/fonts/tajawal-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url('/fonts/tajawal-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FE80-FEFC; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url('/fonts/tajawal-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url('/fonts/tajawal-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #5b21b6;
  --brand-2: #7c3aed;
  --brand-soft: #f3edff;
  --accent: #c6f432;
  --accent-ink: #2d3a00;
  --ink: #1d1636;
  --muted: #6b6485;
  --line: #e6e0f3;
  --bg: #faf8ff;
  --card: #ffffff;
  --ok: #15803d;
  --ok-soft: #e7f8ee;
  --bad: #c62828;
  --bad-soft: #fdecec;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 24, 130, 0.09);
  --font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 26px; color: var(--brand); letter-spacing: -0.5px; }
.logo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--brand); display: inline-block; }
.lang-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; font-weight: 700; color: var(--brand); min-height: 40px; }
.lang-btn:hover { border-color: var(--brand-2); }
.site-footer { margin-top: 48px; padding: 28px 0 40px; background: var(--ink); color: #d9d2ee; text-align: center; font-size: 15px; }
.site-footer a { color: var(--accent); font-weight: 700; text-decoration: none; }
.site-footer .logo { color: #fff; font-size: 22px; margin-bottom: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 14px; padding: 15px 22px; font-weight: 800; font-size: 18px; min-height: 54px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-decoration: none;
  box-shadow: 0 8px 20px rgba(91, 33, 182, 0.28); transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }
.btn.alt { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.btn.wa { background: #1fa855; box-shadow: 0 8px 20px rgba(31, 168, 85, 0.25); }
.btn.inline { width: auto; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* home */
.hero { padding: 36px 0 12px; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 6vw, 44px); line-height: 1.25; color: var(--brand); font-weight: 800; }
.hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 18px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 8px; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.trust b { display: block; font-size: 22px; line-height: 1.2; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--brand-soft); }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2 { margin: 0; font-size: 20px; }
.card .tag { color: var(--muted); margin: 0; font-size: 15px; }
.card .from { font-weight: 800; color: var(--brand); font-size: 20px; margin-top: auto; }
.card .from small { color: var(--muted); font-weight: 500; font-size: 14px; }

/* product */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
.product > * { min-width: 0; }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 5; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 62px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #fff; opacity: 0.7; }
.thumbs button[aria-current='true'] { border-color: var(--brand-2); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { margin: 0 0 4px; font-size: clamp(24px, 5vw, 32px); line-height: 1.3; }
.info .tagline { margin: 0 0 14px; color: var(--muted); }
.bullets { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.bullets li { padding-inline-start: 26px; position: relative; }
.bullets li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; margin-top: 3px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.info .panel { margin-top: 16px; scroll-margin-top: 72px; }
.panel h2 { margin: 0 0 12px; font-size: 20px; color: var(--brand); }
.offers { display: grid; gap: 10px; }
.offer { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.offer:hover { border-color: #cdbdf3; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #bbb2d6; display: grid; place-items: center; }
.offer .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); transform: scale(0); transition: transform 0.12s; }
.offer:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.offer:has(input:checked) .dot { border-color: var(--brand-2); }
.offer:has(input:checked) .dot::after { transform: scale(1); }
.offer:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.offer .title { font-weight: 800; font-size: 17px; }
.offer .per { color: var(--muted); font-size: 14px; }
.offer .save { display: inline-block; margin-inline-start: 6px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 800; }
.offer .price { font-weight: 800; font-size: 20px; color: var(--brand); white-space: nowrap; }

/* form */
form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; }
.field .opt { color: var(--muted); font-weight: 500; font-size: 14px; }
.field .req { color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.8px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); background: var(--bad-soft); }
.field .err { display: none; color: var(--bad); font-size: 14.5px; font-weight: 700; margin-top: 4px; }
.field.invalid .err { display: block; }
.field .hint { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
input[type='tel'], .ltr { direction: ltr; text-align: start; }
html[dir='rtl'] input[type='tel'] { text-align: right; }
.summary { background: var(--brand-soft); border: 1px dashed #c9b6f5; border-radius: 14px; padding: 14px; display: grid; gap: 6px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row.total { border-top: 1px solid #d8c9f7; padding-top: 8px; margin-top: 4px; font-size: 21px; font-weight: 800; color: var(--brand); }
.notice { border-radius: 14px; padding: 14px; font-weight: 700; }
.notice.error { background: var(--bad-soft); color: var(--bad); border: 1px solid #f3b6b6; }
.notice.error p { margin: 0 0 10px; }
.notice .actions { display: grid; gap: 8px; }
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(60, 24, 130, 0.1); }
.sticky-cta.off { display: none; }
body.has-sticky { padding-bottom: 84px; }

/* thanks */
.thanks { text-align: center; padding: 40px 0 8px; }
.thanks .check { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 46px; font-weight: 800; }
.thanks h1 { margin: 0 0 8px; color: var(--brand); }
.thanks .no { display: inline-block; margin: 12px 0; padding: 10px 22px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 22px; letter-spacing: 0.5px; }
.thanks .actions { display: grid; gap: 10px; max-width: 360px; margin: 22px auto 0; }

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(220px, 290px)); justify-content: center; }  .trust { gap: 14px; }
  .trust div { font-size: 15.5px; padding: 16px 8px; }
}
@media (min-width: 720px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
  .gallery { position: sticky; top: 78px; max-width: 480px; width: 100%; margin-inline: auto; }
  .sticky-cta { display: none; }
  body.has-sticky { padding-bottom: 0; }
}
@media (min-width: 900px) { .product { gap: 36px; padding-top: 28px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
