/* ═══════════════════════════════════════════════════
   Amesbury Pets — PREMIUM "£5,000" Design System
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Outfit', 'Inter', sans-serif;

  /* Core palette — richer & more layered */
  --primary: #801e30;
  --primary-hover: #631725;
  --primary-light: #a33a4e;
  --primary-soft: #faeaed;
  --primary-glow: rgba(128, 30, 48, 0.15);
  --primary-glow-strong: rgba(128, 30, 48, 0.25);
  --secondary: #515151;
  --secondary-soft: #f0f0f0;
  --accent: #b0384f;
  --accent-gold: #C9944A;
  --accent-gold-soft: #FFF8ED;

  /* Backgrounds — layered warmth */
  --bg-main: #F5EFE0;
  --bg-card: #FDFAF5;
  --bg-warm: #F0E8D8;
  --bg-warm-alt: #EDE5D4;
  --bg-hero: linear-gradient(135deg, #F5EFE0 0%, #E8DCC8 50%, #F0E0CC 100%);
  --bg-section-alt: #FAF7F0;
  --bg-dark: #1A1210;
  --bg-dark-card: #241E1C;

  /* Text */
  --text-main: #2C2420;
  --text-muted: #8A7E76;
  --text-light: #B0A69C;
  --text-on-dark: rgba(255, 255, 255, 0.85);

  /* Borders & shadows — more depth */
  --border: #E8DFD2;
  --border-light: #F0EAE0;
  --border-color: #E8DFD2;
  --shadow-xs: 0 1px 3px rgba(44, 36, 32, 0.04);
  --shadow-sm: 0 4px 12px rgba(44, 36, 32, 0.06), 0 1px 3px rgba(44, 36, 32, 0.04);
  --shadow-md: 0 8px 28px rgba(44, 36, 32, 0.08), 0 2px 6px rgba(44, 36, 32, 0.04);
  --shadow-lg: 0 16px 48px rgba(44, 36, 32, 0.12), 0 4px 12px rgba(44, 36, 32, 0.06);
  --shadow-xl: 0 24px 64px rgba(44, 36, 32, 0.16), 0 8px 20px rgba(44, 36, 32, 0.08);
  --shadow-glow: 0 0 40px var(--primary-glow), 0 0 80px rgba(128, 30, 48, 0.05);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 100px;

  /* Transitions — silky smooth */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.35s var(--ease-out);
  --transition-fast: all 0.2s var(--ease-out);
  --transition-slow: all 0.5s var(--ease-out);
  --transition-bounce: all 0.5s var(--ease-bounce);
}

