/* ===== PREMIER ONE WHEEL DEALS — Premium Stylesheet ===== */
/* Fonts loaded via <link> in head with display=swap for performance */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-darker: #1e40af;
  --primary-light: #dbeafe;
  --primary-mist: rgba(37, 99, 235, 0.06);
  --primary-glow: rgba(37, 99, 235, 0.18);
  --primary-subtle: rgba(37, 99, 235, 0.03);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --light: #f8fafc;
  --light-2: #f1f5f9;
  --white: #ffffff;
  --glass-bg: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.5);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.04);
  --success: #16a34a;
  --success-light: #f0fdf4;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #f59e0b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.02);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 4px 24px var(--primary-glow);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  padding-top: var(--nav-height);
  overflow-x: hidden;
  background: var(--white);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

::selection { background: var(--primary); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-2); }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 800;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--primary) !important;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-mist);
}

.navbar-toggler {
  border: none;
  padding: 8px;
  border-radius: 8px;
}

.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { width: 1.3em; height: 1.3em; }

/* Mobile nav improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-height: 80vh;
    overflow-y: auto;
  }
  .navbar .nav-link { padding: 0.75rem 1rem !important; }
  .navbar .nav-link::after { display: none; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #2563eb 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../images/hero-board.jpg') center/cover no-repeat,
    linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #2563eb 100%);
  background-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(37,99,235,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-badge {
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd;
}

.hero-title {
  color: var(--white);
}

.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255,255,255,0.7);
}

.hero-section .border-top {
  border-color: rgba(255,255,255,0.1) !important;
}

.hero-section .border-top small { color: rgba(255,255,255,0.5) !important; }
.hero-section .border-top strong { color: var(--white); }

.hero-section .btn-primary {
  background: var(--primary);
  box-shadow: 0 4px 24px rgba(37,99,235,0.4);
}

.hero-section .btn-outline-primary {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.hero-section .btn-outline-primary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(37,99,235,0.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
  transition: var(--transition-slow);
  will-change: transform;
}

.hero-img-wrapper:hover { transform: scale(1.02); }

.hero-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  pointer-events: none;
}

.hero-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
  color: white;
}

.hero-img-caption p { margin: 0; font-weight: 700; font-size: clamp(0.9rem, 1.5vw, 1.1rem); }
.hero-img-caption .price { color: var(--accent); }

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

/* ===== SECTION BACKGROUNDS ===== */
section.bg-light { background: var(--light-2) !important; }

.bg-image-section {
  position: relative;
  overflow: hidden;
}

.bg-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hoverboard-main.jpg') center/cover no-repeat fixed;
  filter: brightness(0.3);
  z-index: 0;
}

