/* ================================================
   Pet Universe Córdoba — Storefront Design System
   Warm • Professional • Pet-Friendly
   ================================================ */

/* === 1. Custom Properties === */

:root {
  --primary:       #6B2FA0;
  --primary-dark:  #4A1D73;
  --primary-light: #F0E8F7;
  --accent:        #E8A838;
  --accent-hover:  #D49530;
  --warm:          #FDF0D5;
  --warm-light:    #FDF0D5;
  --bg:            #FDFBF8;
  --surface:       #FFFFFF;
  --text:          #2B2D42;
  --text-muted:    #8D8DA0;
  --border:        #EDE8E0;
  --success:       #25D366;
  --error:         #E63946;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-pill:   999px;
  --shadow-sm:     0 1px 4px rgba(43, 45, 66, 0.04);
  --shadow:        0 4px 16px rgba(43, 45, 66, 0.06);
  --shadow-lg:     0 12px 40px rgba(43, 45, 66, 0.10);
  --shadow-accent: 0 6px 24px rgba(232, 168, 56, 0.25);
  --transition:    280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
}

/* === 2. Keyframes === */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rotate, 0deg)); }
}

@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* === 3. Reset & Base === */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

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

iconify-icon {
  display: inline-flex;
  vertical-align: middle;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children.is-visible > *:nth-child(1)  { transition-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2)  { transition-delay: 60ms; }
.stagger-children.is-visible > *:nth-child(3)  { transition-delay: 120ms; }
.stagger-children.is-visible > *:nth-child(4)  { transition-delay: 180ms; }
.stagger-children.is-visible > *:nth-child(5)  { transition-delay: 240ms; }
.stagger-children.is-visible > *:nth-child(6)  { transition-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(7)  { transition-delay: 360ms; }
.stagger-children.is-visible > *:nth-child(8)  { transition-delay: 420ms; }
.stagger-children.is-visible > *:nth-child(9)  { transition-delay: 480ms; }
.stagger-children.is-visible > *:nth-child(10) { transition-delay: 540ms; }
.stagger-children.is-visible > *:nth-child(11) { transition-delay: 600ms; }
.stagger-children.is-visible > *:nth-child(12) { transition-delay: 660ms; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* === 4. Layout === */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === 5. Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--success);
  color: white;
  border: 2px solid var(--success);
}
.btn-whatsapp:hover {
  background: #1EBE57;
  border-color: #1EBE57;
  color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
}

/* === 6. Header & Navigation === */

.site-header {
  background: var(--primary-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(74, 29, 115, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  transition: color var(--transition);
}
.header-logo:hover { color: var(--accent); }

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--accent);
  transition: background var(--transition);
}
.header-logo:hover .logo-icon {
  background: rgba(255, 255, 255, 0.18);
}

.logo-text { letter-spacing: 0.3px; }

.header-nav { display: flex; gap: 28px; }
.nav-link {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }

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

.icon-btn {
  color: white;
  padding: 8px;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.icon-btn:hover { background: rgba(255,255,255,0.12); }

.cart-btn { position: relative; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-dark);
}

.mobile-menu-toggle { display: none; }

/* === 7. Search === */

.search-bar {
  background: var(--primary);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeIn 0.3s ease-out;
}

.search-form {
  display: flex;
  gap: 8px;
  position: relative;
}
.search-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: white;
  transition: border-color var(--transition);
}
.search-form input:focus {
  border-color: var(--accent);
}

.search-submit {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-pill);
  font-size: 14px;
  border: none;
  transition: all var(--transition);
}
.search-submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.search-close {
  color: white;
  padding: 8px;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.search-close:hover { background: rgba(255,255,255,0.1); }

.search-autocomplete {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 8px;
}
.search-autocomplete:empty { display: none; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text);
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--primary-light); }
.search-result-item:last-child { border-bottom: none; }
.search-result-name { font-weight: 600; font-size: 14px; }
.search-result-meta { font-size: 12px; color: var(--text-muted); }
.search-result-price { margin-left: auto; font-weight: 700; color: var(--primary); font-size: 14px; }

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.search-view-all:hover { background: var(--primary-light); }

/* Mobile menu */
.mobile-menu {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
  animation: fadeIn 0.2s ease-out;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition);
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.08); color: white; }

/* === 8. Hero === */