/* ── Pet Theme Overrides — richer palettes ─────── */
body.theme-dog {
  --primary: #801e30;
  --primary-hover: #631725;
  --primary-light: #a33a4e;
  --primary-soft: #faeaed;
  --primary-glow: rgba(128, 30, 48, 0.15);
  --bg-hero: linear-gradient(135deg, #faeaed 0%, #f1d5db 50%, #e6c1c9 100%);
  --accent: #b0384f;
}

body.theme-cat {
  --primary: #7C5CBF;
  --primary-hover: #634AA0;
  --primary-light: #9B7ED8;
  --primary-soft: #f3eeff;
  --primary-glow: rgba(124, 92, 191, 0.15);
  --bg-hero: linear-gradient(135deg, #F3EEFF 0%, #E8DEFF 50%, #EDE4FF 100%);
  --accent: #A78BFA;
}

body.theme-bird {
  --primary: #2E8B9A;
  --primary-hover: #24707D;
  --primary-light: #4AABB8;
  --primary-soft: #E8F6F8;
  --primary-glow: rgba(46, 139, 154, 0.15);
  --bg-hero: linear-gradient(135deg, #E8F6F8 0%, #D4EFF4 50%, #DEF3F6 100%);
  --accent: #5BBFCF;
}

body.theme-small {
  --primary: #3D6B4F;
  --primary-hover: #2F5640;
  --primary-light: #5A8F6E;
  --primary-soft: #eef5f0;
  --primary-glow: rgba(61, 107, 79, 0.15);
  --bg-hero: linear-gradient(135deg, #EEF5F0 0%, #E0EEE4 50%, #E6F1E9 100%);
  --accent: #6BAF82;
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Selection colour */
::selection {
  background: var(--primary-soft);
  color: var(--primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.6s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-main);
}

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

button, input, select, textarea {
  font-family: var(--font-body);
}

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

/* ── Container ─────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Scroll Reveal System ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 400ms; }
.stagger-children > .reveal:nth-child(7) { transition-delay: 480ms; }
.stagger-children > .reveal:nth-child(8) { transition-delay: 560ms; }

/* ── Header & Navigation — Floating Glass Bar ── */
header {
  background: linear-gradient(90deg, rgba(253, 250, 245, 0.8) 0%, rgba(253, 250, 245, 0.5) 60%, rgba(94, 27, 40, 0.5) 100%);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 100;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
}

header.scrolled {
  position: fixed;
  top: 1rem;
  background: linear-gradient(90deg, rgba(253, 250, 245, 0.95) 0%, rgba(253, 250, 245, 0.7) 60%, rgba(94, 27, 40, 0.7) 100%);
  box-shadow: 0 8px 32px rgba(44, 36, 32, 0.1);
}

header.scrolled .header-container {
  height: 58px;
}

header.scrolled .site-logo {
  height: 34px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: height 0.4s var(--ease-out);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.site-logo {
  display: block;
  width: auto;
  height: 44px;
  transition: height 0.4s var(--ease-out);
}

nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

body.mobile-nav-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.mobile-nav-open .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .mobile-menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-link {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  color: #4A2328; /* Brownish burgundy */
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
}

.nav-link:hover {
  color: #2F1116;
}

.nav-link.active {
  color: #541725;
  font-weight: 700;
}

/* Animated underline indicator */
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 100px;
  animation: navDotIn 0.4s var(--ease-bounce) forwards;
}

@keyframes navDotIn {
  from { width: 0; opacity: 0; }
  to { width: 20px; opacity: 1; }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-main);
}

.cart-icon-btn:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(196, 96, 58, 0.35);
}

/* Cart badge bounce */
@keyframes badgeBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-badge.bounce {
  animation: badgeBounce 0.5s var(--ease-bounce);
}

/* ── Section Navigation (SPA) ────────────────── */
.app-section {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons — Premium feel ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on primary buttons */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow), 0 2px 4px rgba(0,0,0,0.08);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--primary-glow-strong), 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ── Hero Wrapper — Full-Bleed Two-Tone Background ── */
.hero-wrapper {
  position: relative;
  background: #f1ebd8; /* Exact Cream base from mockup */
  overflow: hidden; /* Clips the scaled dog image perfectly at the bottom edge */
  padding-top: 7rem; /* Make room for floating header */
}

/* ── Inner Page Adjustments ── */
body.is-inner-page .hero-wrapper {
  min-height: 0;
  padding-bottom: 1rem;
}
body.is-inner-page .hero-wrapper::after {
  display: none;
}
body.is-inner-page .hero {
  display: none;
}
body.is-inner-page .trust-bar {
  display: none;
}

/* The dark burgundy swoop */
.hero-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: #5E1D2D; /* Exact Deep burgundy from mockup */
  clip-path: ellipse(100% 140% at 100% 100%); /* Softer, wider curved edge */
  z-index: 0;
}

/* ── Hero Section — Content Layer ──────── */
.hero {
  background: transparent;
  border-radius: 0;
  padding: 2rem 0 5rem;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: visible;
  box-shadow: none;
  min-height: 550px;
}

/* Decorative orbs disabled for mockup match */

.hero-content {
  max-width: 48%;
  position: relative;
  z-index: 2;
}

/* ───────────────────────────────────────────────────────── */
/*  Theme Specific Overrides                                 */
/* ───────────────────────────────────────────────────────── */
.theme-cat .hero h1 {
  color: #3b2823;
}
.theme-bird .hero h1 {
  color: #2c3a2f;
}
.theme-small .hero h1 {
  color: #3f3123;
}
.theme-fish .hero h1 {
  color: #22374b;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  color: #2F1116; /* Very dark brownish burgundy */
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-family: 'DM Serif Display', serif;
}

.hero p {
  font-size: 1.15rem;
  color: #7A6F62; /* Brownish grey */
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
}

.btn-hero-primary {
  background: #652131; /* Deep burgundy */
  color: white;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-family: var(--font-main);
  box-shadow: 0 12px 24px rgba(101, 33, 49, 0.4);
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: transparent;
  color: #3e121b;
  border: 1px solid #5E1D2D;
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-family: var(--font-main);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-hero-secondary:hover {
  background: rgba(94, 29, 45, 0.08);
}

/* Hero visual — BREAKOUT image style */
.hero-visual {
  position: absolute;
  right: 0;
  bottom: -20px;
  width: 550px;
  height: 550px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  transform: none;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual:hover {
  transform: scale(1.02);
  box-shadow: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Focuses on head/shoulders */
  transform: scale(1.4) translateY(8%); /* Zoom in to head and shoulders */
  transition: transform 0.8s var(--ease-out);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

.hero-visual:hover img {
  transform: scale(1.04) translateY(-4px);
}

.hero-visual.customer-hero {
  right: calc(50% - 50vw);
  bottom: -12px;
  width: min(57vw, 920px);
  height: 610px;
  overflow: hidden;
  clip-path: ellipse(100% 140% at 100% 100%);
  z-index: 1;
}

.hero-visual.customer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  transform: none;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.18));
}

.hero-visual.customer-hero:hover img {
  transform: translateY(-4px);
}

body.theme-dog .hero-wrapper::after {
  display: none;
}

body.theme-dog .hero-decor-tree {
  display: none;
}

/* Custom styles for claymation hero images */
.hero-visual.claymation-hero {
  right: 3%;
  bottom: 0px;
  width: 500px;
  height: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  transform: none;
  border: 6px solid rgba(255, 255, 255, 0.08);
}

.hero-visual.claymation-hero:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.5);
}

