/* ============================================================
   PURIQUICK - FMCG E-commerce | Ocean Blue & Fresh Aqua Design
   Brand: PuriQuick Foods &amp; Beverages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* PuriQuick Blue & Aqua Palette (var names kept for compatibility) */
  --royal: #0757A8;
  --royal-dark: #04396F;
  --royal-light: #1A7FD6;
  --royal-pale: #E3F1FF;
  --pink: #7FD8F5;
  --pink-deep: #00A3DA;
  --pink-light: #E0F6FF;
  --pink-pale: #F3FBFF;
  --rose: #F26B1D;
  --gold: #C9943A;
  --gold-light: #F0D78A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFCFF;
  --cream: #F1F7FD;
  --text-dark: #0B1E33;
  --text-mid: #3A4F66;
  --text-light: #6B7F95;
  --border: #DCE8F3;
  --shadow: rgba(7,87,168, 0.12);

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-elegant: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 80px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  color: var(--royal-dark);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.section-pad { padding: var(--section-pad) 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}

.btn-royal {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-light) 100%);
  color: var(--white);
  border-color: var(--royal);
  box-shadow: 0 4px 20px rgba(7,87,168, 0.28);
}
.btn-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(7,87,168, 0.38);
  color: var(--white);
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--pink) 100%);
  color: var(--white);
  border-color: var(--pink-deep);
  box-shadow: 0 4px 20px rgba(0,163,218, 0.3);
}
.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,163,218, 0.4);
  color: var(--white);
}

.btn-outline-royal {
  background: transparent;
  color: var(--royal);
  border-color: var(--royal);
}
.btn-outline-royal:hover {
  background: var(--royal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-pink {
  background: transparent;
  color: var(--pink-deep);
  border-color: var(--pink-deep);
}
.btn-outline-pink:hover {
  background: var(--pink-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 24px var(--shadow); }

.header-top {
  background: linear-gradient(90deg, var(--royal-dark), var(--royal-light));
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
}
.header-top a { color: var(--gold-light); }

.header-main { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 52px; width: auto; object-fit: contain; }
.logo-text .brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--royal); }
.logo-text .sub { font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.1em; display: block; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-list > li { position: relative; }
.nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--royal); background: var(--royal-pale); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 40px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
  z-index: 100;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: all 0.15s;
}
.dropdown-menu a:hover { background: var(--pink-light); color: var(--royal); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--royal-pale); color: var(--royal); border-color: var(--royal); }

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--pink-deep);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  width: 220px;
  padding: 8px 40px 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s;
  background: var(--pink-pale);
}
.search-bar input:focus { border-color: var(--royal); background: white; width: 280px; }
.search-bar button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 15px;
  transition: color 0.2s;
}
.search-bar button:hover { color: var(--royal); }

/* Mobile hamburger */
.hamburger { display: none; background: none; border: none; padding: 6px; cursor: pointer; }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--royal-dark);
}

.slide {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 60%, var(--pink-deep) 100%);
  overflow: hidden;
}
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 60px 60px;
}

/* Full-width background image — image div sits behind content as absolute cover */
.slide-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: none;
  filter: none;
}

