﻿/* ============================
   GADGON â€“ Premium Gadget Store
   Mobile-First CSS Design System
   ============================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --bg-primary: #090912;
  --bg-secondary: #0f0f1a;
  --bg-card: #13131f;
  --bg-card-hover: #1a1a2e;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  --accent-primary: #9b59e8;
  --accent-secondary: #c084fc;
  --accent-pink: #ff6b9d;
  --accent-green: #00e5a0;
  --whatsapp: #9b59e8;
  --whatsapp-dark: #7c3aed;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(155, 89, 232, 0.4);

  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b9d 0%, #ff9f43 100%);
  --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #090912 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --header-height: 60px;
  --bottom-nav-h: 70px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --shadow-glow: 0 0 30px rgba(155, 89, 232, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-wa: 0 8px 30px rgba(155, 89, 232, 0.4);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* === UTILITY CLASSES === */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   SPLASH SCREEN
   ============================ */
.splash {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 9999;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.splash.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.splash-logo-img {
  width: 220px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(155, 89, 232, 0.6));
}

.splash-tagline {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.splash-loader {
  width: 120px;
  height: 3px;
  background: var(--bg-glass-strong);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  animation: loadBar 1.8s ease-in-out forwards;
}

@keyframes loadBar {
  0% {
    width: 0%;
  }

  60% {
    width: 80%;
  }

  100% {
    width: 100%;
  }
}

/* ============================
   MAIN APP
   ============================ */
.app {
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}

/* ============================
   HEADER
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-height);
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 140px;
  height: auto;
  max-width: 40vw;
  filter: drop-shadow(0 0 10px rgba(155, 89, 232, 0.4));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.icon-btn:hover,
.icon-btn:active {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border-color: var(--border-glow);
}

.whatsapp-header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(155, 89, 232, 0.3);
}

.whatsapp-header-btn:hover,
.whatsapp-header-btn:active {
  background: var(--whatsapp-dark);
  transform: scale(0.97);
}

/* SEARCH BAR */
.search-bar {
  padding: 0 16px 12px;
  display: none;
}

.search-bar.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  transition: border-color var(--transition);
}

.search-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(155, 89, 232, 0.15);
}

.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}

#search-input::placeholder {
  color: var(--text-muted);
}

.clear-search {
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px;
  transition: color var(--transition);
}

.clear-search:hover {
  color: var(--text-primary);
}

/* CATEGORIES NAV */
.categories-nav {
  padding-bottom: 12px;
}