.bg-image-section .container { position: relative; z-index: 1; }
.bg-image-section .section-title { color: var(--white); }
.bg-image-section .section-subtitle { color: rgba(255,255,255,0.7); }
.bg-image-section .section-title::after { background: linear-gradient(90deg, #60a5fa, var(--accent-light)); }

.bg-image-section-2::before {
  background: url('../images/hoverboard-1.jpg') center/cover no-repeat fixed;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--dark);
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  margin-top: 0.75rem;
  border-radius: 2px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline-primary {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-success {
  background: #25d366;
  border: none;
  box-shadow: 0 2px 8px rgba(37,211,102,0.2);
}

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

.btn-light {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dark);
}

.btn-light:hover {
  background: var(--light-2);
  transform: translateY(-2px);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: var(--radius);
  transition: var(--transition);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover::before { opacity: 1; }

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

.product-card .card-img-top {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--light-2);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img-top { transform: scale(1.03); will-change: transform; }

.card-img-overlay-desc {
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  width: 100%;
  font-size: 0.82rem;
  line-height: 1.4;
  backdrop-filter: blur(4px);
}

.product-card .card-body { padding: 1.25rem; }
.product-card .card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.product-card .availability {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.75rem;
  border-radius: 50px;
  display: inline-block;
}

.availability.in-stock { background: var(--success-light); color: var(--success); }
.availability.out-of-stock { background: var(--danger-light); color: var(--danger); }

.wishlist-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  border: 1.5px solid var(--border);
  background: transparent;
  transition: var(--transition);
  padding: 0;
  color: var(--text-muted);
  min-width: 40px;
}

.wishlist-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

.wishlist-btn.active {
  border-color: var(--danger);
  color: var(--danger);
}

/* ===== REVIEW CARDS ===== */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stars { color: #eab308; font-size: 1rem; gap: 2px; display: inline-flex; }
.review-card .card-text { font-style: italic; line-height: 1.7; color: var(--text-dark); }

/* ===== STAT CARDS ===== */
.stat-card {
  padding: 2rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid rgba(37,99,235,0.06);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover::before { opacity: 1; }

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

.stat-icon { margin-bottom: 0.75rem; }
.stat-number { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -1px; color: var(--dark); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(160deg, #eff6ff 0%, var(--white) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter-section h2 { font-weight: 800; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--text-light);
  position: relative;
}

.footer a { color: var(--text-light); text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--primary-light); }

.footer h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links li a { font-size: 0.88rem; }
.footer-links li i { width: 20px; color: var(--primary); }

.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: var(--transition);
  color: var(--text-light);
  text-decoration: none;
}

.footer .social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== PAGE HEADERS ===== */
.page-header {
  background: linear-gradient(160deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); position: relative; z-index: 1; }
.page-header p { opacity: 0.85; position: relative; z-index: 1; }

.page-header .breadcrumb { background: transparent; position: relative; z-index: 1; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb a:hover { color: white; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.6); }

/* ===== PRODUCT DETAILS ===== */
.product-gallery .main-image {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--light-2);
  position: relative;
  border: 1px solid var(--border);
}

.thumb-img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-color: var(--light-2);
}

.thumb-img.active,
.thumb-img:hover { opacity: 1; border-color: var(--primary); }

.spec-item {
  padding: 1rem;
  border-radius: 8px;
  background: var(--light-2);
  text-align: center;
  border: 1px solid var(--border-light);
}

.spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* ===== FINANCING ===== */
.financing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: var(--white);
  position: relative;
}

.financing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.financing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f8faff 0%, var(--white) 100%);
  box-shadow: 0 4px 24px rgba(37,99,235,0.1);
}

.financing-card .featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== DECORATIVE SECTIONS ===== */
.section-deco { position: relative; overflow: hidden; }
.section-deco > .container, .section-deco > div { position: relative; z-index: 1; }

.section-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s ease; color: var(--text-muted); }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; }

.scroll-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ===== SEARCH ===== */
.search-bar { position: relative; }

.search-bar input {
  border-radius: 50px;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--border);
  background: var(--light-2);
  transition: var(--transition);
  font-size: 0.85rem;
  width: 200px;
}

.search-bar input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-results.show { display: block; }

.search-result-item {
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--primary-mist); }

