/* ================================================
   الإتقان المنسي — Premium Light Design System
   Brand: Clean White + Deep Navy + Warm Gold Accent
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --white: #FFFFFF;
  --bg-primary: #FAFBFC;
  --bg-secondary: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7F8FA;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --navy: #1B2A4A;
  --navy-light: #2D4470;
  --navy-dark: #0F1D35;
  --accent: #C8A44E;
  --accent-light: #D4B76A;
  --accent-dark: #A88A3A;
  --accent-subtle: rgba(200, 164, 78, 0.08);
  --accent-glow: rgba(200, 164, 78, 0.15);
  --text-primary: #1A1F2E;
  --text-secondary: #5A6577;
  --text-tertiary: #8B95A5;
  --border: #E2E6ED;
  --border-light: #EEF0F4;
  --border-accent: rgba(200, 164, 78, 0.25);
  --green-wa: #25D366;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06), 0 1px 2px rgba(27, 42, 74, 0.04);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08), 0 2px 4px rgba(27, 42, 74, 0.04);
  --shadow-lg: 0 12px 40px rgba(27, 42, 74, 0.1), 0 4px 12px rgba(27, 42, 74, 0.06);
  --shadow-xl: 0 20px 60px rgba(27, 42, 74, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ── Selection ── */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* ── Links ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── Glassmorphism (Light version) ── */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.glass-gold {
  background: rgba(200, 164, 78, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
}

/* ── Animations ── */
@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spinGold {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 164, 78, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(200, 164, 78, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes subtleSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.scale-in {
  opacity: 0;
  animation: scaleIn 0.5s ease-out forwards;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.25);
  background: var(--navy-light);
}

.btn-gold:active {
  transform: translateY(-1px);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--green-wa);
  color: white;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-weight: 600;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar-scrolled {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 0 var(--border-light), var(--shadow-sm) !important;
}

/* ── Hero ── */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    rgba(200, 164, 78, 0.04) 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 42, 74, 0.03) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Filter Chips ── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 25px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Tajawal', sans-serif;
  user-select: none;
}

.filter-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--bg-secondary);
}

.filter-chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.2);
}

.filter-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Product Cards ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #F5F6F8, #ECEEF2, #F8F9FB);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
}

.card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* Badges */
.badge-bestseller {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.5px;
}

.badge-t3 {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-subtle);
  color: var(--accent-dark);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  z-index: 5;
}

/* ── SASO Stars ── */
.stars {
  display: inline-flex;
  gap: 2px;
  direction: ltr;
}

.star {
  font-size: 0.85rem;
}

.star-filled { color: var(--accent); }
.star-empty { color: var(--border); }

/* ── Image Placeholder ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #F5F6F8, #ECEEF2, #F8F9FB);
}

.img-placeholder svg {
  opacity: 0.4;
  color: var(--text-tertiary);
}

.img-placeholder span {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Spec Dashboard ── */
.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.spec-card:hover {
  border-color: var(--border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.spec-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Gallery ── */
.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--bg-secondary);
}

.gallery-thumb:hover {
  border-color: var(--text-tertiary);
}

.gallery-thumb.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.15);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Bottom Wishlist Bar ── */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid var(--border);
}

.bottom-bar.visible {
  transform: translateY(0);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  font-family: 'Tajawal', sans-serif;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #16a34a;
  color: white;
}

.toast-error {
  background: #dc2626;
  color: white;
}

.toast-info {
  background: var(--navy);
  color: white;
}

/* ── Loading Spinner ── */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spinGold 0.75s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 9999;
}

/* ── Counter Badge ── */
.counter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 5px;
  line-height: 1;
}

/* ── Pulse Ring ── */
.pulse-gold {
  animation: pulseGold 2.2s infinite;
}

/* ── model-viewer ── */
model-viewer {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  --poster-color: transparent;
}

/* ── Admin — Form Inputs ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem;
  transition: var(--transition);
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B2A4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

/* ── Admin — Toggle Switch ── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--text-tertiary);
  border-radius: 13px;
  transition: var(--transition);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--navy);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch.active::after {
  right: 27px;
}

/* ── Admin — Table ── */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: var(--bg-secondary);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table th:first-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.admin-table th:last-child {
  border-radius: var(--radius-md) 0 0 0;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  vertical-align: middle;
  color: var(--text-primary);
}

.admin-table tbody tr {
  transition: var(--transition);
}

.admin-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

/* ── Admin — Analytics Card ── */
.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.analytics-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.analytics-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.analytics-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.analytics-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.analytics-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 16px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb .separator {
  color: var(--text-tertiary);
  font-size: 0.7rem;
}

.breadcrumb .current {
  color: var(--navy);
  font-weight: 600;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Responsive Filter Layout ── */
.filter-sidebar {
  display: block;
  width: 260px;
  flex-shrink: 0;
}

.filter-mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  .filter-sidebar {
    display: none !important;
  }
  .filter-mobile-bar {
    display: block !important;
  }
}

/* ── Responsive Adjustments ── */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .spec-card {
    padding: 16px 12px;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  model-viewer {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 60vh;
  }

  .btn-gold, .btn-whatsapp {
    padding: 12px 20px;
    font-size: 0.88rem;
  }
}

/* ── Utility Classes ── */
.text-gold { color: var(--accent-dark) !important; }
.text-dim { color: var(--text-secondary) !important; }
.bg-card { background: var(--bg-card) !important; }
.border-gold { border-color: var(--border-accent) !important; }
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  border: none;
}

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  border-top: none;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Wishlist Item in Bottom Bar ── */
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.wishlist-item-remove {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.wishlist-item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ── Quantity Stepper ── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--navy);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.qty-stepper button:hover {
  background: var(--border);
}

.qty-stepper span {
  width: 32px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.4;
  color: var(--text-tertiary);
}

.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
