:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --navy: #0b1730;
  --navy-2: #13254a;
  --accent: #ffc21a;
  --accent-ink: #3b2a00;
  --wa: #1fae55;
  --wa-dark: #178a43;
  --tg: #229ed9;
  --danger: #e11d48;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 1.2em; height: 1.2em; flex: none; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }
bdi.nw { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; min-height: 46px; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: #1a86ba; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffcf4d; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: #f1f5f9; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--navy); color: #e2e8f0; text-align: center; font-size: 13px; padding: 6px 12px; font-weight: 600; letter-spacing: .2px; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.brand-text small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; background: #f1f4f9; border: 1px solid transparent; border-radius: 12px; padding: 0 14px; height: 46px; color: var(--muted); transition: border-color .15s, background .15s; }
.search:focus-within { background: #fff; border-color: var(--navy-2); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--ink); height: 100%; }
.search-desktop { flex: 1; max-width: 520px; margin-inline: auto; }
.search-mobile-wrap { display: none; padding-bottom: 12px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-switch { display: flex; background: #f1f4f9; border-radius: 10px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; padding: 6px 11px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); min-width: 40px; }
.lang-switch button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* Hero */
.hero { background: radial-gradient(1000px 400px at 85% -10%, rgba(255, 194, 26, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0f1f40 55%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; margin: 0 0 14px; font-weight: 800; letter-spacing: -.3px; }
.hero h1 span { color: var(--accent); }
.hero p { color: #cbd5e1; font-size: 17px; margin: 0 0 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #94a3b8; font-weight: 600; }
.hero-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-3deg); }
[dir=ltr] .hero-collage { transform: rotate(3deg); }
.hero-collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); background: #1e293b; }
.hero-collage img:nth-child(3n+2) { transform: translateY(18px); }

/* Categories */
.section { padding-block: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { height: 6px; }
.cats::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.cat-chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; font-weight: 700; font-size: 15px; transition: all .15s; color: var(--ink-2); }
.cat-chip:hover { border-color: #cbd5e1; }
.cat-chip .ico { font-size: 18px; line-height: 1; }
.cat-chip .count { font-size: 12px; background: #f1f5f9; color: var(--muted); padding: 1px 8px; border-radius: 999px; }
.cat-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-chip.active .count { background: rgba(255, 255, 255, .15); color: #e2e8f0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.toolbar .count { color: var(--muted); font-weight: 700; }
.select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat; background-size: 18px; background-position: left 12px center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; padding-inline-end: 40px; font-weight: 600; cursor: pointer; }
[dir=ltr] .select { background-position: right 12px center; }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 1; background: #eef1f6; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card.is-out .card-media img { filter: grayscale(.8) opacity(.7); }
.badge { position: absolute; top: 10px; font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.badge-new { inset-inline-start: 10px; background: var(--accent); color: var(--accent-ink); }
.badge-out { inset-inline-start: 10px; top: auto; bottom: 10px; background: rgba(15, 23, 42, .85); color: #fff; }
.badge-count { inset-inline-end: 10px; background: rgba(15, 23, 42, .6); color: #fff; backdrop-filter: blur(4px); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.card-title { font-weight: 700; font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.card-title:hover { color: var(--navy-2); }
.card-price { font-size: 20px; font-weight: 800; color: var(--navy); margin-top: auto; }
.card-price.on-request { font-size: 15px; color: var(--muted); }
.card .btn { margin-top: 6px; }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty strong { display: block; font-size: 20px; color: var(--ink); margin-bottom: 4px; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #e9edf3 25%, #f4f6fa 50%, #e9edf3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card { aspect-ratio: .68; }

/* How to order */
.how { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-step { padding: 22px; border-radius: var(--radius); background: var(--bg); position: relative; }
.how-step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--accent); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.how-step h3 { margin: 0 0 4px; font-size: 17px; }
.how-step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding-top: 40px; margin-top: 0; }
.site-footer .brand-text small, .site-footer .muted { color: #94a3b8; }
.site-footer .brand-text strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: #e2e8f0; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-fab { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 174, 85, .45); z-index: 60; transition: transform .2s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 30px; height: 30px; }

/* Product page */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.back-link { display: inline-flex; align-items: center; gap: 4px; }
[dir=rtl] .back-link svg { transform: scaleX(-1); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; padding-block: 20px 40px; align-items: start; }
.gallery { position: sticky; top: 130px; }
.gallery-main { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; background: #f8fafc; }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gallery-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(15, 23, 42, .25); transition: all .2s; }
.gallery-dots span.on { background: var(--navy); width: 22px; border-radius: 6px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin: 8px 0 10px; font-weight: 800; }
.p-cat { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.p-price { font-size: 34px; font-weight: 800; color: var(--navy); margin: 6px 0 4px; }
.p-price.on-request { font-size: 22px; color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.stock::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--wa); }
.stock.out { color: var(--danger); }
.stock.out::before { background: var(--danger); }
.p-note { background: #fff8e1; border: 1px solid #ffe7a3; color: #6b5200; padding: 12px 14px; border-radius: 12px; font-size: 15px; margin: 18px 0; }
.p-desc { color: var(--ink-2); white-space: pre-line; margin: 0 0 18px; }
.p-actions { display: grid; gap: 10px; }
.p-actions .btn { min-height: 54px; font-size: 17px; }
.p-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-preview { margin-top: 18px; background: #e7f7ed; border-radius: 14px; padding: 12px; font-size: 14px; color: #14532d; display: flex; gap: 10px; align-items: flex-start; }
.p-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.sticky-order { display: none; }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 36px 40px; }
  .hero-collage { display: none; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .gallery { position: static; }
}
@media (max-width: 760px) {
  .search-desktop { display: none; }
  .search-mobile-wrap { display: block; }
  .header-inner { height: 62px; gap: 10px; }
  .header-wa span { display: none; }
  .header-wa { padding: 8px 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card-title { font-size: 14.5px; }
  .card-price { font-size: 17px; }
  .card .btn { min-height: 40px; padding: 8px 10px; font-size: 14.5px; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats strong { font-size: 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .section { padding-block: 24px; }
  .product-page .wa-fab { display: none; }
  .sticky-order { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; align-items: center; box-shadow: 0 -6px 20px rgba(15, 23, 42, .08); }
  .sticky-order .sp { font-weight: 800; font-size: 18px; color: var(--navy); white-space: nowrap; }
  .sticky-order .btn { flex: 1; }
  .product-page main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .brand-text small { display: none; }
  .grid { gap: 8px; }
}