.hero-visual.claymation-hero img {
  transform: scale(1.02); 
  filter: none;
  object-fit: cover;
  object-position: center;
}

.hero-visual.claymation-hero:hover img {
  transform: scale(1.08);
}

/* ── Floating Trust Bar — Overlapping Hero ──── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: -3.5rem auto 3rem;
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 1rem;
}

.trust-item {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: transparent;
  color: #5E1D2D;
  border: 1.5px solid #5E1D2D;
  flex-shrink: 0;
  box-shadow: none;
}

.trust-label {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  color: #2F1116;
}

/* ── Pet Switcher ────────────────────────────── */
.pet-switcher-container {
  text-align: center;
  margin: 3rem 0 2.5rem;
}

.switcher-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.pet-switcher {
  display: inline-flex;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  gap: 4px;
}

.theme-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.theme-btn span.switcher-emoji {
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease-bounce);
}

.theme-btn:hover {
  color: var(--text-main);
  background: var(--bg-warm);
}

.theme-btn:hover span.switcher-emoji {
  transform: scale(1.2);
}

.theme-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.theme-btn.active span.switcher-emoji {
  animation: emojiPop 0.4s var(--ease-bounce);
}

@keyframes emojiPop {
  0% { transform: scale(0.6) rotate(-10deg); }
  50% { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Specific active theme colours */
.theme-btn.active[data-theme="dog"] { background: #FDF0EB; color: #C4603A; }
.theme-btn.active[data-theme="cat"] { background: #F3EEFF; color: #7C5CBF; }
.theme-btn.active[data-theme="bird"] { background: #E8F6F8; color: #2E8B9A; }
.theme-btn.active[data-theme="small"] { background: #EEF5F0; color: #3D6B4F; }

/* ── Pet Showcase (Departments) ──────────── */
.pet-showcase {
  margin-top: 3rem;
  margin-bottom: 2.75rem;
}

.pet-showcase-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pet-showcase-kicker {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.pet-showcase-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary);
}

.pet-showcase-copy {
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.pet-showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.pet-showcase-tile {
  position: relative;
  min-height: 160px;
  border: 1px solid rgba(128, 30, 48, 0.12);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #efe7dc 0%, #f9f5ee 100%);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.pet-showcase-tile:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(128, 30, 48, 0.25);
}

.pet-showcase-tile:focus-visible {
  outline: 3px solid rgba(128, 30, 48, 0.2);
  outline-offset: 3px;
}

.pet-showcase-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}

.pet-showcase-tile:hover img {
  transform: scale(1.08);
}

.pet-showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(249, 244, 237, 0.82) 10%, rgba(249, 244, 237, 0.18) 55%, rgba(249, 244, 237, 0.08) 100%);
}

.pet-showcase-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 4px 12px rgba(44, 36, 32, 0.4);
  background: linear-gradient(135deg, rgba(70, 49, 37, 0.55), rgba(70, 49, 37, 0.28));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.3rem 0.8rem 0.4rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(44, 36, 32, 0.16);
  max-width: calc(100% - 1.5rem);
  text-align: right;
}

.pet-showcase-label-compact { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.pet-showcase-label-long { font-size: clamp(1.1rem, 1.6vw, 1.4rem); }
.pet-showcase-tile-wide { grid-column: span 6; min-height: 240px; }
.pet-showcase-tile-centered { grid-column: 4 / span 6; }
.pet-showcase-grid > .pet-showcase-tile:not(.pet-showcase-tile-wide) { grid-column: span 3; }

.pet-showcase-theme-dog img { object-position: left center; }
.pet-showcase-theme-cat img { object-position: center 38%; }
.pet-showcase-theme-bird img {
  object-position: center 54%;
  transform: scale(1.18);
}
.pet-showcase-theme-small img { object-position: center 40%; }
.pet-showcase-theme-fish img { object-position: center 44%; }
.pet-showcase-theme-wildlife img {
  object-position: center 52%;
  transform: scale(1.28);
}
.pet-showcase-theme-poultry img {
  object-position: 38% 72%;
  transform: scale(1.08);
}

.pet-showcase-theme-fish {
  background:
    radial-gradient(circle at 18% 70%, rgba(255, 177, 113, 0.92) 0 16%, transparent 17%),
    radial-gradient(circle at 23% 67%, rgba(255, 95, 95, 0.45) 0 4%, transparent 5%),
    linear-gradient(135deg, #ffd8e8 0%, #ffd2d9 42%, #f4d4ff 100%);
}

.pet-showcase-theme-fish .pet-showcase-overlay,
.pet-showcase-theme-wildlife .pet-showcase-overlay {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.2) 100%);
}

.pet-showcase-theme-wildlife {
  border-color: transparent;
  background:
    radial-gradient(circle at 30% 62%, rgba(127, 94, 56, 0.18) 0 12%, transparent 13%),
    radial-gradient(circle at 38% 56%, rgba(127, 94, 56, 0.14) 0 8%, transparent 9%),
    linear-gradient(135deg, #cfd5ff 0%, #ccd8ff 46%, #dfeaf8 100%);
}

.pet-showcase-theme-wildlife:hover {
  border-color: transparent;
}

.pet-showcase-theme-fish .pet-showcase-label,
.pet-showcase-theme-wildlife .pet-showcase-label {
  color: rgba(255, 255, 255, 0.96);
}

.pet-showcase-theme-poultry {
  background:
    radial-gradient(circle at 78% 26%, rgba(146, 181, 112, 0.18) 0 16%, transparent 17%),
    radial-gradient(circle at 22% 72%, rgba(189, 146, 94, 0.14) 0 14%, transparent 15%),
    linear-gradient(135deg, #efe4cf 0%, #f5ead7 48%, #e8e0c8 100%);
}

.pet-showcase-theme-bird:hover img {
  transform: scale(1.24);
}

.pet-showcase-theme-wildlife:hover img {
  transform: scale(1.34);
}

.pet-showcase-theme-poultry:hover img {
  transform: scale(1.14);
}


/* ── Feature Cards — Premium glassmorphism ─────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: rgba(253, 250, 245, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 223, 210, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Glow effect on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-soft), white);
  color: var(--primary);
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-xs);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Cards (generic) — enhanced ──────────────── */
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.checkout-card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Info Grid ───────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.info-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── About Section ─────────────────────────── */
.about-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-detail-list p,
.prose-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.prose-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-gallery img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--border-light);
  transition: var(--transition);
  cursor: zoom-in;
}

.about-gallery img:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.gallery-modal {
  z-index: 320;
}

.gallery-modal-content {
  position: relative;
  z-index: 10;
  width: min(92vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(24px);
  transition: transform 0.35s var(--ease-bounce);
}

.gallery-modal.active .gallery-modal-content {
  transform: scale(1) translateY(0);
}

.gallery-modal-content img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 2.5rem);
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.gallery-close-modal {
  top: 0.9rem;
  right: 0.9rem;
}

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

.chatbot-shell {
  position: fixed;
  right: 1.5rem;
  bottom: 6rem;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: var(--shadow-lg);
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-accent);
  font-weight: 700;
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: translateY(-3px);
}

.chatbot-panel {
  width: min(92vw, 380px);
  background: rgba(253, 250, 245, 0.98);
  border: 1px solid rgba(128, 30, 48, 0.12);
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chatbot-shell.open .chatbot-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1rem 0.8rem;
  background: linear-gradient(180deg, rgba(128, 30, 48, 0.08), rgba(128, 30, 48, 0));
}

.chatbot-header h3 {
  font-size: 1.25rem;
  margin: 0.1rem 0 0;
}

.chatbot-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.chatbot-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-close:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.chatbot-body {
  max-height: 360px;
  overflow-y: auto;
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-message {
  display: flex;
}

.chatbot-message-user {
  justify-content: flex-end;
}

.chatbot-message-assistant {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 88%;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.chatbot-message-user .chatbot-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chatbot-message-assistant .chatbot-bubble {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1rem 0.9rem;
}

.chatbot-prompt-chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-prompt-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.chatbot-form {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1rem 1rem;
  display: grid;
  gap: 0.8rem;
}

.chatbot-form textarea {
  width: 100%;
  resize: none;
  min-height: 72px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 0.85rem 0.95rem;
  outline: none;
  color: var(--text-main);
  transition: var(--transition);
}

.chatbot-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.chatbot-send {
  width: 100%;
}

.chatbot-form.is-loading .chatbot-send {
  opacity: 0.7;
  pointer-events: none;
}

/* ── Team Cards — Premium circular ────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.team-photo-graham {
  object-position: center 35%;
}

.team-photo-rory {
  object-position: center 28%;
}

.team-photo-cody {
  object-position: center 32%;
}

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

.team-card-body {
  padding: 1.75rem;
}

.team-card-body h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.team-role {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin: 0.4rem 0 0.85rem;
}

.team-card-body p:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Map ──────────────────────────────────────── */
.map-embed-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  min-height: 360px;
}

.map-embed-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* ── Shop Controls ────────────────────────────── */
.shop-header {
  margin-bottom: 2rem;
}

.shop-header h2 {
  font-size: 2.4rem;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(253, 250, 245, 0.7);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--bg-main);
  outline: none;
  font-size: 0.92rem;
  transition: var(--transition);
  color: var(--text-main);
}

.search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: white;
}