.hero {
  position: relative;
  background: var(--primary-dark);
  color: white;
  padding: 72px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Background images — blurred, behind everything */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-bg-slide.active {
  opacity: 1;
}
.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(2px);
  transform: scale(1.02); /* prevent blur white edges */
}

/* Gradient overlay — brand color on top of images */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(74, 29, 115, 0.68) 0%,
      rgba(107, 47, 160, 0.55) 50%,
      rgba(139, 79, 198, 0.62) 100%
    );
}

/* Content — on top of everything */
.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeInUp 0.6s ease-out both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Floating paw decorations */
.hero-paw {
  position: absolute;
  opacity: 0.08;
  color: white;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-paw:nth-child(3) { top: 12%; left: 8%; --rotate: -15deg; }
.hero-paw:nth-child(4) { top: 55%; right: 10%; --rotate: 20deg; animation-delay: -2.5s; }
.hero-paw:nth-child(5) { bottom: 25%; left: 18%; --rotate: 10deg; animation-delay: -4.5s; }
.hero-paw:nth-child(6) { top: 25%; right: 22%; --rotate: -25deg; animation-delay: -1.5s; }

/* Hero wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 4;
  line-height: 0;
  color: var(--bg);
}
.hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* === 9. Sections === */

.section {
  padding: 56px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: var(--text);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* === 10. Categories Carousel === */

.categories-section {
  padding: 40px 0;
}

.categories-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}

.categories-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 0;
}
.categories-carousel::-webkit-scrollbar { display: none; }

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px;
  transition: transform var(--transition);
}
.category-circle-item:hover {
  transform: translateY(-4px);
}

.category-circle-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  transition: all var(--transition);
  border: 3px solid transparent;
}
.category-circle-item:hover .category-circle-icon {
  background: var(--primary);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(107, 47, 160, 0.18);
}

.category-circle-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text);
  text-align: center;
  max-width: 100px;
  line-height: 1.3;
  transition: color var(--transition);
}
.category-circle-item:hover .category-circle-name {
  color: var(--primary);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.carousel-arrow-left { left: 4px; }
.carousel-arrow-right { right: 4px; }

/* === 11. Product Cards === */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

.product-card-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light) 0%, #F2EDE6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

.product-card-placeholder {
  color: var(--primary);
  opacity: 0.2;
  transition: opacity var(--transition), transform 0.5s ease;
}
.product-card:hover .product-card-placeholder {
  opacity: 0.3;
  transform: scale(1.1);
}

.product-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-category {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.product-card-name:hover { color: var(--primary); }

.product-card-brand {
  font-size: 12px;
  color: var(--text-muted);
}

.product-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
  padding-top: 8px;
}
.product-card-price-cash {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}
.price-unit {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-muted);
}

.product-card-actions {
  padding: 0 18px 18px;
}
.product-card-actions .btn {
  width: 100%;
  font-size: 12px;
  padding: 10px;
}

.product-card-stock-out {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--error);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* === 12. Product Listing === */

.listing-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.listing-sidebar {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.category-list { list-style: none; }
.category-list li { margin-bottom: 2px; }
.category-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.category-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.category-list a.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* Mobile category pills */
.category-pills {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: all var(--transition);
}
.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Listing toolbar */
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.listing-count {
  font-size: 14px;
  color: var(--text-muted);
}
.listing-sort select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.listing-sort select:focus { border-color: var(--primary); }

/* === 13. Pagination === */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}
.pagination .ellipsis {
  border: none;
  background: none;
  cursor: default;
  min-width: 32px;
}

/* === 14. Product Detail === */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light) 0%, #F2EDE6 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail-placeholder {
  color: var(--primary);
  opacity: 0.15;
}

.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.product-detail-category {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.product-detail-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}
.product-detail-brand {
  font-size: 14px;
  color: var(--text-muted);
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.product-detail-price-cash {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.product-detail-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* === 15. Buy Mode Toggle === */

.buy-mode-toggle {
  display: flex;
  gap: 0;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content;
}
.buy-mode-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.buy-mode-btn:not(:last-child) { border-right: 2px solid var(--primary); }
.buy-mode-btn.active {
  background: var(--primary);
  color: white;
}
.buy-mode-btn:hover:not(.active) { background: var(--primary-light); }

.qty-label {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Qty Selector */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}
.qty-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
  border: none;
}
.qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.qty-input {
  width: 50px;
  height: 42px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  background: var(--surface);
}

/* === 16. Breadcrumb === */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; font-size: 16px; }

