﻿/* =========================================================
   CAMERA ZONE â€” Dark Green + White Design System
   Deep Forest Green Â· Crisp White Â· Arabic RTL
   ========================================================= */

:root {
  --primary: #0A3D2E;
  --primary-dark: #062820;
  --primary-light: #145C45;
  --primary-mid: #0D4A38;
  --primary-soft: rgba(10, 61, 46, 0.12);
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --gold-dark: #A8872E;
  --gold-glow: rgba(201, 168, 76, 0.4);
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0A3D2E;
  --text-muted: #4A6B5E;
  --border: #D5E5DE;
  --danger: #B3261E;
  --success: #0B6B42;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow: 0 4px 22px rgba(10, 61, 46, 0.12);
  --shadow-md: 0 10px 32px rgba(10, 61, 46, 0.18);
  --shadow-lg: 0 18px 52px rgba(10, 61, 46, 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.35s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
  overflow-x: hidden;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageIn 0.5s var(--ease-out) forwards;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--primary); }
.brand-name, .logo-text {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* ---------- Buttons + Ripple ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(10, 61, 46, 0.35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #E2C97A 0%, #C9A84C 100%); color: var(--primary-dark); box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35); }
.btn-gold:hover { background: linear-gradient(180deg, #EBD89A 0%, #D4B456 100%); box-shadow: 0 8px 24px var(--gold-glow); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--gold); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border-radius: 50%;
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--primary-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 28px rgba(6, 40, 32, 0.35);
  transition: box-shadow 0.3s, background 0.3s;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}
.site-header.scrolled {
  box-shadow: 0 10px 36px rgba(6, 40, 32, 0.45);
  background: var(--primary-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.logo img { height: 36px; width: auto; transition: transform 0.3s var(--ease); }
.logo:hover img { transform: scale(1.04); }
.logo-text { font-size: 1.05rem; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }

.nav-main {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-dark) 40%, var(--primary));
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0.25rem;
  z-index: 999;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}
.nav-main.open { display: flex; transform: translateX(0); }
.nav-main a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s, color 0.25s, transform 0.25s;
  opacity: 0;
  transform: translateX(20px);
}
.nav-main.open a {
  animation: navItemIn 0.4s var(--ease-out) forwards;
}
.nav-main.open a:nth-child(1) { animation-delay: 0.05s; }
.nav-main.open a:nth-child(2) { animation-delay: 0.1s; }
.nav-main.open a:nth-child(3) { animation-delay: 0.15s; }
.nav-main.open a:nth-child(4) { animation-delay: 0.2s; }
.nav-main.open a:nth-child(5) { animation-delay: 0.25s; }
.nav-main.open a:nth-child(6) { animation-delay: 0.3s; }
.nav-main.open a:nth-child(7) { animation-delay: 0.35s; }
@keyframes navItemIn {
  to { opacity: 1; transform: translateX(0); }
}
.nav-main a:hover, .nav-main a.active {
  background: rgba(230, 216, 168, 0.12);
  color: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.header-actions a, .header-actions button {
  color: var(--gold);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}
.header-actions a:hover, .header-actions button:hover {
  background: rgba(230, 216, 168, 0.15);
  transform: translateY(-1px);
}
.badge-count {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}
.badge-count.pop { animation: badgePop 0.45s var(--ease); }
@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.search-bar { display: none; }
.search-bar input {
  width: 100%;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  border-radius: 50px;
  border: 1.5px solid transparent;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.search-bar input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search-bar input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.search-bar button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}
.search-bar button:hover { transform: translateY(-50%) scale(1.08); }
.search-bar { position: relative; }

.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  position: relative;
  transition: background 0.2s;
}
.mobile-toggle .bar::before,
.mobile-toggle .bar::after {
  content: '';
  position: absolute;
  right: 0;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s;
}
.mobile-toggle .bar::before { top: -7px; }
.mobile-toggle .bar::after { top: 7px; }
.mobile-toggle.open .bar { background: transparent; }
.mobile-toggle.open .bar::before { top: 0; transform: rotate(45deg); }
.mobile-toggle.open .bar::after { top: 0; transform: rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.show { display: block; opacity: 1; }

/* =========================================================
   HERO â€” Cinematic Security Stage
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(201,168,76,.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(20,120,90,.35), transparent 50%),
    linear-gradient(155deg, #031914 0%, #062820 38%, #0A3D2E 72%, #08352A 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 120deg at 70% 45%, transparent 0deg, rgba(201,168,76,.07) 40deg, transparent 90deg, rgba(255,255,255,.03) 160deg, transparent 220deg);
  animation: heroAura 14s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes heroAura { to { transform: rotate(360deg); } }

.hero-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(226,201,122,.12), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(34,197,94,.1), transparent 30%);
  filter: blur(8px);
  animation: auroraShift 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}
@keyframes auroraShift {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 45%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 45%, #000 15%, transparent 72%);
  z-index: 1;
  animation: gridPulse 5s ease-in-out infinite;
  pointer-events: none;
}
.hero-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.09), transparent);
  z-index: 2;
  pointer-events: none;
  animation: heroScan 4.5s linear infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}
@keyframes heroScan {
  0% { top: -140px; }
  100% { top: 100%; }
}

.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px rgba(201,168,76,.8);
  opacity: .35;
  animation: particleFloat 9s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { top: 18%; right: 12%; }
.hero-particles span:nth-child(2) { top: 42%; right: 28%; width: 3px; height: 3px; animation-delay: 1.2s; }
.hero-particles span:nth-child(3) { top: 68%; right: 18%; animation-delay: 2.1s; }
.hero-particles span:nth-child(4) { top: 25%; left: 18%; animation-delay: .6s; }
.hero-particles span:nth-child(5) { top: 55%; left: 10%; width: 5px; height: 5px; animation-delay: 1.8s; }
.hero-particles span:nth-child(6) { top: 78%; left: 30%; animation-delay: 3s; }
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: .25; }
  50% { transform: translateY(-28px) scale(1.4); opacity: .7; }
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
  width: 100%;
}
.hero-content { position: relative; z-index: 3; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 1.35rem;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.7s var(--ease-out) both;
  box-shadow: 0 0 24px rgba(201,168,76,.12);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 20px rgba(34,197,94,.5);
  animation: ledBlink 1.2s ease-in-out infinite;
}
@keyframes ledBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.85); }
}
.hero-brand {
  position: relative;
  font-size: clamp(2.6rem, 11vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  background: linear-gradient(105deg, #fff 10%, #E2C97A 45%, #fff 55%, #C9A84C 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 36px rgba(201, 168, 76, 0.4));
  animation: brandIn 1s var(--ease-out) both, brandShine 5s ease-in-out 1s infinite;
}
@keyframes brandIn {
  from { opacity: 0; transform: translateY(32px) scale(0.94); letter-spacing: 0.22em; filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.08em; filter: drop-shadow(0 10px 36px rgba(201, 168, 76, 0.4)); }
}
@keyframes brandShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-title {
  font-size: clamp(1.2rem, 3.8vw, 1.85rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.95rem;
  max-width: 540px;
  margin-inline: auto;
  animation: fadeUp 0.8s 0.15s var(--ease-out) both;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero-desc {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.02rem;
  margin-bottom: 2.1rem;
  max-width: 460px;
  margin-inline: auto;
  line-height: 1.85;
  animation: fadeUp 0.8s 0.25s var(--ease-out) both;
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.35s var(--ease-out) both;
}
.hero-actions .btn {
  min-width: 158px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, border-color .35s;
}
.hero-actions .btn-gold { box-shadow: 0 8px 28px rgba(201,168,76,.35); }
.hero-actions .btn:hover { transform: translateY(-5px) scale(1.03); }
.hero-actions .btn-outline {
  border-color: rgba(201, 168, 76, 0.75);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}
.hero-actions .btn-outline:hover {
  background: rgba(201, 168, 76, 0.18);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 8px 28px rgba(201,168,76,.2);
}

.cctv-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  animation: fadeUp 1s 0.15s var(--ease-out) both;
  perspective: 900px;
}
.cctv-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.22);
  pointer-events: none;
}
.cctv-orbit-a {
  width: min(88vw, 360px); height: min(88vw, 360px);
  animation: ringSpin 16s linear infinite;
  box-shadow: inset 0 0 30px rgba(201,168,76,.05);
}
.cctv-orbit-a::before,
.cctv-orbit-b::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold), 0 0 28px rgba(201,168,76,.6);
}
.cctv-orbit-b {
  width: min(98vw, 430px); height: min(98vw, 430px);
  border-style: dashed;
  border-color: rgba(201,168,76,.14);
  animation: ringSpin 28s linear infinite reverse;
}
.cctv-orbit-c {
  width: min(78vw, 300px); height: min(78vw, 300px);
  border-color: rgba(255,255,255,.08);
  animation: ringSpin 10s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.cctv-radar {
  position: absolute;
  width: min(90vw, 380px);
  height: min(90vw, 380px);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(201,168,76,.22) 40deg, transparent 80deg);
  mask-image: radial-gradient(circle, transparent 42%, #000 43%, #000 70%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle, transparent 42%, #000 43%, #000 70%, transparent 71%);
  animation: ringSpin 3.8s linear infinite;
  pointer-events: none;
  opacity: .85;
}
.cctv-glow {
  position: absolute;
  width: min(85vw, 360px);
  height: min(85vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.35) 0%, rgba(201,168,76,.08) 38%, transparent 68%);
  animation: glowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
  filter: blur(2px);
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}

.cctv-core {
  position: relative;
  z-index: 3;
  width: min(78vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform .12s ease-out;
}
.cctv-photo {
  position: relative;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,168,76,.45);
  box-shadow:
    0 0 0 10px rgba(6,40,32,.45),
    0 0 40px rgba(201,168,76,.25),
    0 25px 60px rgba(0,0,0,.55),
    inset 0 0 30px rgba(0,0,0,.35);
  background: radial-gradient(circle at 40% 30%, #0d4a38, #031914 70%);
  animation: cctvFloat 5s ease-in-out infinite;
}
@keyframes cctvFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cctv-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 35%, transparent 65%, rgba(201,168,76,.12));
  pointer-events: none;
  z-index: 2;
}
.cctv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  user-select: none;
  pointer-events: none;
  animation: camBreath 6s ease-in-out infinite;
}
@keyframes camBreath {
  0%, 100% { transform: scale(1.05); }
  50% { transform: scale(1.1); }
}

.cctv-beam {
  position: absolute;
  left: 8%;
  top: 42%;
  width: 55%;
  height: 3px;
  background: linear-gradient(90deg, rgba(201,168,76,.9), transparent);
  filter: blur(1px);
  transform-origin: right center;
  animation: beamSweep 4.5s ease-in-out infinite;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(201,168,76,.55);
  opacity: .8;
}
@keyframes beamSweep {
  0%, 100% { transform: rotate(-28deg); opacity: .35; }
  50% { transform: rotate(24deg); opacity: .95; }
}

.cctv-hud {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}
.cctv-hud i {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(201,168,76,.75);
  border-style: solid;
  border-width: 0;
}
.cctv-hud i:nth-child(1) { top: 8%; right: 14%; border-top-width: 2px; border-right-width: 2px; }
.cctv-hud i:nth-child(2) { top: 8%; left: 14%; border-top-width: 2px; border-left-width: 2px; }
.cctv-hud i:nth-child(3) { bottom: 8%; right: 14%; border-bottom-width: 2px; border-right-width: 2px; }
.cctv-hud i:nth-child(4) { bottom: 8%; left: 14%; border-bottom-width: 2px; border-left-width: 2px; }

.cctv-status {
  position: absolute;
  top: 12%;
  left: 16%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: #ff6b6b;
  background: rgba(0,0,0,.45);
  padding: .28rem .55rem;
  border-radius: 6px;
  border: 1px solid rgba(255,80,80,.35);
  backdrop-filter: blur(8px);
  animation: recPulse 1.4s ease-in-out infinite;
}
.cctv-status span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 10px #ff3b3b;
}
@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(3,25,20,.88) 0%, rgba(6,40,32,.72) 45%, rgba(6,40,32,.55) 100%);
}

/* ---------- Sections / Animate ---------- */
.section { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin-bottom: 0.4rem;
  display: inline-block;
  position: relative;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0.65rem auto 0;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}
.section-header.is-visible h2::after,
[data-animate].is-visible .section-header h2::after { transform: scaleX(1); }
.section-header p { color: var(--text-muted); max-width: 480px; margin: 0.65rem auto 0; font-size: 0.95rem; }

[data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
[data-animate="fade"] { transform: none; }
[data-animate="left"] { transform: translateX(40px); }
[data-animate="right"] { transform: translateX(-40px); }
[data-animate="left"].is-visible,
[data-animate="right"].is-visible { transform: translateX(0); }

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  position: relative;
  display: flex;
  flex-direction: column;
  will-change: transform;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.product-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  border-color: rgba(201, 168, 76, 0.45);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 0.4s;
}
.product-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Product Grid / Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F3F8F5;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.12); }
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  z-index: 2;
  animation: fadeUp 0.4s both;
}
.product-badge.out { background: #7f8c8d; }
.product-actions-overlay {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: all 0.35s var(--ease);
  z-index: 2;
}
.product-card:hover .product-actions-overlay,
.product-card:focus-within .product-actions-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.product-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.55rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.product-price { display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.price-current { font-size: 1rem; font-weight: 800; color: var(--primary); }
.price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.category-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card-body { padding: 0.85rem; }
.category-card h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.category-card span { font-size: 0.75rem; color: var(--text-muted); }

/* ---------- Why / Brands / Contact ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.why-item {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.35s var(--ease);
  border-top: 3px solid var(--gold);
}
.why-item:hover { transform: translateY(-4px); }
.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  background: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.35rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  border: 1px solid rgba(201, 168, 76, 0.4);
}
.why-item:hover .why-icon {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 8px 22px rgba(2, 22, 24, 0.35);
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.why-item p { color: var(--text-muted); font-size: 0.88rem; }

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.brand-logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.65;
  filter: grayscale(40%);
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}
.brand-logo:hover { opacity: 1; filter: none; transform: scale(1.05); }

.contact-banner {
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.28);
  box-shadow: var(--shadow-lg);
}
.contact-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  animation: floatBlob 8s ease-in-out infinite;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}
.contact-banner h2 { color: var(--gold); margin-bottom: 0.65rem; position: relative; }
.contact-banner p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1.25rem; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.22);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text { font-size: 1.35rem; margin-bottom: 0.65rem; display: block; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 0.75rem; }
.footer-col h4 { color: var(--gold); margin-bottom: 0.85rem; font-size: 0.95rem; }
.footer-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s, padding-right 0.25s;
}
.footer-col a:hover { color: var(--gold); padding-right: 6px; }
.social-links { display: flex; gap: 0.65rem; margin-top: 0.85rem; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(230, 216, 168, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  padding: 1.15rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  left: 16px;
  z-index: 990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease);
  animation: pulseWa 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7); }
}

/* ---------- Alerts / Forms ---------- */
.alert {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  animation: fadeUp 0.35s var(--ease);
}
.alert-success { background: #e8f8f0; color: var(--success); border: 1px solid #b8e6cc; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }
.alert-info { background: #e8f4f5; color: var(--primary); border: 1px solid #b8dce0; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.88rem;
}
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  min-height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  color: var(--text);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }

/* ---------- Cart / Checkout ---------- */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}
.cart-table th {
  background: var(--primary-dark);
  color: var(--gold-light);
  padding: 0.75rem 0.6rem;
  text-align: right;
  font-weight: 600;
  font-size: 0.8rem;
}
.cart-table td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.qty-input {
  width: 64px;
  text-align: center;
  padding: 0.45rem;
  min-height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
}
.cart-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}
.cart-summary h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--gold);
  font-size: 1.1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.92rem;
  gap: 0.75rem;
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.checkout-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.checkout-form h2 { margin-bottom: 1.25rem; font-size: 1.15rem; }

