/* Whimsi Creatures Styles - updated with brand color variables */

:root {
  --color-primary: #1CBDAD;      /* Teal */
  --color-accent: #F97260;       /* Coral */
  --color-orange: #FF9B41;
  --color-yellow: #FFDA3E;
  --color-soft-aqua: #BEE5D9;

  --color-text-dark: #2e2e2e;
  --color-background: #fffaf8;
  --color-muted: #ccc;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding: 2rem;
  max-width: 960px;
  margin: auto;
  color: var(--color-text-dark);
  background-color: var(--color-background);
}

header, footer {
  text-align: center;
  margin-bottom: 2rem;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e56e5e;
  text-decoration: none;
  margin-right: 2rem;
  white-space: nowrap;
}

.logo {
  max-height: 60px;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--color-primary);
}

h1, h2, h3 {
  color: var(--color-primary);
}

ul li::marker {
  color: var(--color-yellow);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-orange);
}

.site-footer {
  padding: 2rem;
  background-color: #f9f9f9;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links li {
  display: inline;
}

.footer-links a {
  text-decoration: none;
  color: #555;
}

.footer-links a:hover {
  text-decoration: underline;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-on-scroll.in-view {
  opacity: 1;
  transform: none;
}
.floating {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-background);
}
.hero-background {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-content {
  position: absolute;
  top: 1.0rem;
  left: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.0rem 1rem;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hero h1 {
  font-size: 2.0rem;
  margin-bottom: 0.5rem;
}
.hero .subheading {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  color: var(--color-accent); /* brand-approved dark text */
  font-weight: 600; /* slightly bolder without being too heavy */
}

.featured-products {
  text-align: center;
  padding: 3rem 1rem;
  background: #fffaf6;
}
.featured-product-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.featured-product-card {
  background: #ffffff;
  border: 2px solid #f5e1da;
  padding: 1rem;
  border-radius: 12px;
  max-width: 220px;
  max-height: 220px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
}

.featured-product-card img {
  width: 100%;
  height: auto;
  max-height: 220px;   /* or whatever fits best visually */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.featured-product-card.no-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: #fff8ef;
  color: #888;
  font-style: italic;
}

.main-section-title h1 {
  text-align: center;
}

.paw-print-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.paw-print-divider img {
  max-width: 600px;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.paw-print-divider.in-view img {
  opacity: 1;
  transform: translateY(0);
}

.paw-print-divider:not(.in-view) img {
  visibility: hidden;
}

.about-whimsi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background: #fefcfb;
  gap: 2rem;
}
.about-image img {
  max-width: 480px;
  border-radius: 16px;
}
.about-text {
  max-width: 400px;
  font-size: 1.1rem;
}
.floating-ribbons {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100px;
  background-image: url('/res/images/landing/landing-icon-divider-pawline.jpg');
  background-repeat: repeat-x;
  background-size: contain;
}
.floating-butterfly {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-image: url('/res/images/landing/landing-icon-butterfly.png');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 3;
}
.character-quotes {
  background: #fff;
  padding: 3rem 1rem;
  text-align: center;
}
.quote-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.quote-card {
  max-width: 240px;
  padding: 1rem;
  background: #fdf5ef;
  border-radius: 12px;
}
.quote-card img {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.fun-bits {
  background: #fefaf7;
  padding: 2rem 1rem;
  text-align: center;
}
.fun-bits .icons img {
  width: 40px;
  margin: 0.5rem;
}
.mini-facts p {
  margin: 0.5rem auto;
  font-style: italic;
  max-width: 500px;
}

.subscribe {
  background: #fff9f3;
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
}
.subscribe-content input[type="email"] {
  padding: 0.75rem;
  width: 250px;
  border-radius: 6px;
  border: 1px solid var(--color-muted);
  margin-right: 0.5rem;
}
.subscribe-content button {
  padding: 0.75rem 1.2rem;
  background: var(--color-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
}
.sparkly-envelope img {
  width: 50px;
  height: 50px;
  margin: 1rem auto;
  display: block;
  animation: sparkle 5s infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* ============== */
/* CONTACT STYLES */
/* ============== */
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 6px;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-page textarea {
  resize: vertical;
}

.contact-page label {
  display: block;
  margin-bottom: 0rem;
  font-weight: 600;
}

.contact-page button {
  margin-top: 1.5rem;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-page button:hover {
  background-color: #149c8e;
}

/* ================ */
/* SUBSCRIBE STYLES */
/* ================ */
.page.subscribe {
  background: var(--color-background);
  padding: 2rem;
}

.page.subscribe h1 {
  font-size: 2rem;
  color: var(--color-primary);
}

.page.subscribe p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ================= */
/* NAVIGATION STYLES */
/* ================= */
.site-nav {
  background-color: #ffffff;
  border-bottom: 2px solid #eee;
  font-family: sans-serif;
}

.nav-root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
}

.nav-root > li {
  position: relative;
  margin: 0 1rem;
}

.nav-root a {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: bold;
}

.nav-root a.active,
.nav-root a:hover {
  color: var(--color-accent);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 10;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  padding: 0.5rem 1rem;
  color: var(--color-text-dark);
  font-weight: normal;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: normal;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .site-logo {
    margin-right: 0;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-container {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    margin: 0.1rem 0;
  }

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    display: block;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    min-width: 0;
    background: transparent;
    padding: 0;
  }

  /* Remove hover-based menu opening for mobile */
  /* .dropdown:hover > .dropdown-menu {
    display: block;
  } */
}

/* ========================
   SEARCH + RESULTS LAYOUT
========================= */

.grid-wrapper {
  overflow-x: auto;
  width: 100%;
}

#search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 600px) {
  #search-results {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  #search-results {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.result-card {
  width: 100%;
  max-width: 400px;
  height: 150px;
  display: flex;
  box-sizing: border-box;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.result-card-image {
  height: 150px;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-card-image img {
  height: 140px;
  width: auto;
  object-fit: contain;
  display: block;
}

.result-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.1rem;
  margin-left: 0.5rem;
}

.result-card:hover {
  box-shadow: 0 0 0 3px var(--color-soft-aqua);
}

.result-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.result-card-link h3 {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
}

.result-card-body h3 {
  font-size: 0.8rem;
  margin: 0;
}

.result-card-body p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.buy-button, .status-label {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

.buy-button {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.status-label {
  background: var(--color-muted);
  color: var(--color-text-dark);
}

#search-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  #search-layout {
    flex-direction: row;
  }

  #filter-groups {
    flex: 0 0 220px;
  }

  #search-results-container {
    flex: 1;
  }
}

#filter-groups h4 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-primary);
}

#filter-groups label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.header-search-form {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.header-search-form input[type="text"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  width: 250px;
}

.header-search-form button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================
   CREATURES BIOS INDEX PAGE
=========================== */

.dog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.dog-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-muted);
  background: #fff;
  border-radius: 8px;
  width: 360px;
  height: 200px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.dog-card:hover {
  box-shadow: 0 0 0 3px var(--color-soft-aqua);
}