/* ===== SORT/FILTER ===== */
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.9rem;
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* ===== BADGES ===== */
.badge-gradient {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: var(--white);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.reveal.visible { opacity: 1; transform: translateY(0); content-visibility: visible; }

/* ===== WHATSAPP FLOATING BUTTON ===== */
#whatsappBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4) !important;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.toast {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ===== OFF CANVAS ===== */
.offcanvas {
  --bs-offcanvas-width: 380px;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: white;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item > div {
  transition: transform 0.5s ease;
}

.gallery-item:hover > div { transform: scale(1.05); }

/* ===== RESPONSIVE — MOBILE FIRST ===== */

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Small phones */
@media (max-width: 360px) {
  :root { --nav-height: 62px; }
  .hero-section { min-height: auto; padding: 60px 0 40px; }
  .hero-title { font-size: 1.6rem; }
  .hero-img-wrapper { min-height: 200px; border-radius: var(--radius) !important; }
  .product-card .card-img-top { height: 140px; }
  .btn { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
  .btn-lg { font-size: 0.85rem; padding: 0.5rem 1.25rem; }
}

/* Phones */
@media (max-width: 575.98px) {
  :root { --nav-height: 64px; }
  body { padding-top: var(--nav-height); }

  .hero-section { min-height: auto; padding: 50px 0 30px; text-align: center; }
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { margin: 0 auto 1.5rem; font-size: 0.95rem; }
  .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-img-wrapper { min-height: 220px; margin-top: 1.5rem; border-radius: var(--radius) !important; }
  .hero-img-wrapper:hover { transform: none; }

  .section-title { font-size: 1.35rem; margin-bottom: 1.5rem; }
  .section-title::after { width: 36px; height: 3px; }
  .section-subtitle { font-size: 0.9rem; }

  .page-header { padding: 2rem 0 !important; }
  .page-header h1 { font-size: 1.5rem; }

  .product-card .card-img-top { height: 180px; }
  .product-card .card-title { font-size: 0.95rem; }
  .product-card .price { font-size: 1.1rem; }
  .product-card .card-body { padding: 1rem; }

  .btn-lg { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
  .newsletter-section { padding: 1.5rem !important; }
  .newsletter-section h2 { font-size: 1.2rem; }
  .newsletter-section .btn-lg { width: 100%; }

  .footer { padding: 2rem 0 !important; }
  .footer h5 { font-size: 0.8rem; }

  .review-card { padding: 1rem !important; }
  .stat-card { padding: 1rem 0.5rem; }
  .stat-number { font-size: 1.3rem; }

  .search-bar { display: block !important; width: 100%; }
  .search-bar input { width: 100% !important; }

  .sort-select { font-size: 0.8rem; padding: 0.4rem 0.75rem; }

  .product-gallery .main-image { height: 260px; }
  .thumb-img { width: 52px; height: 52px; }

  .spec-item { padding: 0.7rem; }
  .spec-item .spec-value { font-size: 0.85rem; }
  .spec-item .spec-label { font-size: 0.65rem; }

  .financing-card .p-4 { padding: 1rem !important; }
  .financing-card h2 { font-size: 1.4rem; }

  .offcanvas { --bs-offcanvas-width: 100% !important; }

  #orderModal .modal-dialog { margin: 0.5rem; }
  #orderModal .modal-body { padding: 1rem; }
  #orderModal .modal-title { font-size: 1.1rem; }

  .scroll-top-btn { bottom: 16px; right: 16px; width: 40px; height: 40px; }
  #whatsappBtn { bottom: 68px !important; right: 16px !important; width: 48px !important; height: 48px !important; }

  .container { padding-left: 16px; padding-right: 16px; }
  .row { --bs-gutter-x: 12px; }
}

/* Tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title { font-size: 2.25rem; }
  .hero-section { padding: 60px 0 40px; }
  .hero-img-wrapper { min-height: 260px; }

  .product-card .card-img-top { height: 200px; }
  .section-title { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.75rem; }
}

/* Small laptops */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title { font-size: 2.5rem; }
  .hero-section { padding: 70px 0 50px; }
  .hero-img-wrapper { min-height: 300px; }

  .product-card .card-img-top { height: 200px; }
}

/* Large screens */
@media (min-width: 992px) {
  .hero-section { min-height: 90vh; }
  .hero-img-wrapper { min-height: 400px; }
}

/* Extra large */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-title { font-size: 4rem; }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-link, .social-icon, .wishlist-btn,
  .scroll-top-btn, #whatsappBtn, .thumb-img {
    min-height: 44px;
    min-width: 44px;
  }
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .product-card:hover .card-img-top { transform: none; }
  .btn:hover { transform: none; }
  .gallery-item:hover > div { transform: none; }
  .gallery-item::after { opacity: 1; }
  .gallery-overlay { opacity: 1; transform: translateY(0); }
  .hero-img-wrapper:hover { transform: none; }
  .hero-img-wrapper { animation: none; }
  .stat-card:hover { transform: none; }
  .review-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .faq-question { padding: 1rem; }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.glow-hover:hover {
  box-shadow: var(--shadow-glow);
}

/* ===== ORDER MODAL ===== */
#orderModal .modal-content,
#whatsappOrderModal .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

/* ===== ANIMATED BUTTONS ===== */
.btn-animated {
  position: relative;
  overflow: hidden;
}

.btn-animated::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-animated:active::before {
  width: 300px;
  height: 300px;
}