/* Sticky checkout CTA on mobile */
.sticky-checkout-bar {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 980;
  background: var(--surface);
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom));
  box-shadow: 0 -4px 24px rgba(15, 78, 82, 0.12);
  gap: 0.75rem;
  align-items: center;
}
.sticky-checkout-bar.show { display: flex; }
.sticky-checkout-bar .total-mini { flex: 1; font-weight: 800; color: var(--primary); }

/* ---------- Product Detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #E8F2ED;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 0.55rem; margin-top: 0.85rem; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.25s;
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover { border-color: var(--primary); opacity: 1; }
.product-info h1 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: 0.65rem; }
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.product-meta span strong { color: var(--text); }
.stock-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.stock-in { background: #e8f8f0; color: var(--success); }
.stock-out { background: #fdecea; color: var(--danger); }
.product-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.product-tabs { margin-top: 2rem; }
.tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 0.75rem 1.15rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
  min-height: 48px;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--gold); }
.tab-content { display: none; animation: fadeUp 0.35s var(--ease); }
.tab-content.active { display: block; }

/* ---------- Empty / Status / Shop ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-state h3 { margin-bottom: 0.4rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.25rem; }

.status-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-preparing { background: #e2d5f1; color: #5a2d82; }
.status-shipped { background: #d1ecf1; color: #0c5460; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.shop-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.filters-sidebar {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.filters-sidebar h3 { margin-bottom: 1rem; font-size: 1.05rem; }
.filter-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; }
.filter-group h4 { font-size: 0.85rem; margin-bottom: 0.55rem; color: var(--text-muted); }
.filters-toggle {
  display: flex;
  width: 100%;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.filters-body { display: none; }
.filters-body.open { display: block; animation: fadeUp 0.3s; }

.page-hero {
  background: var(--primary-dark);
  padding: 1.75rem 0;
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
}
.page-hero h1 { color: var(--gold); font-size: clamp(1.35rem, 4vw, 1.85rem); }
.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.8); }
.breadcrumb a:hover { color: var(--gold); }

/* Zoom Modal */
.zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
}
.zoom-modal.active { display: flex; opacity: 1; }
.zoom-modal img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  animation: fadeUp 0.35s var(--ease);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  min-width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.pagination a:hover { transform: translateY(-2px); }
.pagination a:hover, .pagination .current {
  background: var(--primary);
  color: var(--gold);
}

