/* ===================================================
   MTECH4U - PREMIUM LIGHT THEME
   Custom Code | HTML + CSS + JS + PHP
=================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --primary-light: #fff0f0;
  --secondary: #1d3557;
  --accent: #f77f00;
  --accent-light: #fff4e6;
  --white: #ffffff;
  --bg: #f8f9fc;
  --bg2: #f1f3f8;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --font: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input { font-family: var(--font); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* =====================
   ANNOUNCEMENT BAR
===================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
  color: white;
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.announcement-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.announcement-bar a { color: white; font-weight: 700; text-decoration: underline; }
.ann-close {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.ann-close:hover { color: white; }

/* =====================
   TOP BAR
===================== */
.top-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--primary); font-size: 12px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-right a { display: flex; align-items: center; gap: 5px; color: var(--text-muted); transition: var(--transition-fast); }
.top-bar-right a:hover { color: var(--primary); }

/* =====================
   NAVBAR
===================== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-icon {
  transform: rotate(-5deg) scale(1.05);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}
.nav-logo-text { line-height: 1.1; }
.nav-logo-text .brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo-text .brand-name span { color: var(--primary); }
.nav-logo-text .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-link i.chevron {
  font-size: 10px;
  transition: var(--transition-fast);
}
.nav-item:hover .nav-link i.chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: none;
  border-right: none;
  transform: translateX(-50%) rotate(45deg);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition-fast);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }
.dropdown a i { width: 18px; color: var(--primary); font-size: 13px; }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 0; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 17px;
  transition: var(--transition-fast);
  position: relative;
  cursor: pointer;
  background: transparent;
}
.nav-btn:hover { color: var(--primary); background: var(--primary-light); }
.nav-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--primary);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  animation: pop 0.3s ease;
}
@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.btn-login {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}
.btn-login:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
  transform: translateY(-1px);
}

/* Search Bar */
.nav-search {
  position: relative;
  flex: 1;
  max-width: 380px;
}
.nav-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.nav-search input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}
.nav-search input::placeholder { color: var(--text-light); }
.nav-search-btn {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}
.nav-search-btn:hover { background: var(--primary-dark); }

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.hamburger:hover { background: var(--primary-light); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================
   HERO SECTION
===================== */
.hero {
  background: var(--white);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}
.hero-slide {
  display: none;
  align-items: center;
  padding: 60px 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
}
.hero-slide.active {
  display: flex;
  opacity: 1;
}
.hero-slide-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content { z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(230, 57, 70, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideInLeft 0.6s ease 0.1s both;
}
.hero-badge i { font-size: 12px; }
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 18px;
  animation: slideInLeft 0.6s ease 0.2s both;
}
.hero-title span { color: var(--primary); position: relative; }
.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%;
  height: 8px;
  background: rgba(230, 57, 70, 0.15);
  border-radius: 4px;
  z-index: -1;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: slideInLeft 0.6s ease 0.3s both;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  animation: slideInLeft 0.6s ease 0.4s both;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
  background: white;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  animation: slideInLeft 0.6s ease 0.5s both;
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.hero-stat .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 0.7s ease 0.2s both;
}
.hero-image-bg {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
.hero-image {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.hero-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-float-card.card-1 { top: 10%; left: -40px; }
.hero-float-card.card-2 { bottom: 15%; right: -30px; animation-delay: 2s; }
.hero-float-card .fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.card-1 .fc-icon { background: var(--primary-light); color: var(--primary); }
.card-2 .fc-icon { background: #e8f5e9; color: #2e7d32; }
.hero-float-card .fc-text .fc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.hero-float-card .fc-text .fc-sub {
  font-size: 11px;
  color: var(--text-muted);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.slider-dot.active {
  width: 24px;
  background: var(--primary);
}
.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 10;
}
.slider-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
}
.slider-arrow:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Hero slide BGs */
.hero-slide-1 { background: linear-gradient(135deg, #fff5f5 0%, #fff 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #f5fff8 0%, #fff 100%); }

/* =====================
   CATEGORIES
===================== */
.section { padding: 64px 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title-wrap {}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.section-title span { color: var(--primary); }
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid rgba(230, 57, 70, 0.25);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.view-all-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.view-all-link i { font-size: 12px; transition: var(--transition-fast); }
.view-all-link:hover i { transform: translateX(3px); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  group: true;
}
.category-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--cat-color, var(--primary));
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: center;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.category-card:hover::before { transform: scaleX(1); }
.cat-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  transition: var(--transition);
  background: var(--cat-bg, var(--primary-light));
  color: var(--cat-color, var(--primary));
}
.category-card:hover .cat-icon-wrap {
  transform: scale(1.12) rotate(-5deg);
}
.cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.cat-count {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================
   FLASH DEALS
===================== */
.flash-deals-section {
  background: var(--white);
  padding: 60px 0;
}
.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.flash-title-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}
.flash-badge i { animation: flicker 1s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.flash-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 6px;
}
.count-unit {
  text-align: center;
  background: var(--secondary);
  color: white;
  border-radius: 8px;
  min-width: 44px;
  padding: 6px 10px;
  line-height: 1;
}
.count-unit .num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  display: block;
  font-variant-numeric: tabular-nums;
}
.count-unit .lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-top: 2px;
  display: block;
}
.count-sep {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flash-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}
.flash-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.2);
  transform: translateY(-4px);
}
.flash-discount-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}
.flash-img-wrap {
  background: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  overflow: hidden;
}
.flash-img-wrap img {
  max-height: 140px;
  width: auto;
  margin: 0 auto;
  transition: var(--transition);
  object-fit: contain;
}
.flash-card:hover .flash-img-wrap img { transform: scale(1.08); }
.flash-info { padding: 16px; }
.flash-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.flash-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.flash-price-new {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}
.flash-price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.flash-progress-wrap { }
.flash-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.flash-progress-label span { font-weight: 600; color: var(--primary); }
.flash-progress-bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.flash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.flash-btn {
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid rgba(230, 57, 70, 0.2);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.flash-btn:hover { background: var(--primary); color: white; }

/* =====================
   PRODUCT GRID
===================== */
.products-section { padding: 64px 0; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  group: true;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.15);
  transform: translateY(-5px);
}
/* Card badges */
.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}
.product-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  color: white;
  line-height: 1.4;
}
.badge-green { background: #16a34a; }
.badge-red { background: var(--primary); }
.badge-orange { background: var(--accent); }
.badge-blue { background: #2563eb; }

/* Wishlist btn */
.product-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: white;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 3;
  box-shadow: var(--shadow-sm);
}
.product-wishlist:hover, .product-wishlist.active { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }

/* Image */
.product-img-wrap {
  background: var(--bg);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  max-height: 180px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
  transition: var(--transition);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Quick actions overlay */
.product-quick-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  padding: 24px 12px 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.product-card:hover .product-quick-actions {
  opacity: 1;
  transform: translateY(0);
}
.qa-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.qa-cart { background: var(--primary); color: white; }
.qa-cart:hover { background: var(--primary-dark); }
.qa-view { background: rgba(255,255,255,0.9); color: var(--text); }
.qa-view:hover { background: white; }

/* Product info */
.product-info { padding: 16px; }
.product-cat {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.stars { display: flex; gap: 2px; }
.stars i { font-size: 12px; color: #f59e0b; }
.rating-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.product-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.price-new {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}
.price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.add-to-cart-btn {
  width: 100%;
  padding: 11px;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.add-to-cart-btn:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.25);
}

/* =====================
   WHY CHOOSE US
===================== */
.features-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2c4a6b 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature-card {
  text-align: center;
  color: white;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-6px);
}
.feature-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  color: white;
  transition: var(--transition);
}
.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
  transform: rotate(-6deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}
.feature-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* =====================
   TESTIMONIALS
===================== */
.testimonials-section {
  background: var(--white);
  padding: 64px 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(230, 57, 70, 0.15);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 80px;
  color: rgba(230, 57, 70, 0.08);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-stars { margin-bottom: 14px; }
.testimonial-stars i { color: #f59e0b; font-size: 14px; }
.testimonial-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.testimonial-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.testimonial-loc i { font-size: 10px; color: var(--primary); }
.verified-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  background: #f0fdf4;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

/* =====================
   NEWSLETTER
===================== */
.newsletter-section {
  background: var(--bg);
  padding: 64px 0;
}
.newsletter-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.newsletter-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.newsletter-content { position: relative; z-index: 1; }
.newsletter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.newsletter-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 14px;
}
.newsletter-desc {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
}
.newsletter-form-wrap { position: relative; z-index: 1; }
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}
.newsletter-submit {
  padding: 14px 28px;
  background: white;
  color: var(--primary);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
}
.newsletter-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.newsletter-privacy {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.newsletter-privacy i { color: rgba(255,255,255,0.8); }

/* =====================
   FOOTER
===================== */
.footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-wrap { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-heading);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: white;
}
.footer-brand span { color: var(--primary); }
.footer-desc {
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.6);
}
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.social-btn.whatsapp:hover { background: #25d366; border-color: #25d366; }
.social-btn.facebook:hover { background: #1877f2; border-color: #1877f2; }
.social-btn.instagram:hover { background: #e1306c; border-color: #e1306c; }
.social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; }

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links a i { font-size: 11px; color: var(--primary); width: 14px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.footer-contact-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}
.footer-contact-text { line-height: 1.5; }
.footer-contact-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}
.footer-contact-value { color: rgba(255,255,255,0.8); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-copy a { color: rgba(255,255,255,0.6); transition: var(--transition-fast); }
.footer-copy a:hover { color: var(--primary); }
.footer-payments { display: flex; align-items: center; gap: 8px; }
.payment-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  font-family: var(--font-heading);
}
.payment-badge.visa { color: #1a1f71; background: white; border-color: transparent; }
.payment-badge.master { color: white; background: #eb001b; border-color: transparent; }
.payment-badge.jcb { color: white; background: #003087; border-color: transparent; }

/* =====================
   WHATSAPP FLOATING BTN
===================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.whatsapp-btn {
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}
.wa-tooltip {
  background: white;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  width: 42px; height: 42px;
  background: var(--secondary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.scroll-top.show { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary); transform: translateY(-3px); }

/* =====================
   ANIMATIONS
===================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* =====================
   RESPONSIVE — COMPREHENSIVE
===================== */

/* ---- Tablet Large (max 1100px) ---- */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-search { max-width: 260px; }
  .newsletter-inner { padding: 48px 48px; }
}

/* ---- Tablet (max 900px) ---- */
@media (max-width: 900px) {
  :root { font-size: 15px; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-search { max-width: 200px; }
  .btn-login span { display: none; }
  .btn-login { padding: 8px 12px; }

  /* Hero */
  .hero-slide { min-height: 420px; }
  .hero-slide-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 64px;
    gap: 0;
  }
  .hero-image-wrap { display: none; }
  .hero-content { max-width: 600px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  /* Newsletter */
  .newsletter-inner {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 28px;
    border-radius: var(--radius-lg);
  }
  .newsletter-title { font-size: 24px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Flash deals */
  .flash-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- Mobile Large (max 768px) ---- */
@media (max-width: 768px) {
  /* Sections */
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }

  /* Navbar */
  .nav-inner { height: 62px; gap: 12px; }
  .nav-logo-text .brand-sub { display: none; }
  .nav-logo-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
  .nav-search { display: none; }
  .nav-btn { width: 36px; height: 36px; font-size: 15px; }

  /* Hero */
  .hero-slide-inner { padding: 32px 20px 56px; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 14px; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; }
  .btn-primary, .btn-outline { padding: 12px 22px; font-size: 13.5px; }
  .hero-stat .number { font-size: 22px; }
  .hero-stats { gap: 20px; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .category-card { padding: 20px 10px; }
  .cat-icon-wrap { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
  .cat-name { font-size: 12.5px; }
  .cat-count { font-size: 11px; }

  /* Products */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-img-wrap { height: 180px; }
  .product-info { padding: 12px; }
  .price-new { font-size: 15px; }
  .product-name { font-size: 13.5px; }

  /* Flash deals */
  .flash-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .flash-img-wrap { height: 150px; }
  .flash-name { font-size: 13px; }
  .flash-price-new { font-size: 15px; }
  .flash-title { font-size: 20px; }
  .countdown { flex-wrap: wrap; gap: 4px; }
  .count-unit { min-width: 38px; padding: 5px 8px; }
  .count-unit .num { font-size: 17px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-card { padding: 22px 14px; }
  .feature-icon-wrap { width: 56px; height: 56px; font-size: 24px; }
  .feature-title { font-size: 14px; }
  .feature-desc { font-size: 12.5px; }

  /* Footer */
  .footer { padding: 44px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-socials { flex-wrap: wrap; }

  /* Newsletter */
  .newsletter-inner { padding: 32px 20px; }
  .newsletter-title { font-size: 22px; }
  .newsletter-desc { font-size: 13.5px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-submit { width: 100%; justify-content: center; }
  .newsletter-input { width: 100%; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 20px; right: 18px; }
  .whatsapp-btn { width: 52px; height: 52px; font-size: 22px; }
  .scroll-top { right: 20px; bottom: 80px; }
}

/* ---- Mobile (max 480px) ---- */
@media (max-width: 480px) {
  /* Announcement */
  .announcement-bar { font-size: 11.5px; padding: 8px 36px 8px 12px; }

  /* Navbar */
  .nav-inner { padding: 0 14px; gap: 8px; }
  .nav-logo-text .brand-name { font-size: 17px; }
  .btn-login { display: none; }

  /* Hero */
  .hero-slider { min-height: 380px; }
  .hero-slide-inner { padding: 28px 16px 52px; }
  .hero-title { font-size: 24px; line-height: 1.2; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 280px; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat .number { font-size: 20px; }
  .hero-stat .label { font-size: 11px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 13px; }

  /* Categories — 2 columns on small mobile */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 18px 8px; }
  .cat-icon-wrap { width: 46px; height: 46px; font-size: 20px; border-radius: 12px; margin-bottom: 10px; }
  .cat-name { font-size: 12px; }

  /* Products — 2 columns but more compact */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img-wrap { height: 150px; }
  .product-info { padding: 10px; }
  .product-cat { font-size: 10px; }
  .product-name { font-size: 12.5px; -webkit-line-clamp: 2; }
  .product-rating { gap: 4px; }
  .stars i { font-size: 10px; }
  .rating-num { font-size: 10.5px; }
  .price-new { font-size: 14px; }
  .price-old { font-size: 11px; }
  .add-to-cart-btn { padding: 9px 8px; font-size: 12px; gap: 4px; }
  .product-wishlist { width: 30px; height: 30px; font-size: 12px; }
  .product-badge { font-size: 10px; padding: 2px 7px; }
  .product-badges { gap: 4px; }

  /* Flash deals — 1 column */
  .flash-grid { grid-template-columns: 1fr; gap: 14px; }
  .flash-img-wrap { height: 180px; }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .view-all-link { align-self: flex-start; }
  .section-title { font-size: 20px; }
  .section-eyebrow { font-size: 11px; }

  /* Features — 1 col on very small */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px 16px; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .feature-icon-wrap { margin: 0; flex-shrink: 0; width: 48px; height: 48px; font-size: 20px; }

  /* Countdown */
  .countdown { gap: 4px; }
  .count-unit { min-width: 34px; padding: 4px 6px; }
  .count-unit .num { font-size: 15px; }
  .count-unit .lbl { font-size: 8px; }
  .count-sep { font-size: 16px; margin-bottom: 8px; }
  .countdown-label { font-size: 12px; }

  /* Flash header */
  .flash-title { font-size: 18px; }
  .flash-badge { font-size: 12px; padding: 6px 12px; }

  /* Testimonials */
  .testimonial-card { padding: 20px; }
  .testimonial-text { font-size: 13.5px; }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-payments { flex-wrap: wrap; gap: 6px; }
  .footer-copy { font-size: 12px; }

  /* Container padding */
  .container { padding: 0 14px; }
}

/* ---- Tiny Mobile (max 360px) ---- */
@media (max-width: 360px) {
  .hero-title { font-size: 21px; }
  .categories-grid { gap: 8px; }
  .products-grid { gap: 8px; }
  .product-img-wrap { height: 130px; }
  .nav-inner { padding: 0 10px; }
}

/* ---- Touch device improvements ---- */
@media (hover: none) and (pointer: coarse) {
  /* Always show quick actions on touch */
  .product-quick-actions {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  }
  /* Remove hover-dependent transforms for better touch feel */
  .category-card:active { transform: scale(0.97); }
  .product-card:active { transform: scale(0.98); }
  .flash-card:active { transform: scale(0.98); }
  .btn-primary:active { transform: scale(0.97); }
  /* Larger tap targets */
  .nav-btn { width: 44px; height: 44px; }
  .slider-arrow { width: 40px; height: 40px; }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9998;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open { visibility: visible; pointer-events: all; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-nav.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav-drawer {
  position: absolute;
  top: 0; left: 0;
  width: 300px;
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 24px 0;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-links { padding: 16px 0; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}
.mobile-nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.mobile-nav-links a i { width: 20px; color: var(--primary); }
