:root {
  --bg: #05070E;
  --bg-2: #0A101F;
  --panel: #0C1426;
  --panel-2: #111C33;
  --line: #1E2A47;
  --line-2: #2A3A5E;
  --text: #F2F5FB;
  --muted: #A3B2CF;
  --dim: #7E8EAC;
  --red: #E8112D;
  --red-btn: #C80E24;
  --red-soft: #FF6B7D;
  --blue: #1B4FB8;
  --blue-soft: #8FB4FF;
  --green: #4ED08A;
  --radius: 16px;
  --display: 'Alexandria', 'Tajawal', system-ui, sans-serif;
  --body: 'Tajawal', system-ui, sans-serif;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: #C7D9FF; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; transition: filter .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { color: #fff; filter: brightness(1.12); }
.btn-ghost { background: #101A2E; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: #3B4F7C; }
.btn-white { background: #fff; color: #0B1224; }
.btn-white:hover { color: #0B1224; filter: brightness(.94); }
.btn-wa { background: #128C4B; color: #fff; }
.btn-wa:hover { color: #fff; filter: brightness(1.1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-btn:hover { color: var(--text); border-color: #3B4F7C; }

/* ---------- header ---------- */
.announce { background: var(--panel); border-bottom: 1px solid #22304F; color: #B9C7E2; font-size: 13px; text-align: center; padding: 10px 16px; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(5,7,14,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #16203A; }
.nav { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo img { width: 52px; height: 52px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; font-weight: 500; }
.nav-links a { color: #C3D0E8; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a.sale { color: var(--red-soft); font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.badge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.badge.on { display: inline-flex; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 600px; background: #070C18; }
.hero-text { padding: 88px 56px 56px 32px; display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.hero-text > * { max-width: 560px; margin-inline-start: auto; width: 100%; }
.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 13px; letter-spacing: 2px; color: #FF7A8A; font-weight: 700; }
.kicker::before { content: ''; width: 34px; height: 3px; background: var(--red); }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 800; }
.hero p { margin: 0; font-size: 19px; color: #AFBEDA; line-height: 1.8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 34px; padding-top: 20px; border-top: 1px solid #1B2740; }
.hero-stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: #94A5C4; }
.hero-media { position: relative; overflow: hidden; min-height: 600px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #070C18 0%, rgba(7,12,24,0) 40%); }
.hero-tag { position: absolute; top: 36px; left: 36px; z-index: 1; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; padding: 12px 20px; border-radius: 10px; }

/* ---------- trust ---------- */
.trust { background: var(--panel); border-block: 1px solid #1B2740; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 34px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item svg { color: #7FA8FF; flex-shrink: 0; }
.trust-item:first-child svg { color: var(--red-soft); }
.trust-item b { display: block; font-size: 16px; }
.trust-item span { font-size: 13px; color: #94A5C4; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid #1B2740; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-head p { margin: 6px 0 0; color: #94A5C4; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- product card ---------- */
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.card:hover { color: var(--text); border-color: #34487A; transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--panel-2); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; right: 12px; background: var(--red-btn); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.tag.blue { background: var(--blue); }
.tag.dark { background: #1A2338; color: #C3D0E8; }
.card-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.card-cat { font-size: 12px; color: var(--blue-soft); font-weight: 700; }
.card-name { font-size: 17px; font-weight: 700; }
.card-sizes { font-size: 13px; color: #94A5C4; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.price s { color: var(--dim); font-size: 14px; }

/* ---------- split / banner / steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid #22304F; aspect-ratio: 3 / 2; }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.split p { color: #AFBEDA; font-size: 17px; line-height: 1.8; margin: 0 0 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks svg { color: var(--green); flex-shrink: 0; }
.banner { background: linear-gradient(90deg, #12203F 0%, #2A0A12 100%); }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 56px; }
.banner h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.banner p { margin: 10px 0 0; color: #C9D6EE; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step b { font-family: var(--display); font-size: 30px; color: var(--red); }
.step h3 { font-family: var(--body); font-size: 19px; margin: 6px 0; }
.step p { margin: 0; color: #AFBEDA; font-size: 15px; }

/* ---------- shop ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 38px; font-weight: 800; }
.crumbs { font-size: 14px; color: #8593B3; display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0 0; }
.crumbs a { color: #8593B3; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 28px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--panel); border: 1px solid #22304F; color: #D7E0F2; font-size: 14px; display: inline-flex; align-items: center; white-space: nowrap; }
.chip:hover { color: #fff; border-color: #3B4F7C; }
.chip.on { background: var(--red-btn); border-color: var(--red-btn); color: #fff; }
.filters .grow { flex: 1; }
.select { height: 44px; border-radius: 12px; border: 1px solid #22304F; background: var(--panel); color: var(--text); padding: 0 12px; }
.empty { text-align: center; padding: 64px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 16px 0 64px; }
.gallery-main { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid #22304F; background: var(--panel-2); aspect-ratio: 4 / 5; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 14px; }
.thumbs button { position: relative; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid #22304F; background: var(--panel-2); cursor: pointer; aspect-ratio: 1; }
.thumbs button[aria-current="true"] { border: 2px solid var(--red); }
.thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #101C33; border: 1px solid #23365E; color: var(--blue-soft); }
.pill.ok { color: var(--green); background: #0B1F18; border-color: #1E4A36; }
.pill.no { color: var(--red-soft); background: #200A10; border-color: #4A1E28; }
.pdp h1 { font-size: 38px; font-weight: 800; }
.pdp .desc { margin: 0; color: #AFBEDA; line-height: 1.9; white-space: pre-line; }
.pdp .price b { font-size: 36px; }
.pdp .price s { font-size: 18px; }
.save { color: var(--red-soft); font-weight: 700; font-size: 14px; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size span { min-width: 64px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #22304F; background: var(--panel); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
.size input:checked + span { background: var(--red-btn); border-color: var(--red); color: #fff; }
.size input:focus-visible + span { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.size input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.stock-note { font-size: 13px; color: #FFB86B; min-height: 20px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #22304F; border-radius: 12px; background: var(--panel); height: 50px; }
.qty button { width: 46px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 20px; }
.qty input { width: 48px; text-align: center; background: none; border: 0; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 180px; }
.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; font-size: 15px; }
.info-box div { display: flex; align-items: center; gap: 12px; }
.info-box svg { color: #7FA8FF; flex-shrink: 0; }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.table th { background: #12203F; text-align: start; padding: 14px 16px; }
.table td { padding: 13px 16px; border-top: 1px solid #16203A; color: #C3D0E8; }
.table tr:nth-child(even) td { background: #0A1220; }
.table td:first-child { color: #fff; font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: 14px; }
.mobile-buy { display: none; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; padding: 16px 0 64px; }
.cart-lines { display: grid; gap: 14px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.line img { width: 96px; height: 110px; object-fit: cover; border-radius: 10px; }
.line h3 { font-family: var(--body); font-size: 16px; }
.line .meta { color: var(--muted); font-size: 14px; }
.line .warn { color: #FFB86B; font-size: 13px; }
.line-end { display: grid; gap: 10px; justify-items: end; }
.line .qty { height: 42px; }
.line .qty button { width: 38px; }
.remove { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 13px; text-decoration: underline; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.panel h2 { font-size: 22px; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--dim); }
.input { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid #22304F; background: #0A1220; color: var(--text); padding: 10px 14px; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: #4A6BB0; outline: none; }
.input[aria-invalid="true"] { border-color: var(--red); }
.totals { display: grid; gap: 8px; padding: 16px 0; margin: 8px 0 16px; border-block: 1px solid #1B2740; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: var(--display); font-size: 22px; font-weight: 800; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 14px; }
.alert-err { background: #2A0A12; border: 1px solid #5A1A26; color: #FFC2CB; }
.alert-ok { background: #0B1F18; border: 1px solid #1E4A36; color: #B9F0D2; }
.cod { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.cod svg { color: var(--green); }

/* ---------- order ---------- */
.order-hero { text-align: center; padding: 48px 0 24px; }
.order-hero .ok-circle { width: 72px; height: 72px; border-radius: 50%; background: #0B1F18; border: 1px solid #1E4A36; color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.order-code { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: 1px; direction: ltr; unicode-bidi: isolate; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid; }
.st-blue { color: #8FB4FF; border-color: #23365E; background: #101C33; }
.st-teal { color: #6EE0D6; border-color: #1B4A48; background: #0A1E20; }
.st-orange { color: #FFB86B; border-color: #5A3B16; background: #22160A; }
.st-green { color: var(--green); border-color: #1E4A36; background: #0B1F18; }
.st-red { color: var(--red-soft); border-color: #4A1E28; background: #200A10; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.timeline div { height: 6px; border-radius: 3px; background: #1B2740; }
.timeline div.on { background: var(--green); }
.timeline-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- footer ---------- */
.site-foot { background: #060A14; border-top: 1px solid #1B2740; padding: 48px 0 0; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h3 { font-family: var(--body); font-size: 16px; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a, .foot-grid p { color: #94A5C4; font-size: 15px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #16203A; margin-top: 40px; padding: 20px 0; font-size: 13px; color: var(--dim); }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 60; background: #0F1B33; border: 1px solid #2E4270; color: #fff; padding: 14px 18px; border-radius: 14px; display: flex; align-items: center; gap: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); transition: .25s; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { font-weight: 700; white-space: nowrap; }

/* ---------- mobile menu ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: none; }
.drawer.on { display: block; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--panel); border-left: 1px solid var(--line-2); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.drawer-panel a { color: var(--text); padding: 14px 8px; border-bottom: 1px solid #16203A; font-size: 17px; }
.drawer-panel .icon-btn { align-self: flex-start; margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { justify-content: space-between; }
  .nav-wa { display: none; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; height: 360px; min-height: 0; }
  .hero-media::after { background: linear-gradient(0deg, #070C18 2%, rgba(7,12,24,0) 55%); }
  .hero-text { padding: 8px 16px 40px; }
  .hero-text > * { max-width: none; }
  .hero-tag { top: 16px; left: 16px; font-size: 16px; padding: 8px 14px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 15px; }
  .price b { font-size: 17px; }
  .split, .pdp, .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .banner .wrap { flex-direction: column; align-items: flex-start; padding-block: 36px; }
  .section { padding: 44px 0; }
  .section-head h2, .page-head h1 { font-size: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pdp h1 { font-size: 28px; }
  .pdp .price b { font-size: 28px; }
  .pdp { padding-bottom: 110px; }
  .mobile-buy { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid #22304F; }
  .mobile-buy .btn { flex: 1; min-height: 50px; padding: 0 12px; }
  .desktop-buy { display: none; }
  .line { grid-template-columns: 76px 1fr; }
  .line img { width: 76px; height: 90px; }
  .line-end { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
@media (max-width: 420px) {
  .hero-stats { gap: 20px; }
  .hero-stats b { font-size: 22px; }
  .trust-item b { font-size: 14px; }
  .trust-item span { font-size: 12px; }
}