.success-box {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem 1.35rem;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #e8f8f0;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  animation: badgePop 0.6s var(--ease);
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Toast */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 12px;
  right: 12px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--primary-dark);
  color: var(--gold-light);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-out);
  font-weight: 600;
  font-size: 0.88rem;
  pointer-events: auto;
  max-width: 360px;
  border: 1px solid rgba(201, 168, 76, 0.35);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading spinner */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.4s, visibility 0.4s;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(201, 168, 76, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.page-loader span { color: var(--gold-light); font-weight: 800; letter-spacing: 0.08em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Counters */
.counter { font-variant-numeric: tabular-nums; }

/* Table scroll wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   BREAKPOINTS â€” Mobile First
   ========================================================= */

/* 375+ */
@media (min-width: 375px) {
  .container { padding: 0 1.15rem; }
  .product-name { font-size: 0.92rem; }
  .price-current { font-size: 1.05rem; }
}

/* 480+ */
@media (min-width: 480px) {
  .cctv-core { width: min(78vw, 380px); }
  .cctv-glow { width: min(90vw, 400px); height: min(90vw, 400px); }
  .newsletter-form { flex-direction: row; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* 768+ tablet */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    text-align: right;
  }
  .hero-content { text-align: right; }
  .hero-title, .hero-desc { margin-inline: 0; }
  .hero-actions { justify-content: flex-start; }
  .cctv-core { width: min(100%, 420px); }
  .cctv-glow { width: 440px; height: 440px; }
  .cctv-orbit-a { width: 440px; height: 440px; }
  .cctv-orbit-b { width: 510px; height: 510px; }
  .cctv-orbit-c { width: 360px; height: 360px; }
  .cctv-radar { width: 460px; height: 460px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1.4fr 1fr; }
  .cart-summary { position: sticky; top: calc(var(--header-h) + 1rem); margin-top: 0; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .shop-layout { grid-template-columns: 240px 1fr; gap: 1.75rem; }
  .filters-toggle { display: none; }
  .filters-body { display: block !important; }
  .filters-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    height: fit-content;
  }
  .sticky-checkout-bar { display: none !important; }
  .product-card-body { padding: 1.1rem; }
  .toast-container { right: auto; left: 20px; max-width: 340px; }
  .cart-table { font-size: 0.95rem; }
  .cart-table th, .cart-table td { padding: 1rem; }
}

/* 1024+ desktop */
@media (min-width: 1024px) {
  .search-bar {
    display: block;
    flex: 1;
    max-width: 340px;
  }
  .mobile-toggle { display: none; }
  .nav-overlay { display: none !important; }
  .nav-main {
    display: flex !important;
    position: static;
    inset: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    gap: 1.25rem;
    transform: none;
    overflow: visible;
  }
  .nav-main a {
    opacity: 1;
    transform: none;
    animation: none !important;
    font-size: 0.92rem;
    padding: 0.25rem 0;
    border-radius: 0;
    position: relative;
  }
  .nav-main a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
  }
  .nav-main a:hover::after,
  .nav-main a.active::after { transform: scaleX(1); }
  .nav-main a:hover { background: transparent; }
  .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
  .hero { padding: 4rem 0; }
  .cctv-core { width: min(100%, 480px); }
  .cctv-glow { width: 500px; height: 500px; }
  .cctv-orbit-a { width: 500px; height: 500px; }
  .cctv-orbit-b { width: 580px; height: 580px; }
  .cctv-orbit-c { width: 400px; height: 400px; }
  .cctv-radar { width: 520px; height: 520px; }
  .logo-text { font-size: 1.3rem; }
  .logo img { height: 44px; }
  .section { padding: 4.5rem 0; }
  .shop-layout { grid-template-columns: 260px 1fr; }
}

/* 1200+ */
@media (min-width: 1200px) {
  .hero-brand { font-size: 4.75rem; }
  .cctv-core { width: min(100%, 520px); }
}

.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: block; }
}

@media (max-width: 479px) {
  .cart-table .hide-xs { display: none; }
  .product-actions .btn-lg { width: 100%; }
  .product-actions { flex-direction: column; }
  .product-actions > div { width: 100%; justify-content: space-between; display: flex; align-items: center; }
}

