:root {
  --bg: #070910;
  --panel: #0d1220;
  --panel-2: #141b2d;
  --panel-3: #1a233a;
  --text: #f6f8ff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --cyan: #22d3ee;
  --purple: #a855f7;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.08), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.08), transparent 30%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── Top Shop Bar ── */
.top-bar {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(168, 85, 247, 0.12)), #090d18;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}
.top-bar-item i { color: var(--cyan); width: 14px; height: 14px; }
.top-bar-item a:hover { color: var(--cyan); text-decoration: underline; }
.top-bar-tag {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #070910;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
}
.brand-text span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-badge {
  font-size: 10px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  font-weight: 800;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  transition: all 0.2s;
}
.lang-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── Hero / Slider ── */
.hero-store {
  padding: 38px 0 20px;
}
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #11172a, #0b0f19);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  box-shadow: var(--shadow);
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-content h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
}
.hero-feat i { color: var(--cyan); }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: #070910;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.4);
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple), #7e22ce);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
}
.btn-outline {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-preview {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.hero-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #000;
}
.hero-card-details {
  margin-top: 16px;
}
.hero-card-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--cyan);
}

/* ── Filter Bar & Search ── */
.catalog-section {
  padding: 30px 0 60px;
}
.filter-bar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
}
.search-box {
  position: relative;
  min-width: 240px;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
}
.search-box input:focus {
  outline: none;
  border-color: var(--cyan);
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 16px; height: 16px;
}

/* ── Product Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #05070d;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}
.badge-hot { background: #ef4444; color: #fff; box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4); }
.badge-new { background: #10b981; color: #fff; box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4); }
.badge-offer { background: #f59e0b; color: #000; box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4); }
.badge-limited { background: #8b5cf6; color: #fff; box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4); }
.badge-arriving { background: #3b82f6; color: #fff; }

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.product-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.product-price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}
.product-price-val span {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 800;
  margin-left: 3px;
}
.btn-buy {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), #0284c7);
  color: #070910;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease;
}
.btn-buy:hover { transform: scale(1.04); }

/* ── Order Modal ── */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.order-modal-overlay.open {
  display: grid;
}
.order-modal-box {
  width: min(640px, 100%);
  background: #0f1524;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.order-modal-head {
  padding: 20px 24px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.order-modal-head h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.order-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.order-modal-body {
  padding: 24px;
}
.order-product-summary {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 20px;
  align-items: center;
}
.order-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
}
.order-product-info h4 { font-size: 15px; margin-bottom: 4px; }
.order-product-info .price { color: var(--cyan); font-weight: 900; font-size: 16px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: #090d16;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

/* Radio delivery choices */
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 16px;
}
.delivery-option-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-option-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
}
.delivery-option-card.selected {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}
.delivery-option-card input { display: none; }
.delivery-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  display: grid;
  place-items: center;
}
.delivery-option-text strong { display: block; font-size: 13px; }
.delivery-option-text span { font-size: 11px; color: var(--muted); }

/* Calculation Breakdown */
.calc-breakdown {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.calc-row.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.calc-row.total-row .total-price {
  color: var(--cyan);
  font-size: 20px;
}

/* Shop Info Section */
.shop-info-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  background: #090d18;
}
.shop-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .shop-info-grid { grid-template-columns: 1fr; }
}
.shop-info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.shop-info-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--cyan);
}
.shop-info-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* RTL Support */
[dir="rtl"] {
  direction: rtl;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}
[dir="rtl"] .search-box input {
  padding: 10px 38px 10px 14px;
}
[dir="rtl"] .search-box i {
  left: auto;
  right: 12px;
}
[dir="rtl"] .product-badge-tag {
  left: auto;
  right: 10px;
}
[dir="rtl"] .brand-badge {
  margin-left: 0;
  margin-right: 6px;
}