.dog-card-image {
  flex: 0 0 auto;
  height: 100%;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dog-card-image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.dog-card-body {
  flex: 1;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dog-card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
}

.dog-card-body p {
  font-size: 0.95rem;
  margin: 0;
  color: #444;
}

/* ==========================
   IMAGE CAROUSEL
=========================== */

.image-carousel {
  position: relative;
  background: #fffaf5;
  border-radius: 8px;
  padding: 1rem 0;
}

.carousel-inner {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  height: 320px;
  padding: 0 2.5rem; /* space for buttons */
}

.image-carousel img {
  height: 100%;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
  background: white;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Optional: fallback image styling */
.image-carousel.fallback img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
}

/* ===========================
   MAIN RESPONSIVE NAVIGATION
============================== */

.main-nav {
  background: white;
  border-bottom: 2px solid #eee;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary);
}

.nav-links li.dropdown {
  position: relative;
}

.nav-links li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: white;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 160px;
}

.nav-links li.dropdown:hover .dropdown-menu {
  display: block;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

/* ===========================
   TOGGLE FILTERS FOR MOBILE
============================== */

/* Hide button on desktop */
#toggle-filters {
  display: none;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.2rem;
  }
  
.product-card {
  width: 380px;
  max-width: 98vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(190, 229, 217, 0.12);
  border: 1.5px solid #bee5d9;
  transition: box-shadow 0.18s;
  /* Remove margin-bottom here and use grid/flex gap for outer spacing */
  
  padding: 0; /* Remove internal padding so image sits flush */
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%; /* Ensures child div fills card height */
}

.product-card-title {
   font-size: 1.08rem;
  font-weight: 700;
  color: #28b49c;
  margin-bottom: 0.5rem;
  line-height: 1.15;
  word-break: break-word;
}

.product-card-desc {
  font-size: 0.99rem;
  color: #2e2e2e;
  margin-bottom: 0.75rem;
}

.product-card-thumb {
  width: 96px;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
  z-index: 1;
  background: #f8f8f8;
  transition: opacity 0.12s;
  /* Don't change scale here! */
}

.product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Title at top, summary at bottom */
  padding: 1.2rem 1rem 1.2rem 1.2rem;
}

