﻿:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --surface: #111111;
  --surface-2: #171717;
  --text: #f7f7f7;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, .12);
  --glow: rgba(210, 210, 210, .16);
  --white: #ffffff;
  --black: #050505;
  --green: #34d399;
  --danger: #ef4444;
  --shadow: 0 24px 85px rgba(0, 0, 0, .55), 0 0 70px rgba(255,255,255,.05);
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; }
body.kh-body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  color: var(--text);
  font-family: "Cairo", system-ui, sans-serif;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(255,255,255,.13), transparent 24rem),
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.055), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #080808 52%, #030303 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.kh-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.kh-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5,5,5,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.kh-header-row { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.kh-brand { justify-self: center; filter: drop-shadow(0 0 28px var(--glow)); }
.kh-brand img { width: 78px; height: 78px; object-fit: contain; border-radius: 999px; }
.kh-icon-btn, .kh-cart-btn, .kh-close {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: var(--radius);
  min-width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.kh-icon-btn { justify-self: start; flex-direction: column; gap: 5px; }
.kh-icon-btn span { width: 26px; height: 2px; background: var(--white); border-radius: 99px; }
.kh-cart-btn { justify-self: end; position: relative; gap: 8px; padding: 0 18px; font-weight: 900; }
.kh-cart-btn strong { position: absolute; top: -8px; inset-inline-start: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #04150f; display: grid; place-items: center; font-size: .78rem; }
.kh-icon-btn:hover, .kh-cart-btn:hover, .kh-close:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.1); }
.kh-menu, .kh-cart {
  position: fixed; top: 0; bottom: 0; z-index: 90;
  width: min(380px, calc(100vw - 24px));
  background: #090909; border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px; transform: translateX(110%); transition: transform .2s ease; overflow-y: auto;
}
.kh-menu { right: 0; }
.kh-cart { left: 0; right: auto; transform: translateX(-110%); }
.kh-menu.is-open, .kh-cart.is-open { transform: translateX(0); }
.kh-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .16s ease; }
.kh-backdrop.is-open { opacity: 1; pointer-events: auto; }
.kh-menu-logo { width: 136px; margin: 22px auto; border-radius: 999px; filter: drop-shadow(0 0 30px var(--glow)); }
.kh-menu nav { display: grid; gap: 10px; }
.kh-menu nav a { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.kh-menu nav a:hover { color: var(--text); border-color: rgba(255,255,255,.32); }
.kh-home-hero { padding: 62px 0 26px; text-align: center; }
.kh-home-hero-inner { display: grid; justify-items: center; gap: 12px; }
.kh-hero-logo { width: min(220px, 48vw); border-radius: 999px; filter: drop-shadow(0 0 45px rgba(255,255,255,.13)); }
.kh-kicker { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.055); border-radius: 999px; padding: 8px 14px; font-weight: 900; width: fit-content; }
h1 { font-size: clamp(2.5rem, 8vw, 5.5rem); line-height: 1.06; letter-spacing: 0; }
.kh-home-hero p, .kh-product-info p, .kh-checkout-copy p { color: var(--muted); max-width: 62ch; font-size: 1.06rem; }
.kh-section { padding: 54px 0; border-top: 1px solid var(--line); }
.kh-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.kh-section-head.compact { justify-content: center; text-align: center; display: grid; }
.kh-section-head span, .kh-checkout-copy span { color: var(--muted); font-weight: 900; }
.kh-section-head h2, .kh-checkout-copy h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.1; }
.kh-product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 390px)); justify-content: center; gap: 18px; }
.kh-product-card, .kh-product-info, .kh-checkout-form, .kh-product-media, .kh-map-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: var(--shadow); overflow: hidden;
}
.kh-product-card { grid-column: span 1; }
.kh-product-image { display: block; aspect-ratio: 1 / .72; background: #fff; overflow: hidden; }
.kh-product-image img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-card-body { padding: 20px; }
.kh-product-card-body span { color: var(--muted); font-size: .9rem; font-weight: 900; }
.kh-product-card-body h3 { font-size: 1.5rem; margin-top: 6px; }
.kh-product-card-body p { color: var(--muted); margin-top: 8px; }
.kh-card-bottom, .kh-product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.kh-primary, .kh-secondary {
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); min-height: 52px;
  padding: 0 22px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; background: var(--white); color: var(--black);
  box-shadow: 0 16px 42px rgba(255,255,255,.09);
}
.kh-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.kh-primary:hover { filter: brightness(.92); }
.kh-product-hero { padding: 54px 0; }
.kh-product-grid, .kh-checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; min-width: 0; }
.kh-checkout-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }
.kh-checkout-copy { text-align: center; justify-items: center; }
.kh-product-media { min-height: 540px; display: grid; place-items: center; gap: 16px; padding: 26px; background: #fff; }
.kh-product-media > img { width: min(540px, 94%); filter: drop-shadow(0 22px 35px rgba(0,0,0,.25)); }
.kh-gallery { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.kh-gallery button { border: 2px solid transparent; background: #f5f5f5; border-radius: var(--radius); padding: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.kh-gallery button.is-selected { border-color: #111; }
.kh-gallery img { width: 100%; height: 100%; object-fit: cover; }
.kh-product-info { padding: 28px; }
.kh-product-info h1 { margin: 14px 0 12px; font-size: clamp(2rem, 5vw, 4rem); }
.kh-feature-list { display: grid; gap: 10px; list-style: none; margin: 22px 0; }
.kh-feature-list li { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.09); padding-bottom: 10px; }
.kh-feature-list li:before { content: ""; width: 8px; height: 8px; background: var(--white); border-radius: 999px; display: inline-block; margin-inline-end: 10px; }
.kh-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kh-option { border: 1px solid var(--line); background: rgba(255,255,255,.035); color: var(--text); border-radius: var(--radius); padding: 14px; display: flex; justify-content: space-between; gap: 10px; }
.kh-option.is-selected { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.13); }
.kh-small-label { color: var(--muted); display: block; font-size: .88rem; }
.kh-live-price { display: block; color: var(--text); font-size: 2rem; line-height: 1.1; }
.kh-checkout-band { background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.07), transparent 28rem); }
.kh-checkout-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; width: 100%; max-width: 100%; min-width: 0; }
.kh-field { display: grid; gap: 8px; }
.kh-field-wide { grid-column: 1 / -1; }
.kh-field label { color: var(--text); font-weight: 800; }
.kh-field input, .kh-field textarea { width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); border-radius: var(--radius); padding: 13px 14px; outline: none; }
.kh-field input:focus, .kh-field textarea:focus { border-color: rgba(255,255,255,.6); }
.kh-map-card { background: rgba(255,255,255,.035); width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.kh-map-actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 12px; color: var(--muted); width: 100%; max-width: 100%; }
.kh-map-actions span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kh-map { width: 100%; max-width: 100%; height: min(260px, 36vh); min-height: 220px; background: #222; overflow: hidden; position: relative; }
.kh-map .leaflet-pane,
.kh-map .leaflet-control-container,
.kh-map .leaflet-tile-container { max-width: 100%; }
.kh-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.kh-social-links a, .kh-verify-badge {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.kh-social-links span, .kh-verify-badge span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .82rem;
}
.kh-social-links strong, .kh-verify-badge strong { color: var(--text); font-size: .9rem; }
.kh-reviews-section { background: #060606; }
.kh-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kh-review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  overflow: hidden;
}
.kh-review-card img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; background: #fff; }
.kh-review-card div { padding: 16px; }
.kh-review-card strong { display: block; color: var(--text); font-size: 1.05rem; }
.kh-review-card span { color: #facc15; letter-spacing: 1px; }
.kh-review-card p { color: var(--muted); margin-top: 8px; }
.kh-review-form {
  margin: 18px auto 0;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.kh-review-form h3 { text-align: center; }
.kh-footer { padding: 46px 0; border-top: 1px solid var(--line); background: #030303; }
.kh-footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 24px; align-items: start; }
.kh-footer-logo { width: 96px; border-radius: 999px; margin-bottom: 12px; filter: drop-shadow(0 0 28px var(--glow)); }
.kh-footer p, .kh-footer a { color: var(--muted); display: block; margin-top: 8px; }
.kh-footer h3 { color: var(--text); margin-bottom: 10px; }
.kh-payments { display: flex; flex-wrap: wrap; gap: 8px; }
.kh-payments img { background: #fff; border-radius: 6px; width: 64px; height: 36px; object-fit: contain; padding: 4px 8px; }
.kh-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kh-cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0; }
.kh-cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); background: #fff; }
.kh-cart-item h3 { font-size: 1rem; }
.kh-cart-item p { color: var(--muted); font-size: .88rem; }
.kh-remove { border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.08); color: #fecaca; border-radius: 6px; width: 34px; height: 34px; }
.kh-cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; font-size: 1.2rem; }
.kh-cart .kh-primary { width: 100%; margin-top: 16px; }
.kh-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.kh-toast { position: fixed; bottom: 22px; left: 22px; z-index: 120; background: #111; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .16s ease; }
.kh-toast.is-visible { opacity: 1; transform: translateY(0); }
.success-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; background: var(--bg); }
.success-card { width: min(560px, 100%); text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 42px 24px; }
.success-logo { width: min(180px, 54vw); margin: 0 auto 18px; display: block; border-radius: 999px; }
.success-card h1 { margin: 10px 0; font-size: clamp(2rem, 7vw, 3.5rem); }
.success-card p { color: var(--muted); line-height: 1.9; }
@media (max-width: 860px) {
  .kh-shell { width: min(100% - 24px, 680px); }
  .kh-header-row { min-height: 82px; grid-template-columns: auto 1fr auto; }
  .kh-brand img { width: 64px; height: 64px; }
  .kh-home-hero { padding: 38px 0 18px; }
  .kh-hero-logo { width: min(170px, 48vw); }
  .kh-product-list, .kh-product-grid, .kh-checkout-grid, .kh-footer-grid { grid-template-columns: 1fr; }
  .kh-product-media { min-height: 360px; }
  .kh-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kh-options, .kh-checkout-form, .kh-reviews { grid-template-columns: 1fr; }
  .kh-map { height: 230px; }
  .kh-map-actions { flex-direction: column; align-items: stretch; }
  .kh-primary, .kh-secondary { width: 100%; }
  .kh-card-bottom, .kh-product-bottom { align-items: stretch; flex-direction: column; }
}
@media (max-width: 420px) {
  .kh-shell { width: calc(100% - 18px); }
  .kh-icon-btn, .kh-cart-btn { min-width: 48px; height: 48px; padding-inline: 10px; }
  .kh-cart-btn span { font-size: .82rem; }
  .kh-brand img { width: 58px; height: 58px; }
  .kh-product-card-body, .kh-product-info, .kh-checkout-form { padding: 18px; }
}