/* === 17. Cart === */

.cart-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cart-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 14px 8px;
  border-bottom: 2px solid var(--border);
}
.cart-table td {
  padding: 18px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-table th:nth-child(1), .cart-table td:nth-child(1) { width: 40%; }
.cart-table th:nth-child(2), .cart-table td:nth-child(2) { width: 14%; }
.cart-table th:nth-child(3), .cart-table td:nth-child(3) { width: 18%; }
.cart-table th:nth-child(4), .cart-table td:nth-child(4) { width: 16%; }
.cart-table th:nth-child(5), .cart-table td:nth-child(5) { width: 12%; text-align: right; }
.cart-item-name { font-weight: 600; }
.cart-item-brand { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-weight: 600; white-space: nowrap; }
.cart-item-subtotal { font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.cart-item-remove {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.cart-item-remove:hover {
  background: rgba(230, 57, 70, 0.08);
}

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 28px;
  max-width: 420px;
  margin-left: auto;
}
.cart-total-label { font-size: 14px; color: var(--text-muted); }
.cart-total-amount { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--text); }
.cart-summary .btn { width: 100%; margin-top: 16px; }

.cart-empty {
  text-align: center;
  padding: 72px 16px;
}
.cart-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
}
.cart-empty h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cart-empty p { color: var(--text-muted); margin-bottom: 28px; }

/* === 18. Checkout === */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  background: var(--surface);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-required { color: var(--error); }

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 84px;
}
.checkout-summary h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 18px;
}
.checkout-summary-items { list-style: none; }
.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* === 19. States === */

/* 404 */
.not-found {
  text-align: center;
  padding: 88px 16px;
}
.not-found-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--warm-light);
  color: var(--accent);
}
.not-found h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}
.not-found h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.not-found p { color: var(--text-muted); margin-bottom: 28px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 56px 16px;
  color: var(--text-muted);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

/* Search results header */
.search-results-header {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.search-results-header strong { color: var(--text); }

/* Error state */
.error-state {
  text-align: center;
  padding: 72px 16px;
}
.error-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--warm-light);
  color: var(--accent);
}
.error-state h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.error-state p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* === 20. WhatsApp FAB === */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition);
  z-index: 90;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  color: white;
}

/* === 21. Footer === */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--accent);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
}
.footer-tagline {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 4px;
  line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-links a, .footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.6;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 12px;
  opacity: 0.5;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--accent); }

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.footer-credit:hover { opacity: 0.8; }
.footer-credit a { color: rgba(255,255,255,0.7); }
.footer-credit a:hover { color: var(--accent); }

/* Store info bar */
.store-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.store-info-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.store-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.store-info-item a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.store-info-item a:hover { color: var(--primary); }
.store-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

/* === 22. Responsive === */

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-circle-icon { width: 110px; height: 110px; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .category-circle-icon { width: 120px; height: 120px; }
  .categories-carousel { gap: 20px; }
}

@media (max-width: 767px) {
  .header-inner { height: 60px; }
  .header-nav { display: none; }
  .mobile-menu-toggle { display: flex; }

  .hero { padding: 48px 0 80px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-paw { display: none; }
  .hero-wave svg { height: 40px; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }

  .categories-carousel-wrapper { padding: 0 44px; }
  .category-circle-icon { width: 80px; height: 80px; }
  .category-circle-name { font-size: 10px; max-width: 80px; }
  .categories-carousel { gap: 8px; }
  .carousel-arrow { width: 32px; height: 32px; }

  .listing-layout { grid-template-columns: 1fr; gap: 0; }
  .listing-sidebar { display: none; }
  .category-pills { display: flex; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-name { font-size: 1.4rem; }
  .product-detail-price { font-size: 1.5rem; }

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

  .cart-summary { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .store-info-grid { flex-direction: column; gap: 20px; }

  /* Cart table → stacked */
  .cart-table thead { display: none; }
  .cart-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
  }
  .cart-table td { border: none; padding: 0; }
  .cart-table td:first-child { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 1.75rem; }
  .hero-badge { font-size: 12px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