.product-card-summary {
  font-size: 0.97rem;
  color: #2e2e2e;
  margin-top: auto;
  line-height: 1.3;
  word-break: break-word;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-thumb-container {
  position: relative;
  width: 96px;
  min-width: 96px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-thumb-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 288px; /* 3x the resting size */
  height: auto;
  max-height: 350px; /* Prevent overflow */
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  background: #fff;
  transform: translate(-50%, -50%) scale(0.05); /* Start very small */
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: 
    opacity 0.18s cubic-bezier(0.4, 0.3, 0.2, 1),
    transform 0.21s cubic-bezier(0.4, 0.3, 0.2, 1);
}

.product-thumb-container:hover .product-card-thumb-zoom,
.product-thumb-container:focus-within .product-card-thumb-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Optional: Fade out base thumb on hover for even more focus */
.product-thumb-container:hover .product-card-thumb {
  opacity: 0.1;
}

/* ===========================
   COLECTION PAGES STYLES
============================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.category-card {
  display: block; /* override anchor's default inline */
  background: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.category-card {
  text-align: center;
  text-decoration: none;
  border: 2px solid #eee;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.category-card h2 {
  margin: 0.25rem 0;
  font-size: 1.2rem;
  color: #007c7a;
}

.category-card p {
  font-size: 0.95rem;
  color: #444;
}

.category-grid:has(.category-card:nth-child(1):nth-last-child(1)) {
  justify-items: center;
}

/* ==========================
   STORY CHAPTER CSS
=========================== */

.story-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-muted);
  background: #fff;
  border-radius: 8px;
  width: 360px;
  height: 120px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.story-card-image {
  flex: 0 0 auto;
  height: 100%;
  width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-card-image img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.story-card:hover {
  box-shadow: 0 0 0 3px var(--color-soft-aqua);
}

.story-card-body {
  flex: 1;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-primary);
}

.story-card-body p {
  font-size: 0.95rem;
  margin: 0;
  color: #444;
}

.chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.chapter-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-muted);
  background: #fff;
  border-radius: 8px;
  width: 360px;
  height: 100px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.chapter-card:hover {
  box-shadow: 0 0 0 3px var(--color-soft-aqua);
}