/* Dark overlay so text stays readable over banner image */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(3,30,60,0.72) 0%, rgba(3,30,60,0.35) 60%, rgba(3,30,60,0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 560px;
}
.slide-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.slide-content h1 { color: white; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.slide-content p { color: rgba(255,255,255,0.82); font-size: 1rem; margin-bottom: 28px; max-width: 440px; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.slide-img-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.slider-dot.active { background: var(--gold-light); width: 24px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.28); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: linear-gradient(90deg, var(--royal-pale), var(--pink-light));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
}
.trust-item .icon { font-size: 1.1rem; }

/* ============================================================
   SECTION: CATEGORIES
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.category-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.category-card:hover { transform: translateY(-6px); }

.category-img-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-light), var(--royal-pale));
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-size: 2.2rem;
}
.category-card:hover .category-img-wrap {
  border-color: var(--pink-deep);
  box-shadow: 0 8px 28px rgba(0,163,218, 0.3);
}
.category-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.category-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--royal-dark);
}
.category-count { font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow);
  border-color: var(--pink);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--pink-deep);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-badge.featured { background: var(--royal); }
.product-badge.sale { background: var(--rose); }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-light);
  transition: all 0.2s;
  cursor: pointer;
}
.product-wishlist:hover, .product-wishlist.active { color: var(--rose); border-color: var(--rose); }

.product-img-wrap {
  width: 100%;
  background: linear-gradient(145deg, var(--pink-pale), var(--royal-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
}
.product-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info { padding: 16px; }
.product-category { font-size: 0.7rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; line-height: 1.35; }
.product-name a:hover { color: var(--royal); }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.stars { color: var(--gold); font-size: 0.8rem; }
.rating-count { font-size: 0.72rem; color: var(--text-light); }

.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.price-current { font-size: 1.15rem; font-weight: 700; color: var(--royal); font-family: var(--font-display); }
.price-old { font-size: 0.82rem; color: var(--text-light); text-decoration: line-through; }
.price-placeholder { font-size: 0.82rem; color: var(--text-light); font-style: italic; }

.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 9px 12px; font-size: 0.8rem; justify-content: center; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: linear-gradient(135deg, var(--royal-dark) 0%, #0B1E33 100%); color: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin-top: 50px; }
.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.feature-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
}
.feature-card h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; color: white; }
.feature-card p { font-size: 0.84rem; color: rgba(255,255,255,0.68); line-height: 1.6; }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(90deg, var(--pink-deep), var(--rose), var(--royal));
  color: white;
  padding: 24px 0;
  text-align: center;
}
.promo-banner h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.promo-banner p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--pink-pale); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px var(--shadow); }
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--pink-light);
}
.testimonial-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--royal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.author-location { font-size: 0.74rem; color: var(--text-light); }
.author-stars { color: var(--gold); font-size: 0.75rem; margin-top: 2px; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px var(--shadow); }
.blog-img {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--royal-pale), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-content { padding: 20px; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: 0.72rem; color: var(--text-light); margin-bottom: 10px; }
.blog-tag {
  background: var(--pink-light);
  color: var(--pink-deep);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.blog-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.blog-title a:hover { color: var(--royal); }
.blog-excerpt { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }
.blog-read-more { font-size: 0.82rem; font-weight: 600; color: var(--royal); display: flex; align-items: center; gap: 5px; }
.blog-read-more:hover { color: var(--pink-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: linear-gradient(160deg, var(--royal-dark) 0%, #0B1E33 100%);
  color: rgba(255,255,255,0.78);
  padding-top: 60px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .logo-text .brand { color: white; }
.footer-brand .logo-text .sub { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--pink-deep); color: white; }

.footer-col h5 { font-family: var(--font-display); font-size: 0.95rem; color: white; margin-bottom: 18px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.84rem; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: var(--pink); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.84rem; }
.footer-contact-item .icon { color: var(--pink); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.45); }
.footer-bottom-links a:hover { color: var(--pink-light); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--royal-pale) 100%);
  padding: 60px 0;
  text-align: center;
}
.newsletter-form { display: flex; max-width: 480px; margin: 24px auto 0; gap: 0; }
.newsletter-form input {
  flex: 1;
  padding: 13px 20px;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--royal); }
.newsletter-form button { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; padding: 13px 24px; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 32px; }

.shop-sidebar { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); position: sticky; top: 80px; }
.sidebar-title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--royal-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--pink-light); }
.sidebar-section { margin-bottom: 28px; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.filter-item input[type="checkbox"] { accent-color: var(--royal); width: 16px; height: 16px; cursor: pointer; }
.filter-item label { font-size: 0.86rem; color: var(--text-mid); cursor: pointer; flex: 1; }
.filter-item .count { font-size: 0.74rem; color: var(--text-light); }

.price-range { margin-top: 8px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--royal); }
.price-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }

.shop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.results-count { font-size: 0.85rem; color: var(--text-light); }
.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  color: var(--text-dark);
  cursor: pointer;
}
.sort-select:focus { border-color: var(--royal); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 40px 0; }

.product-gallery-main {
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--pink-pale), var(--royal-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 2px solid var(--border);
  padding: 16px;
  box-sizing: border-box;
}
.product-gallery-main img { width: 100%; height: auto; display: block; object-fit: contain; }

.product-thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  background: var(--pink-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.thumb.active, .thumb:hover { border-color: var(--royal); }
.thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.product-detail-info .product-category { margin-bottom: 6px; }
.product-detail-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--royal-dark); margin-bottom: 12px; }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-price { margin-bottom: 20px; }
.detail-price .current { font-size: 1.6rem; font-weight: 700; color: var(--royal); font-family: var(--font-display); }
.detail-price .old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }
.detail-price .badge-save { background: var(--rose); color: white; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 8px; }

.short-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }

/* Attributes / Variants */
.variant-group { margin-bottom: 20px; }
.variant-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; letter-spacing: 0.04em; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.variant-btn:hover { border-color: var(--royal); color: var(--royal); }
.variant-btn.active { border-color: var(--royal); background: var(--royal-pale); color: var(--royal); font-weight: 600; }
.variant-btn.out-of-stock { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }

.quantity-group { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }
.qty-ctrl { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty-btn { width: 38px; height: 38px; background: var(--royal-pale); border: none; color: var(--royal); font-size: 1.1rem; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--royal); color: white; }
.qty-input { width: 48px; text-align: center; border: none; outline: none; font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; color: var(--text-dark); }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-actions .btn { flex: 1; min-width: 160px; justify-content: center; }

.product-meta { font-size: 0.8rem; color: var(--text-light); line-height: 1.8; }
.product-meta span { color: var(--text-mid); font-weight: 500; }

/* Tabs */
.product-tabs { margin-top: 48px; }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--royal); border-bottom-color: var(--royal); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p, .tab-content li { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; }
.tab-content ul { padding-left: 20px; list-style: disc; }
.tab-content h4 { font-size: 1rem; color: var(--royal-dark); margin: 16px 0 8px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--royal-pale); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: var(--royal); }
.reviewer-name { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.72rem; color: var(--text-light); }
.review-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }

/* Write Review */
.review-form { background: var(--pink-pale); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.review-form h4 { font-family: var(--font-display); margin-bottom: 16px; color: var(--royal-dark); }
.star-rating-input { display: flex; gap: 4px; margin-bottom: 16px; }
.star-rating-input label { font-size: 1.4rem; color: var(--border); cursor: pointer; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--gold); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { background: linear-gradient(135deg, var(--royal-dark), var(--royal-light)); color: white; padding: 80px 0; text-align: center; }
.about-hero h1 { color: white; margin-bottom: 16px; }
.about-hero p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto; }

.about-section-card { background: white; border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); margin-bottom: 24px; }
.about-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; background: var(--pink-pale); min-height: 260px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.value-card { background: var(--pink-pale); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.value-icon { font-size: 1.8rem; margin-bottom: 10px; }
.value-card h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--royal-dark); margin-bottom: 8px; }
.value-card p { font-size: 0.83rem; color: var(--text-mid); line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; margin-top: 24px; }
.team-card { text-align: center; }
.team-img { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; background: linear-gradient(135deg, var(--pink-light), var(--royal-pale)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border: 3px solid var(--border); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--font-display); font-weight: 600; color: var(--royal-dark); }
.team-role { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; margin-top: 40px; }
.contact-info-card { background: linear-gradient(135deg, var(--royal), var(--royal-light)); color: white; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { font-family: var(--font-display); color: white; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 0.9rem; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }
.contact-detail-text a { color: rgba(255,255,255,0.85); font-size: 0.88rem; }
.contact-detail-text a:hover { color: var(--pink-light); }

.contact-form-card { background: white; border-radius: var(--radius); padding: 36px; border: 1px solid var(--border); }
.contact-form-card h3 { font-family: var(--font-display); color: var(--royal-dark); margin-bottom: 24px; }

/* ============================================================
   FORMS (general)
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(7,87,168, 0.08); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { accent-color: var(--royal); margin-top: 2px; }
.form-check label { font-size: 0.84rem; color: var(--text-mid); line-height: 1.5; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { min-height: 80vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--pink-pale), var(--royal-pale)); }
.auth-card { background: white; border-radius: var(--radius); padding: 40px; max-width: 440px; width: 100%; margin: 0 auto; border: 1px solid var(--border); box-shadow: 0 20px 60px var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-card h2 { font-family: var(--font-display); text-align: center; color: var(--royal-dark); margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; font-size: 0.88rem; color: var(--text-light); margin-bottom: 28px; }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-top: 20px; }
.auth-switch a { color: var(--royal); font-weight: 600; }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: white; padding: 0 12px; font-size: 0.78rem; color: var(--text-light); }

/* ============================================================
   CART
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 32px; align-items: start; }
.cart-table { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-table-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 12px; padding: 14px 20px; background: var(--pink-pale); font-size: 0.78rem; font-weight: 600; color: var(--text-mid); letter-spacing: 0.06em; text-transform: uppercase; }
.cart-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-product { display: flex; gap: 14px; align-items: center; }
.cart-product-img { width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--pink-pale); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.cart-product-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.cart-product-variant { font-size: 0.74rem; color: var(--text-light); margin-top: 2px; }
.cart-price { font-weight: 600; font-family: var(--font-display); color: var(--royal); }
.cart-remove { color: var(--text-light); cursor: pointer; background: none; border: none; font-size: 1rem; transition: color 0.2s; }
.cart-remove:hover { color: var(--rose); }

.cart-summary { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; position: sticky; top: 80px; }
.cart-summary h3 { font-family: var(--font-display); color: var(--royal-dark); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--pink-light); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-mid); margin-bottom: 12px; }
.summary-row.total { font-size: 1rem; font-weight: 700; color: var(--royal-dark); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.coupon-box { display: flex; gap: 8px; margin: 16px 0; }
.coupon-box input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; outline: none; }
.coupon-box input:focus { border-color: var(--royal); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--royal); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--royal); font-weight: 500; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--royal) 0%, var(--pink-deep) 100%);
  color: white;
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='10'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: white; margin-bottom: 8px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.82); position: relative; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover, .page-btn.active { background: var(--royal); color: white; border-color: var(--royal); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   TOAST / ALERTS
   ============================================================ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: white;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  border-left: 4px solid var(--royal);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: var(--rose); }
.toast-icon { font-size: 1.1rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--royal-pale); color: var(--royal-dark); border: 1px solid #93D5F8; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); color: var(--royal-dark); margin-bottom: 10px; }
.empty-state p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 24px; }

/* ============================================================
   LOADING
   ============================================================ */
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--royal); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-close { background: none; border: none; font-size: 1.3rem; color: var(--text-mid); cursor: pointer; }
.mobile-nav-links { padding: 16px 0; }
.mobile-nav-links a { display: block; padding: 12px 24px; font-size: 0.95rem; font-weight: 500; color: var(--text-dark); border-bottom: 1px solid var(--border); }
.mobile-nav-links a:hover { background: var(--pink-pale); color: var(--royal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Breakpoints: 1024px | 768px | 600px | 480px | 360px
   ============================================================ */

/* ── 1024px — Tablets ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  #checkoutGrid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-content-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-layout { grid-template-columns: 1fr !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
  .slide-image { display: flex; }
  .slide-content { padding: 20px; }
  .slide-actions { justify-content: center; }
  .search-bar input { width: 180px; }
  .search-bar input:focus { width: 220px; }
}

/* ── 768px — Mobile Landscape ─────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 48px; }

  /* Header */
  .header-top { display: none; }
  .main-nav { display: none; }
  .search-bar { display: none; }
  .hamburger { display: flex; }
  .header-main { gap: 12px; padding: 12px 0; }
  .site-logo img { height: 40px; }
  .logo-text .brand { font-size: 1.15rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 14px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-royal { display: none; }

  /* Mobile search toggle */
  .mobile-search-toggle { display: flex !important; }

  /* Hero */
  .slide { min-height: 400px; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; padding: 36px 20px; }
  .slide-image { display: none; }
  .slide-actions { justify-content: center; flex-wrap: wrap; }
  .slide-content h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .slide-content p { font-size: 0.9rem; }
  .slider-arrow { width: 36px; height: 36px; font-size: 14px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }

  /* Trust bar */
  .trust-bar-inner { justify-content: flex-start; gap: 16px; overflow-x: auto; flex-wrap: nowrap; padding: 4px 16px; -webkit-overflow-scrolling: touch; }
  .trust-bar-inner::-webkit-scrollbar { display: none; }
  .trust-item { flex-shrink: 0; font-size: 0.78rem; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
  .category-img-wrap { width: 90px; height: 90px; }
  .category-name { font-size: 0.8rem; }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
  .product-img-wrap { aspect-ratio: 1 / 1; height: auto; }
  .product-info { padding: 12px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { font-size: 0.78rem; padding: 8px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
  .feature-card { padding: 22px 16px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Newsletter */
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input { border-right: 2px solid var(--border) !important; border-radius: var(--radius-pill) !important; }
  .newsletter-form button { border-radius: var(--radius-pill) !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-links { flex-wrap: wrap; gap: 10px; }

  /* Shop */
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: block; }
  .shop-filter-toggle { display: flex !important; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .results-count { font-size: 0.8rem; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .detail-actions { flex-direction: column; gap: 10px; }
  .detail-actions .btn { min-width: 100%; justify-content: center; }
  .product-thumbnails { gap: 8px; }
  .thumb { width: 58px; height: 58px; }
  .tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .tab-nav::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 0.82rem; }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-header { display: none; }
  .cart-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px;
    position: relative;
  }
  .cart-product { grid-column: 1 / -1; }
  .cart-summary { position: static; }

  /* Checkout */
  #checkoutGrid { grid-template-columns: 1fr !important; gap: 20px !important; margin-top: 16px !important; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-form-card { padding: 24px 20px; }
  .contact-info-card { padding: 24px 20px; }

  /* About */
  .about-content-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-hero { padding: 50px 0; }
  .about-section-card { padding: 24px 20px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  /* Account */
  .account-layout { grid-template-columns: 1fr !important; gap: 16px !important; }
  .account-stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .account-stats-grid > div { padding: 16px 10px !important; }
  .account-stats-grid > div > div:first-child { font-size: 1.5rem !important; }

  /* Account sidebar → horizontal tabs on mobile */
  .account-layout > div:first-child { position: static !important; }
  .account-layout > div:first-child nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 !important;
    gap: 0 !important;
    border-bottom: 2px solid var(--border);
  }
  .account-layout > div:first-child nav::-webkit-scrollbar { display: none; }
  .account-layout > div:first-child nav a,
  .account-layout > div:first-child > div:last-child a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
    border-right: none !important;
    border-bottom: 3px solid transparent !important;
    flex-shrink: 0 !important;
  }
  .account-layout > div:first-child > div:last-child { display: none !important; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }

  /* Page hero */
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* Toast */
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }

  /* Promo banner */
  .promo-banner { padding: 20px 0; }
  .promo-banner h3 { font-size: 1.15rem; }

  /* Section text */
  .section-sub { font-size: 0.9rem; }

  /* Breadcrumb */
  .breadcrumb { font-size: 0.72rem; padding: 12px 0; }
}

/* ── 600px — Phones ───────────────────────────────────────── */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .blog-grid { gap: 14px; }
  .testimonials-grid { gap: 12px; }

  /* Cart rows stacked */
  .cart-row { grid-template-columns: 1fr; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-btn { width: 34px; height: 34px; font-size: 0.8rem; }
}

/* ── 480px — Small phones ─────────────────────────────────── */
@media (max-width: 480px) {
  :root { --section-pad: 36px; }

  .container { padding: 0 14px; }
  .container-wide { padding: 0 14px; }

  /* Header */
  .logo-text .brand { font-size: 1rem; }

  /* Hero */
  .slide { min-height: 340px; }
  .slide-content h1 { font-size: 1.5rem; }
  .slide-content p { font-size: 0.84rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.88rem; }

  /* Categories - 3 cols on small mobile */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .category-img-wrap { width: 72px; height: 72px; font-size: 1.4rem; }
  .category-name { font-size: 0.72rem; }

  /* Products - 2 cols */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-img-wrap { height: auto; font-size: 2.5rem; }
  .product-name { font-size: 0.88rem; }
  .price-current { font-size: 1rem; }

  /* Account stats */
  .account-stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .account-stats-grid > div { padding: 12px 6px !important; }

  /* Checkout steps */
  #checkoutGrid { padding: 0 !important; }

  /* About */
  .about-hero { padding: 36px 0; }

  /* Footer */
  .social-links { flex-wrap: wrap; }

  /* Modals & auth */
  .auth-card { margin: 0 10px; padding: 24px 16px; }

  /* Blog */
  .blog-content { padding: 16px; }
  .blog-meta { flex-wrap: wrap; gap: 6px; }

  /* Trust bar items */
  .trust-item span:not(.icon) { display: none; }
  .trust-item .icon { font-size: 1.3rem; }

  /* Promo */
  .promo-banner p { display: none; }

  /* Product tabs */
  .tab-btn { font-size: 0.78rem; padding: 8px 12px; }
}

/* ── 360px — Very small phones ───────────────────────────── */
@media (max-width: 360px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-img-wrap { aspect-ratio: 1 / 1; height: auto; }
  .btn { padding: 10px 18px; font-size: 0.82rem; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 32px; height: 32px; font-size: 13px; }
}

/* ── Mobile Nav Improvements ──────────────────────────────── */
.mobile-nav {
  width: min(300px, 85vw);
  display: flex;
  flex-direction: column;
}
.mobile-nav-links a.active {
  background: var(--royal-pale);
  color: var(--royal);
  font-weight: 600;
}
.mobile-nav-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-search input {
  width: 100%;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--pink-pale);
}
.mobile-nav-search input:focus { border-color: var(--royal); background: white; }

/* Mobile Search Bar (visible on mobile) */
.mobile-search-bar {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.mobile-search-bar.open { display: block; }
.mobile-search-bar form {
  display: flex;
  gap: 8px;
}
.mobile-search-bar input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  background: var(--pink-pale);
}
.mobile-search-bar input:focus { border-color: var(--royal); background: white; }
.mobile-search-bar button {
  padding: 9px 18px;
  background: var(--royal);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  cursor: pointer;
}

/* Search toggle icon in header (only mobile) */
.mobile-search-toggle {
  display: none;
}

/* Shop filter toggle button (only mobile) */
.shop-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--royal-pale);
  color: var(--royal);
  border: 1.5px solid var(--royal);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
}

/* ── Utility overrides ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .show-mobile-flex { display: flex !important; }
  .text-center-mobile { text-align: center !important; }
  .full-width-mobile { width: 100% !important; }

  /* Sticky elements reset on mobile */
  [style*="position:sticky"],
  [style*="position: sticky"] {
    position: static !important;
  }

  /* Prevent horizontal overflow */
  .container, .container-wide {
    overflow-x: hidden;
  }
}

/* ── Smooth scrolling & touch improvements ─────────────────── */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  * { -webkit-tap-highlight-color: transparent; }
  input, select, textarea { font-size: 16px !important; }
  .btn { min-height: 44px; }
  .icon-btn { min-height: 44px; min-width: 44px; }
  .nav-link, .mobile-nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* ── New class-based responsive fixes (from PHP edits) ─────── */
@media (max-width: 768px) {
  /* Blog detail sidebar */
  .blog-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .blog-detail-layout aside { order: -1; }

  /* Featured blog article */
  .featured-blog-article {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important;
    gap: 20px !important;
  }
  .featured-blog-article img { max-height: 200px; object-fit: cover; border-radius: var(--radius); }

  /* About certifications */
  .about-cert-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .about-certs-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Sticky elements — account sidebar */
  .account-layout > div:first-child {
    border-radius: var(--radius) !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .about-certs-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .featured-blog-article {
    padding: 20px 16px !important;
  }
}