/* ========================================
   PawsAI — Design System
   Following Cursor's warm minimalism
   ======================================== */

/* CSS Variables */
:root {
  /* Colors - Warm Minimalism */
  --color-bg: #f2f1ed;
  --color-bg-alt: #e6e5e0;
  --color-bg-dark: #26251e;
  --color-accent: #f54e00;
  --color-success: #1f8a65;
  --color-error: #cf2d56;
  --color-text: #26251e;
  --color-text-muted: rgba(38, 37, 30, 0.55);
  --color-border: rgba(38, 37, 30, 0.1);
  --color-border-strong: rgba(38, 37, 30, 0.2);

  /* Semantic Colors */
  --color-warning: #c08532;
  --color-info: #5b8fc9;

  /* Surfaces */
  --surface-100: #f7f7f4;
  --surface-200: #f2f1ed;
  --surface-300: #ebeae5;
  --surface-400: #e6e5e0;
  --surface-500: #e1e0db;

  /* Typography */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

/* 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;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.text-muted { color: var(--color-text-muted); }

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-surface-400);
  border-color: var(--color-border-strong);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border-strong);
}

.btn-chat {
  background: var(--color-accent);
  color: white;
}

.btn-chat:hover {
  background: #d94400;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 700;
}

.logo-icon {
  font-size: 28px;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cart {
  position: relative;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 78, 0, 0.1) 0%, transparent 70%);
  top: -100px;
  right: 10%;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(31, 138, 101, 0.08) 0%, transparent 70%);
  bottom: -50px;
  left: 20%;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(38, 37, 30, 0.05) 0%, transparent 70%);
  top: 40%;
  right: 40%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

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

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.hero-image {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-img-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.badge-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: var(--color-success);
  border-radius: var(--radius-full);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .hero-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ========================================
   Location Banner
   ======================================== */

.location-banner {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.location-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.location-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========================================
   Sections
   ======================================== */

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

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ========================================
   Filter Controls
   ======================================== */

.filter-controls {
  display: flex;
  gap: var(--space-md);
}

.filter-select {
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* ========================================
   Puppies Grid
   ======================================== */

.puppies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.puppy-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.puppy-card.blocked {
  opacity: 0.6;
}

.puppy-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.puppy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.puppy-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  display: flex;
  gap: var(--space-sm);
}

.puppy-status {
  padding: var(--space-xs) var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
}

.status-available {
  background: var(--color-success);
  color: white;
}

.status-reserved {
  background: var(--color-warning);
  color: white;
}

.status-sold {
  background: var(--color-text);
  color: white;
}

.status-blocked {
  background: var(--color-error);
  color: white;
}

.puppy-blocked-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-error);
  color: white;
  border-radius: var(--radius-sm);
}

.puppy-info {
  padding: var(--space-lg);
}

