:root {
  --navy-950: #061022;
  --navy-900: #08152b;
  --navy-800: #0e2347;
  --navy-700: #163366;
  --gold-300: #fae396;
  --gold-400: #f2c94c;
  --gold-500: #d4af37;
  --gold-600: #b28718;
  --surface: #f4f6fa;
  --white: #ffffff;
  --text: #101d33;
  --muted: #5a6a82;
  --border: #dde4ef;
  --wa: #1fa855;
  --wa-dark: #168642;
  --danger: #c62828;
  --success: #15803d;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(8, 21, 43, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Geeza Pro", "Arabic Typesetting", Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400) 48%, var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header with safe mobile top padding so logo never clips */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 21, 43, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-emblem {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-emblem img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 1.5px solid var(--gold-400);
}
.lantern-svg { width: 48px; height: 48px; }
.brand-text { min-width: 0; }
.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--gold-400);
  line-height: 1.25;
  white-space: nowrap;
}
.brand-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.fanous-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.brand-tagline-short {
  font-size: 0.78rem;
  color: #cdd8ec;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.icon-btn:active { transform: scale(0.97); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-call {
  background: rgba(242, 201, 76, 0.14);
  color: var(--gold-300);
  border: 1px solid rgba(242, 201, 76, 0.45);
}
.btn-call:hover { background: rgba(242, 201, 76, 0.24); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 18% 15%, rgba(242, 201, 76, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(28, 74, 150, 0.45), transparent 50%),
    linear-gradient(155deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  color: #fff;
  padding: 36px 0 42px;
  border-bottom: 3px solid var(--gold-500);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(242, 201, 76, 0.12);
  border: 1px solid rgba(242, 201, 76, 0.35);
  color: var(--gold-300);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 2.15rem;
  line-height: 1.25;
}
.hero-subtitle {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  font-weight: 600;
  color: #e6eefc;
}
.hero-desc {
  margin: 0 0 22px;
  color: #c2d1eb;
  font-size: 0.98rem;
  max-width: 580px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.policy-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(14, 35, 71, 0.78);
  border: 1.5px solid rgba(242, 201, 76, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.policy-card h3 {
  margin: 0 0 3px;
  font-size: 1rem;
  color: var(--gold-300);
}
.policy-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #dbe6fa;
}
.policy-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: rgba(242, 201, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.excluded-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #b71c1c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
}
.btn-outline-gold:hover { background: rgba(242, 201, 76, 0.14); }
.btn-outline-navy {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-800);
}
.btn-wa-solid {
  background: var(--wa);
  color: #fff;
}
.btn-wa-solid:hover { background: var(--wa-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 0.85rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }

/* Catalog */
.catalog-section { padding: 34px 0 44px; }
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 12px;
  margin-bottom: 16px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  right: 14px;
  font-size: 1rem;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
}
.search-box input:focus, select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.zone-selector-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
}
.zone-selector-inline label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-800);
  white-space: nowrap;
}
.zone-selector-inline select {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 0.88rem;
  min-width: 0;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-pill.active {
  background: var(--navy-900);
  color: var(--gold-300);
  border-color: var(--gold-500);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(8, 21, 43, 0.13);
}
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #0b1b36, #163366);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-art {
  text-align: center;
  color: var(--gold-300);
  padding: 16px;
}
.placeholder-art .big-emoji { font-size: 3rem; display: block; margin-bottom: 6px; }
.placeholder-art small { color: #c7d6f0; font-size: 0.78rem; }

.card-badges-top {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-new { background: var(--navy-900); color: var(--gold-300); border: 1px solid var(--gold-500); }
.badge-refurb { background: #fef3c7; color: #92400e; }
.badge-part { background: #e2e8f0; color: #334155; }
.badge-free { background: #dcfce7; color: #166534; }
.badge-paid { background: #fee2e2; color: #991b1b; }
.badge-out { background: #334155; color: #fff; }

.product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.product-title {
  margin: 4px 0 6px;
  font-size: 1.03rem;
  color: var(--navy-900);
  cursor: pointer;
}
.product-excerpt {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
.price-now {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy-900);
}
.price-old {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 6px;
}
.stock-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
}
.stock-text.out { color: var(--danger); }

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.loading-box, .empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
}

/* Maintenance Section */
.maintenance-section {
  background: linear-gradient(180deg, #eef2f9, #e5ecf7);
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}
.section-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header h2 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.65rem;
}
.section-header p { margin: 0; color: var(--muted); }

.maintenance-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 880px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-full { grid-column: 1 / -1; }
.form-group label, .form-full label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
}
.form-group input, .form-group select, .form-full input, .form-full textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.status-banner {
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 700;
}
.status-free { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.status-warn { background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; }
.status-info { background: #e0ecff; color: #1e3a8a; border: 1px solid #93c5fd; }
.status-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Used Ovens CTA */
.used-cta-section { padding: 36px 0; }
.used-cta-box {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border: 2px solid var(--gold-500);
  border-radius: 18px;
  padding: 26px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.used-cta-box h2 { margin: 8px 0 6px; color: var(--gold-300); font-size: 1.45rem; }
.used-cta-box p { margin: 0; color: #d3dff4; max-width: 640px; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding-top: 38px;
  border-top: 3px solid var(--gold-500);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-about { font-size: 0.9rem; margin: 0; color: #b6c5de; }
.site-footer h4 { margin: 0 0 12px; color: var(--gold-300); font-size: 1rem; }
.footer-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.zone-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 201, 76, 0.25);
  font-size: 0.8rem;
  color: #e2e8f0;
}
.footer-contact-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer-btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.84rem;
  color: #94a3b8;
}
.footer-bottom-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 16, 34, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}
.modal-backdrop.hidden { display: none; }
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.modal-close {
  position: sticky;
  top: 0;
  float: left;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 5;
}
.pm-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  clear: both;
}
.pm-main-img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--navy-900);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-main-img-wrap img { width: 100%; height: 100%; object-fit: contain; background: #0c1d3b; }
.pm-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.pm-thumb-btn {
  width: 64px;
  height: 52px;
  flex: 0 0 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #0c1d3b;
}
.pm-thumb-btn.active { border-color: var(--gold-500); }
.pm-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.pm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pm-info h2 { margin: 0 0 8px; font-size: 1.35rem; color: var(--navy-900); }
.pm-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pm-price { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.pm-old-price { font-size: 1rem; color: #94a3b8; text-decoration: line-through; }
.pm-desc { margin: 0 0 12px; color: var(--muted); font-size: 0.93rem; }
.pm-specs-wrap {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pm-specs-wrap h4 { margin: 0 0 6px; font-size: 0.92rem; color: var(--navy-900); }
.pm-specs-list { margin: 0; padding-right: 18px; font-size: 0.88rem; color: #334155; }
.pm-specs-list li { margin-bottom: 4px; }

.pm-delivery-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.pm-delivery-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pm-delivery-head label { font-size: 0.85rem; font-weight: 700; }
.pm-delivery-head select {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.pm-delivery-status { font-size: 0.88rem; font-weight: 700; }
.pm-action-buttons { display: flex; flex-direction: column; gap: 8px; }
.pm-sub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.direct-order-form {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid var(--gold-500);
}
.direct-order-form.hidden { display: none; }
.direct-order-form h4 { margin: 0 0 10px; color: var(--navy-900); }
.form-grid-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.direct-order-form label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 3px; }
.direct-order-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.order-summary-line {
  margin: 10px 0;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
}

.floating-wa {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(31, 168, 85, 0.45);
}
.floating-wa:hover { background: var(--wa-dark); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .pm-layout { grid-template-columns: 1fr; }
  .used-cta-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .brand-title { font-size: 1rem; }
  .brand-tagline-short { display: none; }
  .hero h1 { font-size: 1.65rem; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-compact, .pm-sub-actions { grid-template-columns: 1fr; }
  .modal-dialog { padding: 16px; }
}
