/* ============================================
   LITLE STAR PET SHOP — Design System & Styles
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary: #FF8A3D;
  --color-primary-dark: #E5752E;
  --color-primary-light: #FFB07A;
  --color-primary-bg: #FFF5ED;
  --color-secondary: #7BC47F;
  --color-secondary-dark: #5DA861;
  --color-secondary-light: #A8DCA9;
  --color-secondary-bg: #F0FAF0;
  --color-white: #FFFFFF;
  --color-surface: #F8F8F8;
  --color-surface-2: #F0F0F0;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-border: #E8E8E8;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5A;
  --color-star: #FFB800;
  --color-danger: #FF4D4D;
  --color-overlay: rgba(0,0,0,0.5);

  /* Typography */
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-base: 1rem;     /* 16px */
  --fs-md: 1.125rem;   /* 18px */
  --fs-lg: 1.25rem;    /* 20px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */
  --fs-4xl: 3rem;      /* 48px */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --bottom-nav-height: 64px;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(255,138,61,0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,138,61,0.45);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary-bg);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

.btn-cart {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  font-size: var(--fs-sm);
  border-radius: var(--radius-md);
}

.btn-cart:hover {
  background: var(--color-primary-dark);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-md);
  min-height: 56px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  min-height: 40px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- HEADER / NAVIGATION ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-primary);
}

.logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .logo-icon {
  font-size: 1.8rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop a {
  font-weight: 600;
  color: var(--color-text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: var(--fs-lg);
  transition: all var(--transition-base);
}

.cart-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

.cart-badge:empty, .cart-badge[data-count="0"] {
  display: none;
}

/* ---------- MOBILE BOTTOM NAVIGATION ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-sm);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-light);
  padding: var(--space-xs);
  min-width: 56px;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.bottom-nav a .nav-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--color-primary);
}

.bottom-nav .cart-nav-badge {
  position: absolute;
  top: 2px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .cart-nav-badge:empty { display: none; }

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, #FFF0E4 50%, var(--color-secondary-bg) 100%);
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-3xl);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.hero-floating-card.card-1 {
  top: 10%;
  right: -10px;
}

.hero-floating-card.card-2 {
  bottom: 15%;
  left: -10px;
}

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

/* Decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,138,61,0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(123,196,127,0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
}

/* ---------- CATEGORY SECTION ---------- */
.categories {
  background: var(--color-white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

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

.category-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-icon.cat { background: #FFF0E4; }
.category-icon.dog { background: #E8F4FD; }
.category-icon.food { background: #FFF5ED; }
.category-icon.vitamin { background: #F0FAF0; }
.category-icon.accessory { background: #FDF0F5; }

.category-card h3 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
}

.category-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* ---------- PRODUCT CARDS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--color-primary-light);
}

.product-card-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--color-surface);
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-danger);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-badge.bestseller {
  background: var(--color-primary);
}

.product-wishlist {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  font-size: var(--fs-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.product-wishlist:hover {
  background: var(--color-danger);
  color: var(--color-white);
}

.product-card-body {
  padding: var(--space-md);
  flex: 1;
}

.product-card-category {
  font-size: var(--fs-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.product-card-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a:hover {
  color: var(--color-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.product-stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
  font-size: var(--fs-sm);
}

.product-rating-count {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md) var(--space-md);
}

.product-price {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
}

.product-price-old {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-right: var(--space-xs);
}

.product-card-footer .btn-cart {
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

/* ---------- TRUST SECTION ---------- */
.trust-section {
  background: var(--color-surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.trust-icon.original { background: var(--color-primary-bg); }
.trust-icon.shipping { background: #E8F4FD; }
.trust-icon.payment { background: var(--color-secondary-bg); }
.trust-icon.service { background: #FDF0F5; }

.trust-item h3 {
  font-size: var(--fs-base);
  font-weight: 700;
}

.trust-item p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---------- WHATSAPP CTA SECTION ---------- */
.wa-cta-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #5AB85E 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wa-cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.wa-cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -150px;
  left: -50px;
}

.wa-cta-section .section-title {
  color: var(--color-white);
  font-size: var(--fs-2xl);
}

.wa-cta-section .section-subtitle {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
}

.wa-cta-section .btn-whatsapp {
  background: var(--color-white);
  color: var(--color-whatsapp);
  font-size: var(--fs-lg);
  padding: 18px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

.wa-cta-section .btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-base);
}

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

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-primary-bg);
}

.testimonial-author-info h4 {
  font-size: var(--fs-base);
  font-weight: 700;
}

.testimonial-author-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--color-star);
  margin-top: var(--space-xs);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  transition: all var(--transition-base);
}

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

.footer-col h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}

/* ---------- PRODUCT LISTING PAGE ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-bg), var(--color-secondary-bg));
  padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
}

.page-header h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--color-text-secondary);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  flex-wrap: wrap;
  gap: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.filter-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-tab:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}

.filter-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.3);
}

.sort-select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
}

/* ---------- PRODUCT DETAIL PAGE ---------- */
.product-detail {
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.product-detail .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: var(--space-md);
}

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

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-primary);
}

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

.product-info {
  padding: var(--space-md) 0;
}

.product-info .breadcrumb {
  justify-content: flex-start;
  margin-bottom: var(--space-lg);
}

.product-info-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.product-info-price {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-secondary-bg);
  color: var(--color-secondary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.product-stock .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
}

.product-info-desc {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-quantity label {
  font-weight: 700;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  color: var(--color-text);
  background: var(--color-surface);
  transition: all var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.quantity-input {
  width: 60px;
  height: 44px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-base);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-actions .btn {
  flex: 1;
}

/* ---------- CART PAGE ---------- */
.cart-page {
  padding-top: calc(var(--header-height) + var(--space-xl));
  min-height: 80vh;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-base);
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-base);
}

.cart-item-category {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.cart-item-price {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-remove-btn {
  color: var(--color-text-light);
  font-size: var(--fs-md);
  padding: var(--space-xs);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.cart-remove-btn:hover {
  color: var(--color-danger);
}

/* Cart Summary */
.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.cart-summary h3 {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  font-size: var(--fs-base);
}

.cart-summary-row.total {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-primary);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-border);
}

/* ---------- CHECKOUT PAGE ---------- */
.checkout-page {
  padding-top: calc(var(--header-height) + var(--space-xl));
  min-height: 80vh;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,138,61,0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.checkout-section {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.checkout-section h3 {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-section h3 .step-number {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-bg);
}

.payment-option input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.payment-option-info h4 {
  font-weight: 700;
  font-size: var(--fs-base);
}

.payment-option-info p {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* ---------- EMPTY CART STATE ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.empty-state h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---------- FLOATING WHATSAPP ---------- */
.floating-wa {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-md));
  right: var(--space-md);
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition-base);
  animation: pulse 2s ease-in-out infinite;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + var(--space-xl) + 60px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--color-secondary-dark);
}

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-md);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 100%;
  max-width: 400px;
  position: relative;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-danger);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

/* ---------- RESPONSIVE: TABLET (768px) ---------- */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .bottom-nav {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .floating-wa {
    bottom: var(--space-xl);
    right: var(--space-xl);
  }

  .hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ---------- RESPONSIVE: MOBILE (below 768px) ---------- */
@media (max-width: 767px) {
  body {
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
  }

  .nav-desktop {
    display: none !important;
  }

  .hero {
    padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-2xl);
    min-height: auto;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: var(--fs-2xl);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .category-card {
    padding: var(--space-md) var(--space-sm);
  }

  .category-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-card-body {
    padding: var(--space-sm);
  }

  .product-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0 var(--space-sm) var(--space-sm);
  }

  .product-card-footer .btn-cart {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .product-detail .container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-gallery {
    position: relative;
    top: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: 0;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: var(--fs-xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 160px;
  }

  .cart-item-actions {
    flex-direction: row;
    align-items: center;
    margin-top: var(--space-md);
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ---------- RESPONSIVE: DESKTOP (1440px+) ---------- */
@media (min-width: 1200px) {
  .hero-title {
    font-size: var(--fs-4xl);
  }

  .hero {
    min-height: 600px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--color-primary-light);
  color: var(--color-white);
}

/* ---------- Body padding for fixed header (desktop) ---------- */
@media (min-width: 768px) {
  body {
    padding-top: var(--header-height);
  }
}