.puppy-breed {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.puppy-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.puppy-details {
  display: flex;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.puppy-detail {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.puppy-health {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.health-tag {
  padding: 2px var(--space-sm);
  font-size: 11px;
  font-weight: 500;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
}

.puppy-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.price-note {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========================================
   Blocked Alert
   ======================================== */

.blocked-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(207, 45, 86, 0.1);
  border: 1px solid rgba(207, 45, 86, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-error);
}

.blocked-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.blocked-alert strong {
  display: block;
  margin-bottom: var(--space-xs);
}

/* ========================================
   Modal
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 37, 30, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: var(--radius-full);
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.modal-body {
  max-height: 90vh;
  overflow-y: auto;
}

/* Puppy Detail Modal */
.puppy-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.puppy-detail-image {
  aspect-ratio: 1;
}

.puppy-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.puppy-detail-info {
  padding: var(--space-xl);
}

.puppy-detail-header {
  margin-bottom: var(--space-xl);
}

.puppy-detail-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.health-passport {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.health-passport h4 {
  margin-bottom: var(--space-md);
}

.health-passport canvas {
  display: block;
  margin: 0 auto var(--space-md);
}

@media (max-width: 700px) {
  .puppy-detail {
    grid-template-columns: 1fr;
  }

  .puppy-detail-image {
    max-height: 300px;
  }
}

/* ========================================
   Products
   ======================================== */

.product-tabs {
  display: flex;
  gap: var(--space-sm);
  background: var(--color-bg-alt);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
}

.tab-btn {
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

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

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.product-price .original {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

/* Shipping Calculator */
.shipping-calculator {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
}

.shipping-calculator h3 {
  margin-bottom: var(--space-md);
}

.calc-form {
  display: flex;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto var(--space-md);
}

.calc-form .input {
  flex: 1;
}

.shipping-result {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ========================================
   Services
   ======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.service-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-base);
}

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

.service-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.services-list {
  display: grid;
  gap: var(--space-md);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.service-item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.service-item-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.service-item-details {
  font-size: 13px;
  color: var(--color-text-muted);
}

.service-item-distance {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
}

/* ========================================
   Quiz
   ======================================== */

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.quiz-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.quiz-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(245, 78, 0, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.quiz-title {
  margin-bottom: var(--space-sm);
}

.quiz-subtitle {
  color: var(--color-text-muted);
}

.quiz-progress {
  height: 4px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--color-accent);
  transition: width var(--transition-slow);
  width: 0%;
}

.quiz-question {
  margin-bottom: var(--space-xl);
}

.quiz-question h3 {
  margin-bottom: var(--space-lg);
}

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

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

.quiz-option:hover {
  background: var(--color-surface-400);
}

.quiz-option.selected {
  border-color: var(--color-accent);
  background: rgba(245, 78, 0, 0.05);
}

.quiz-option input {
  display: none;
}

.quiz-option-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.quiz-option.selected .quiz-option-indicator {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.quiz-results {
  text-align: center;
}

.result-breeds {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: left;
}

.result-breed {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.result-breed-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.result-breed-name {
  font-size: 20px;
  font-weight: 600;
}

.result-breed-match {
  padding: var(--space-xs) var(--space-sm);
  font-size: 12px;
  font-weight: 600;
  background: var(--color-success);
  color: white;
  border-radius: var(--radius-full);
}

.result-breed-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.result-breed-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

/* ========================================
   Blog
   ======================================== */

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

.blog-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.blog-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-featured img {
  aspect-ratio: 2/1;
}

.blog-content {
  padding: var(--space-lg);
}

.blog-tag {
  display: inline-block;
  padding: 2px var(--space-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(245, 78, 0, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

.blog-featured h3 {
  font-size: 24px;
}

.blog-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.blog-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ========================================
   Contact / WhatsApp
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.contact-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 15px;
}

.contact-features svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.contact-form {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

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

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

.input {
  width: 100%;
  padding: var(--space-md);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.input::placeholder {
  color: var(--color-text-muted);
}

.form-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-md);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--color-bg-dark);
  color: var(--color-bg);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(242, 241, 237, 0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  font-size: 13px;
  color: rgba(242, 241, 237, 0.6);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-bg);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 14px;
  color: rgba(242, 241, 237, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-bg);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(242, 241, 237, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(242, 241, 237, 0.5);
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ========================================
   Chat Widget
   ======================================== */

.chat-widget {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 380px;
  max-height: 600px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.chat-widget.collapsed .chat-body {
  display: none;
}

.chat-widget.collapsed {
  max-height: 60px;
  width: auto;
}

.chat-toggle {
  transform: rotate(180deg);
}

.chat-widget.collapsed .chat-toggle {
  transform: rotate(0deg);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--color-bg-dark);
  color: var(--color-bg);
  cursor: pointer;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
}

.chat-status {
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.chat-messages {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 85%;
}

.chat-message.user {
  align-self: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
}

.message-content {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.user .message-content {
  background: var(--color-bg-dark);
  color: var(--color-bg);
}

.chat-message.bot .message-content {
  background: var(--color-bg-alt);
}

/* Markdown in chat */
.message-content h2 {
  font-size: 16px;
  margin: 8px 0 4px;
  color: var(--color-text);
}

.message-content h3 {
  font-size: 14px;
  margin: 6px 0 4px;
  color: var(--color-text);
}

.message-content h4 {
  font-size: 13px;
  margin: 4px 0 2px;
  color: var(--color-text);
}

.message-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.message-content em {
  font-style: italic;
}

.message-content br + br {
  margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator .message-content {
  display: flex;
  gap: 4px;
  padding: var(--space-md);
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: 0 var(--space-md) var(--space-md);
}

.suggestion-chip {
  padding: var(--space-xs) var(--space-md);
  font-size: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.suggestion-chip:hover {
  background: var(--color-bg-dark);
  color: var(--color-bg);
  border-color: var(--color-bg-dark);
}

.chat-input-container {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.chat-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg);
}

.chat-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.chat-send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.chat-send:hover {
  background: #d94400;
}

.chat-lead-capture {
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.chat-lead-capture p {
  font-size: 13px;
  margin-bottom: var(--space-sm);
}

.chat-lead-capture .input {
  margin-bottom: var(--space-sm);
}

@media (max-width: 500px) {
  .chat-widget {
    right: var(--space-md);
    bottom: var(--space-md);
    left: var(--space-md);
    width: auto;
  }
}

/* ========================================
   Cart Drawer
   ======================================== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-base);
}

.cart-drawer.active {
  right: 0;
}

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

.cart-header h3 {
  font-size: 18px;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.cart-items {
  flex: 1;
  padding: var(--space-md);
  overflow-y: auto;
}

.cart-empty {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--color-text-muted);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.cart-item-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.cart-item-details {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.cart-item-price {
  font-weight: 600;
  font-family: var(--font-mono);
}

.cart-item-remove {
  color: var(--color-error);
  font-size: 13px;
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

#paypal-button-container {
  min-height: 44px;
}

/* ========================================
   Utilities
   ======================================== */

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

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-bg-dark);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all var(--transition-base);
}

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

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

.toast.error {
  background: var(--color-error);
}