.categories-scroll {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn:active {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
}

.cat-btn.active {
  background: var(--gradient-main);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(155, 89, 232, 0.4);
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrap:hover .hero-img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(9, 9, 18, 0.95) 0%,
      rgba(9, 9, 18, 0.5) 40%,
      rgba(9, 9, 18, 0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
}

.hero-content {
  max-width: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(155, 89, 232, 0.2);
  border: 1px solid rgba(155, 89, 232, 0.4);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  color: white;
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-wa);
}

.hero-cta-btn:hover,
.hero-cta-btn:active {
  transform: scale(0.97);
  background: var(--whatsapp-dark);
}

/* ============================
   SECTION HEADER
   ============================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.product-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--bg-glass);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.view-btn {
  width: 34px;
  height: 30px;
  border-radius: 7px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.view-btn.active {
  background: var(--gradient-main);
  color: white;
}

/* ============================
   PRODUCTS GRID
   ============================ */
.products-container {
  padding: 0 12px 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  transition: all var(--transition);
}

.products-grid.single-col {
  grid-template-columns: 1fr;
  gap: 14px;
}

/* ============================
   PRODUCT CARD
   ============================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  animation: cardFadeIn 0.5s ease both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.product-card:active {
  transform: scale(0.97);
}

.product-card .card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.single-col .product-card .card-image-wrap {
  aspect-ratio: 16/9;
}

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

.product-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-badge.hot {
  background: var(--accent-pink);
  color: white;
}

.card-badge.new {
  background: var(--accent-green);
  color: #000;
}

.card-badge.sale {
  background: #ff9f43;
  color: white;
}

.card-wa-quick {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(155, 89, 232, 0.4);
  transition: all var(--transition-bounce);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(10px);
}

.product-card:hover .card-wa-quick {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.card-wa-quick:hover,
.card-wa-quick:active {
  transform: scale(1.15) translateY(0) !important;
  background: var(--whatsapp-dark);
}

.card-info {
  padding: 10px 12px 12px;
}

.card-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-col .card-name {
  font-size: 16px;
}

.card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-price {
  font-size: 15px;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.single-col .card-price {
  font-size: 18px;
}

.card-old-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================
   NO RESULTS
   ============================ */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results p {
  font-size: 16px;
  line-height: 1.6;
}

/* ============================
   PRODUCT MODAL (REEL STYLE)
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition);
}

.modal-prev {
  left: 12px;
}

.modal-next {
  right: 12px;
}

.modal-nav:hover {
  background: rgba(155, 89, 232, 0.5);
}

.modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
  display: none;
}

.modal-image-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.modal-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.modal-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-badge.hot {
  background: var(--accent-pink);
  color: white;
}

.modal-badge.new {
  background: var(--accent-green);
  color: #000;
}

.modal-badge.sale {
  background: #ff9f43;
  color: white;
}

.modal-info {
  padding: 20px 20px 30px;
  flex: 1;
  background: var(--bg-primary);
}

.modal-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 400;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-old-price {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-tag {
  padding: 5px 12px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.wa-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: var(--whatsapp);
  border-radius: var(--radius-lg);
  color: white;
  font-size: 17px;
  font-weight: 700;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-wa);
  letter-spacing: 0.3px;
}

.wa-order-btn:hover,
.wa-order-btn:active {
  background: var(--whatsapp-dark);
  transform: scale(0.98);
}

/* MODAL DOTS */
.modal-dots {
  position: absolute;
  bottom: calc(var(--bottom-nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.modal-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
}

.modal-dot.active {
  background: var(--accent-primary);
  width: 20px;
}

/* ============================
   FAB WHATSAPP
   ============================ */
.fab-whatsapp {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 16px + var(--safe-bottom));
  right: 16px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 200;
  box-shadow: var(--shadow-wa);
  transition: all var(--transition-bounce);
}

.fab-whatsapp:hover,
.fab-whatsapp:active {
  transform: scale(1.1);
  background: var(--whatsapp-dark);
}

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  animation: fabPulse 2.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.4);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ============================
   BOTTOM NAVIGATION
   ============================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(13, 13, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 300;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.nav-item.active {
  color: var(--accent-primary);
}

.nav-item svg {
  transition: all var(--transition);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(155, 89, 232, 0.6));
}

.nav-center-btn {
  position: relative;
  top: -12px;
}

.nav-center-icon {
  width: 54px;
  height: 54px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(155, 89, 232, 0.5);
  transition: all var(--transition-bounce);
  color: white;
}

.nav-center-btn:hover .nav-center-icon,
.nav-center-btn:active .nav-center-icon {
  transform: scale(1.1);
}

.nav-center-btn span {
  color: var(--accent-primary);
  font-size: 10px;
  font-weight: 700;
}

/* ============================
   SWIPE HINT ANIMATION
   ============================ */
.swipe-hint {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + 80px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  z-index: 10;
  animation: hintFade 2.5s ease 1.5s both;
  pointer-events: none;
}

@keyframes hintFade {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.swipe-arrow {
  font-size: 20px;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ============================
   RESPONSIVE â€“ Tablet/Desktop
   ============================ */
@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .products-container {
    padding: 0 20px 20px;
  }

  .hero-title {
    font-size: 52px;
  }

  .modal-container {
    max-width: 480px;
    border-radius: var(--radius-xl);
    height: 94dvh;
    height: 94vh;
    margin: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-image-wrap {
    aspect-ratio: 21/9;
  }

  .modal-nav {
    display: flex !important;
  }
}

/* ============================
   MICRO-ANIMATIONS
   ============================ */
@media (prefers-reduced-motion: no-preference) {
  .product-card {
    animation-delay: calc(var(--card-index, 0) * 0.07s);
  }
}