.search-wrapper input::placeholder {
  color: var(--text-light);
}

.search-wrapper .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.2rem;
}

.filters-wrapper {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.category-filter-btn,
.type-filter-btn {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.category-filter-btn:hover,
.type-filter-btn:hover {
  background: white;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.category-filter-btn.active,
.type-filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ── Product Grid — Premium cards ──────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-bounce);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px var(--primary-glow);
  z-index: 10;
}

.product-visual {
  height: 220px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

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

.product-info {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.product-rating .stars {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.product-rating .reviews-count {
  color: var(--text-light);
  font-size: 0.78rem;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-accent);
}

.add-fast-btn {
  padding: 0.55rem 1.2rem !important;
  font-size: 0.82rem !important;
  border-radius: var(--radius-full) !important;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* ── Product Modal — Polished ─────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 18, 16, 0.5);
  backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  width: 90%;
  max-width: 740px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  z-index: 10;
  transform: scale(0.9) translateY(24px);
  transition: transform 0.5s var(--ease-bounce);
}

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

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-muted);
  z-index: 20;
  box-shadow: var(--shadow-sm);
}

.close-modal:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: rotate(90deg) scale(1.1);
}

.modal-left {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.modal-left img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.08));
}

.modal-right {
  padding: 2.25rem;
}