.chapter-card-image {
  flex: 0 0 auto;
  height: 100%;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-card-image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.chapter-card-body {
  flex: 1;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chapter-card-body h3 {
  font-size: 1.1rem;
  margin: 0 0 0.0rem 0;
  color: var(--color-primary);
}

.chapter-card-body p {
  font-size: 0.95rem;
  margin: 0;
  color: #444;
}

/* ==========================
   BREADCRUMBS
=========================== */

.breadcrumb {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb a {
  color: #444;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: #999;
}

/* ==========================
   BREADCRUMBS
=========================== */

.dog-product-breed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.dog-product-breed-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-muted);
  background: #fff;
  border-radius: 8px;
  width: 360px;
  height: 200px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  text-decoration: none;
}

.dog-product-breed-card-image {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.lemonsqueezy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  background: var(--color-primary, #1CBDAD);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 2px 12px rgba(28, 189, 173, 0.10);
  transition: background 0.2s, box-shadow 0.18s, transform 0.12s;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  gap: 0.6rem;
}

.lemonsqueezy-button:hover,
.lemonsqueezy-button:focus {
  background: var(--color-accent, #F97260);
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(28, 189, 173, 0.14);
  text-decoration: none !important;
  transform: translateY(-2px) scale(1.04);
}

.lemonsqueezy-button:active {
  background: var(--color-orange, #FF9B41);
  color: #fff !important;
  transform: scale(0.99);
}

.lemonsqueezy-button svg,
.lemonsqueezy-button img {
  margin-right: 0.5em;
  vertical-align: middle;
}

.lemonsqueezy-button img.button-icon {
  display: inline-block;
  margin-right: 0.6em;
  vertical-align: middle;
  height: 2.0em; /* Matches text line height, but you can use px if preferred */
  width: auto;
}

.terms-checkbox {
  display: flex;
  align-items: center;      /* Vertically centers all children */
  gap: 0.65em;              /* Provides space between checkbox and text */
  margin-bottom: 0.8em;
  font-size: 1.03em;
  color: var(--color-text-dark, #2e2e2e);
  line-height: 1.4;         /* Helps with taller fonts */
}

.terms-checkbox input[type="checkbox"] {
  accent-color: var(--color-primary, #1CBDAD);
  width: 1.13em;
  height: 1.13em;
  margin: 0;                /* Critical: removes any top margin */
  vertical-align: middle;   /* Helps center further */
  position: relative;
  top: 0.05em;              /* Slight downward nudge if needed, tweak as desired */
}

.terms-checkbox a {
  color: var(--color-primary, #1CBDAD);
  text-decoration: underline;
}

.terms-checkbox a:hover {
  color: var(--color-accent, #F97260);
}

.ls-product-warning {
  font-size: 0.95em;
  color: #b53b15;
  margin-top: 0.5em;
  font-style: italic;
}

.no-products-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fffaf7;
  border-radius: 16px;
  padding: 2.2rem 1.3rem 1.8rem 1.3rem;
  margin: 2rem auto 0 auto;
  max-width: 440px;
  box-shadow: 0 2px 14px rgba(190, 229, 217, 0.07);
  border: 1.5px solid #bee5d9;
  text-align: center;
}

.no-products-graphic img {
  display: block;
  margin: 0 auto 1.1rem auto;
}

.no-products-fallback h3 {
  color: var(--color-primary, #1CBDAD);
  margin-top: 0.1rem;
  margin-bottom: 0.8rem;
}

.no-products-fallback p {
  margin-bottom: 1.1rem;
  font-size: 1.08em;
}

.subscribe-fallback-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  justify-content: center;
  width: 100%;
}

.subscribe-fallback-form input[type="email"] {
  padding: 0.75rem;
  border-radius: 7px;
  border: 1px solid #bee5d9;
  flex: 1 1 150px;
  font-size: 1em;
}

.subscribe-fallback-form button {
  padding: 0.75rem 1.4rem;
  background: var(--color-accent, #F97260);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  font-weight: bold;
  font-size: 1em;
  transition: background 0.2s;
}

.subscribe-fallback-form button:hover {
  background: var(--color-primary, #1CBDAD);
}

.no-spam-note {
  color: #bcbcbc;
  font-size: 0.97em;
  margin-top: 0.3em;
}

.thank-you-wrapper {
  max-width: 640px;
  margin: 4em auto;
  padding: 2em;
  background: #fff9f2;
  border-radius: 1em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.thank-you-graphic {
  margin-bottom: 1em;
}

.thank-you-wrapper h1 {
  font-size: 2.2em;
  margin-bottom: 0.3em;
  color: #553c9a;
}

.thank-you-wrapper .lead {
  font-size: 1.3em;
  font-weight: 500;
  margin-bottom: 1.5em;
}

.order-info-block {
  background: #fff3e0;
  border-left: 6px solid #ff9800;
  padding: 1em;
  margin: 2em 0;
  border-radius: 0.5em;
  text-align: left;
}

.order-info-block h2 {
  margin-top: 0;
  font-size: 1.3em;
}

.order-info-block ul {
  list-style: none;
  padding: 0;
}

.order-info-block li {
  margin: 0.6em 0;
  padding-left: 1.4em;
  position: relative;
}

.order-info-block li::before {
  content: "✨";
  position: absolute;
  left: 0;
}

.cta {
  margin-top: 2em;
}

.cta .button {
  background: #ff7bac;
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 2em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1em;
}

.cta a {
  color: #553c9a;
}

.order-id-note {
  margin: 1em 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #553c9a;
  background: #eee3ff;
  padding: 0.6em 1em;
  border-radius: 0.5em;
  display: inline-block;
}

@media (max-width: 799px) {
  #toggle-filters {
    display: block;
  }

  #filter-groups {
    display: none;
    margin-bottom: 1rem;
  }

  #filter-groups.active {
    display: block;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subheading {
    font-size: 1.2rem;
  }

  .hero-content {
    padding: 1.5rem;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-content {
    top: 0.5rem;
    left: 2vw;
    right: 2vw;
    padding: 0.5rem 0.75rem;
    max-width: 96vw;
    border-radius: 12px;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 1.1rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    word-break: break-word;
  }
  
  .hero .subheading {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #e56e5e;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subheading {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block
  }
.nav-links {
    display: none
  }
  .nav-links.show {
    display: flex
  }
}

@media (max-width: 600px) {
  .product-grid {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;            /* <--- Add this if not already present */
    margin: 0;             /* <--- Add this if not already present */
  }
  .product-card {
    width: 98vw;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
 
  .product-card-inner {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  .product-card-thumb {
    width: 100%;
    min-width: 0;
    height: 120px;      /* Adjust for your thumb aspect ratio */
    object-fit: contain;
    border-radius: 16px 0 0 16px;
  }
  .product-card-content {
    padding: 0.8rem 1rem;
    min-width: 0;
    word-break: break-word;
  }

  .product-thumb-container {
    width: 80px;        /* or 30vw for true responsiveness */
    min-width: 60px;
    height: 100%;
  }

  .product-card-thumb-zoom {
    display: none !important;
  }
}