.modal-right h2 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
}

.modal-price-val {
  font-family: var(--font-accent);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.modal-section-title {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.options-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.option-pill {
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  color: var(--text-muted);
}

.option-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.option-pill.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.stock-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stock-item {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
}

.stock-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-item.in-stock .dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.stock-item.out-of-stock .dot {
  background: #ef4444;
}

.qty-add-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1.5rem;
}

.qty-input {
  width: 72px;
  padding: 0.65rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.qty-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── Cart Sidebar — Enhanced ─────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 16, 0.4);
  backdrop-filter: blur(12px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-out);
  border-left: 1px solid var(--border);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-size: 1.4rem;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-visual {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-warm);
}

.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.15rem; }
.cart-item-option { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--primary); margin-top: 0.3rem; }

.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item-quantity-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-main);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-item-quantity-controls button:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.empty-cart-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* ── Forms — Premium floating style ──────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.special-order-panel {
  margin-bottom: 1.4rem;
  padding: 1.2rem 1.25rem 1.3rem;
  border: 1px solid rgba(128, 30, 48, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 234, 237, 0.76));
  box-shadow: 0 10px 24px rgba(44, 36, 32, 0.05);
}

.special-order-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.special-order-panel-kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.special-order-panel h4 {
  margin: 0;
  font-size: 1.25rem;
}

.special-order-panel-copy {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.special-order-fields {
  margin-top: 0.25rem;
}

.special-order-message-group {
  margin-top: 0.25rem;
}

.special-order-message-group input {
  width: 100%;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 68px;
  height: 38px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #ddd3c7;
  box-shadow: inset 0 0 0 1px rgba(44, 36, 32, 0.08);
  transition: var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px rgba(44, 36, 32, 0.18);
  transition: var(--transition-bounce);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(30px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ── Checkout ───────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  margin-top: 2rem;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ── Confirmation Receipt ────────────────── */
.receipt-card {
  max-width: 520px;
  margin: 2rem auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.receipt-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 2.5rem;
  text-align: center;
}

.receipt-header h2 {
  color: white;
  font-size: 1.6rem;
  margin-top: 0.5rem;
}

.checkmark {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(8px);
}

.receipt-body {
  background: var(--bg-card);
  padding: 2rem;
}

.receipt-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.receipt-details-table td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-light);
}

.receipt-details-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.barcode-wrapper {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

/* ── Admin ──────────────────────────────────── */
.order-status-badge {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-ready-for-pickup { background: #d1fae5; color: #065f46; }
.status-picked-up { background: #dbeafe; color: #1e40af; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ── Toast Notification ──────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-main);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: var(--transition-bounce);
  pointer-events: none;
  white-space: nowrap;
}

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

/* ── Footer — Premium redesign ───────────── */
footer {
  background: linear-gradient(180deg, #1A1210 0%, #0F0B09 100%);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle pattern overlay */
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(128, 30, 48, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(201, 148, 74, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding: 4.5rem 0 3rem;
  position: relative;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  background: rgba(176, 56, 79, 0.18);
  color: #fff;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.social-icon-sm {
  width: 16px;
  height: 16px;
}

.social-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 44px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-links h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
}

/* ── Back to Top Button ──────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ── Animations ─────────────────────────────── */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-warm) 25%, var(--bg-warm-alt) 50%, var(--bg-warm) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Section Dividers ──────────────────────── */
.section-alt {
  background: var(--bg-section-alt);
  margin: 0 -2rem;
  padding: 3rem 2rem;
  border-radius: 0;
}

/* ── Hero Decorative Assets ── */
.hero-decor-tree {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 400px;
  height: 600px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}
.hero-decor-tree img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.hero-decor-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}
.hero-decor-grass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-wrapper::after {
    width: 100%;
    height: 380px;
    top: auto;
    bottom: 0;
    clip-path: ellipse(150% 100% at 50% 100%);
  }

  .hero {
    flex-direction: column;
    padding: 3rem 1.5rem 0;
    text-align: center;
  }

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

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero p {
    font-size: 1.15rem;
    max-width: 100%;
    margin: 0 auto 2rem;
  }

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

  .hero-visual {
    position: relative;
    right: auto;
    bottom: -3rem;
    width: 360px;
    height: 360px;
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-visual.claymation-hero {
    width: 320px;
    height: 320px;
    bottom: 2rem;
    border-radius: 20px;
    margin: 2rem auto 0;
  }

  .hero-decor-tree {
    right: -30px;
    width: 250px;
    height: 350px;
    opacity: 0.6;
  }
  
  .hero-decor-grass {
    height: 80px;
  }

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

  .trust-bar {
    flex-direction: column;
  }

  .about-grid,
  .contact-layout,
  .team-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

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

  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .pet-switcher {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
  }

  .pet-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-showcase-tile,
  .pet-showcase-tile-wide,
  .pet-showcase-grid > .pet-showcase-tile:not(.pet-showcase-tile-wide) {
    grid-column: span 1;
    min-height: 210px;
  }

  .header-container {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
    order: 2;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
  }

  nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.5rem 0 0.25rem;
  }

  body.mobile-nav-open nav {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.72);
  }

  .nav-link.active {
    border-color: rgba(122, 29, 47, 0.16);
  }

  .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 1rem 1rem 0;
    margin: 1rem 0;
    border-radius: var(--radius-lg);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .checkout-card {
    padding: 1.5rem;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

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

  .special-order-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .pet-showcase-title {
    font-size: 1.95rem;
  }

  .pet-showcase-grid {
    grid-template-columns: 1fr;
  }

  .pet-showcase-tile,
  .pet-showcase-tile-wide,
  .pet-showcase-grid > .pet-showcase-tile:not(.pet-showcase-tile-wide) {
    min-height: 180px;
  }

  .pet-showcase-label {
    right: 0.85rem;
    bottom: 1rem;
    font-size: 2rem;
    padding: 0.38rem 0.72rem 0.48rem;
  }

  .pet-showcase-label-compact { font-size: 1.65rem; }
  .pet-showcase-label-long { font-size: 1.32rem; }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
  }

  .chatbot-shell {
    right: 1rem;
    left: 1rem;
    bottom: 5.5rem;
    align-items: stretch;
  }

  .chatbot-toggle {
    justify-content: center;
  }

  .chatbot-panel {
    width: 100%;
  }
}

/* ── Scroll shadows for overflow containers ─── */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Broken image fallback styling */
img[src]::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-warm);
}
