/* Livehappypet theme layer.
   Loaded last on every page (after each page's own <style>), so it owns the design tokens,
   the type system and the shared chrome: announcement bar, nav, buttons, product cards, footer.
   Page-specific layout stays in each page. Colors come from the logo: sky aqua, pine teal,
   cat orange, a touch of "LIVE" lime. */

:root {
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ink: #10292d;          /* pine teal, near black: text, footer, primary buttons */
  --ink-2: #39514f;        /* secondary text, 8.3:1 on white */
  --ink-3: #56706f;        /* meta text, 5.1:1 on white */
  --lagoon: #0f6a70;       /* links and accents on light grounds, 6.3:1 on white */
  --lagoon-deep: #0a5156;
  --aqua: #7fc4c1;         /* the sky in the logo; drench surfaces only */
  --aqua-soft: #cdeae7;
  --mist: #eef6f5;         /* tinted section ground */
  --line: #d4e4e2;
  --marigold: #f5a623;     /* the cat's orange; always carries ink text */
  --marigold-deep: #e48f0c;
  --leaf: #8bc34a;         /* the "LIVE" lime; decoration only */
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 41, 45, .06), 0 4px 12px rgba(16, 41, 45, .05);
  --shadow-md: 0 12px 32px rgba(16, 41, 45, .12);
  --shadow-lg: 0 24px 60px rgba(16, 41, 45, .16);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ridge-h: clamp(28px, 4vw, 56px);

  /* legacy token names still used by page-level CSS */
  --teal: var(--lagoon);
  --teal-dark: var(--lagoon-deep);
  --dark: var(--ink);
  --light: var(--mist);
  --warm-bg: var(--mist);
  --orange: var(--marigold);
  --lime: var(--leaf);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
h1 { letter-spacing: -0.03em; }
p, li { text-wrap: pretty; }
::selection { background: var(--aqua-soft); color: var(--ink); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 2px;
  border-radius: 4px;
}
:where(input, select, textarea) { font-family: var(--font-body); }

/* Content never waits for JavaScript: the old reveal-on-scroll classes start hidden. */
.reveal, .reveal-left, .reveal-right, [data-anim], .product-card, .category-card { opacity: 1; transform: none; }

/* Short labels over every section read as template scaffolding. */
.section-label, .section-eyebrow { display: none !important; }

/* ---------- announcement bar ---------- */
.announcement-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-body);
  font-size: .85rem;
}
.announcement-bar strong { color: var(--marigold); font-weight: 700; letter-spacing: .02em; }
.announcement-inner > span:first-child:not(:only-child) { display: none; } /* the truck emoji */
.announcement-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.announcement-link:hover { opacity: 1; color: var(--aqua); }

/* ---------- navigation (home/blog .nav and shop/product .navbar) ---------- */
.nav, .navbar {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.nav.scrolled, .navbar.scrolled { box-shadow: 0 8px 24px rgba(16, 41, 45, .07); }
.nav .logo img, .navbar .logo img { transition: transform .35s var(--ease-out); }
.nav .logo:hover img, .navbar .logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  letter-spacing: 0;
}
.nav-links a:hover { color: var(--lagoon); }
.nav-links a::after { background: var(--marigold); height: 3px; border-radius: 2px; }
.nav-cta, .nav-links .nav-cta, .mobile-drawer .drawer-cta {
  background: var(--ink);
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: .62rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: .92rem;
  letter-spacing: 0;
  box-shadow: none;
  transition: background .2s, transform .2s var(--ease-out);
}
.nav-cta:hover, .nav-links .nav-cta:hover { background: var(--lagoon); color: #fff !important; transform: translateY(-1px); }
.nav-links .nav-cta::after { display: none !important; }
.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: .4rem;
}
.dropdown-menu a { border-radius: 9px; padding: .6rem .9rem; font-weight: 600; }
.dropdown-menu a:hover { background: var(--mist); color: var(--lagoon); }
.nav-cart {
  color: var(--ink);
  width: 42px;
  height: 42px;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.nav-cart:hover { background: var(--mist); }
.nav-cart [data-cart-count] {
  top: 2px;
  right: 0;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 800;
}
@media (hover: hover) and (min-width: 769px) {
  .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge over the gap */
}
.hamburger span { background: var(--ink); }
.mobile-drawer:not(.open) { box-shadow: none; }
.mobile-menu a, .mobile-drawer a { font-family: var(--font-display); color: var(--ink); }
.mobile-menu a:hover, .mobile-drawer a:hover { color: var(--lagoon); }

/* ---------- breadcrumbs ---------- */
.breadcrumb, .breadcrumb ol { color: var(--ink-3); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--lagoon); }
.breadcrumb .current, .breadcrumb li:last-child { color: var(--ink); }

/* ---------- buttons ---------- */
.btn-primary, .btn-add-cart, .product-card-btn, .add-btn, .cta-btn, .lhp-btn,
.category-btn, .btn-secondary, .btn-buy-now, .lhp-btn-outline {
  border-radius: 12px;
  font-family: var(--font-display);
  letter-spacing: 0;
}
.btn-add-cart, .product-card-btn, .add-btn {
  background: var(--ink);
  color: #fff;
  border: 0;
  box-shadow: none;
}
.btn-buy-now { border: 0; }
.btn-primary { color: var(--ink); } /* orange or white grounds on every page that uses it */
.btn-add-cart:hover, .product-card-btn:hover, .add-btn:hover {
  background: var(--lagoon);
  color: #fff;
  box-shadow: none;
}
.btn-buy-now, .lhp-btn {
  background: var(--marigold);
  color: var(--ink);
}
.btn-buy-now:hover, .lhp-btn:hover { background: var(--marigold-deep); color: var(--ink); box-shadow: none; }
.lhp-btn-outline { color: var(--ink); border-color: var(--ink); }
.lhp-btn-outline:hover { background: var(--ink); color: #fff; }

/* chips and filters: rounded rectangles, never pills */
.filter-pill, .filter-btn, .category-pill, .blog-filter, .chip, .chips a {
  border-radius: var(--radius-sm);
}
.filter-pill.active, .filter-btn.active, .blog-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- product tiles (home, shop, gifts, related) ---------- */
.product-card, .related-card {
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
  transition: background .3s, border-color .3s, transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.product-card:hover, .related-card:hover {
  background: #e6f2f0;
  border-color: var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card .product-img, .product-card .product-card-img-wrap { background: transparent; }
.product-card img, .related-card img { mix-blend-mode: multiply; } /* white studio backgrounds melt into the tile */
.product-card-img, .product-card .product-img img, .related-card-img { transition: transform .5s var(--ease-out); }
.product-card:hover .product-card-img, .product-card:hover .product-img img, .related-card:hover .related-card-img { transform: scale(1.04); }
.related-card-img { background: transparent; }
.product-card h3, .product-card .product-name, .related-card h3, .related-card h4 {
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ink);
}
.product-card h3 a:hover { color: var(--lagoon); }
.product-price .current, .product-card .price, .related-price, .product-card .product-price {
  font-family: var(--font-display);
  color: var(--ink);
}
.product-badge, .sale-badge {
  background: var(--marigold);
  color: var(--ink);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}
/* tiles on a tinted section switch to white so they still read as tiles */
.product-grid .product-card, main .grid .product-card { background: #fff; border-color: var(--line); }
.product-grid .product-card:hover, main .grid .product-card:hover { background: #fff; border-color: var(--aqua); }
.related-section { background: var(--mist); }
.related-section .related-card { background: #fff; }
.related-section .related-card:hover { background: #fff; }

/* ---------- section headings ---------- */
.section-title, .section-header h2 { color: var(--ink); font-weight: 750; }
.section-header p, .section-subtitle { color: var(--ink-3); }

/* ---------- blog article chrome ---------- */
.blog-hero-image { border-radius: 22px; }
.blog-hero-image::after {
  border-radius: 22px;
  background: linear-gradient(to top, rgba(16, 41, 45, .86) 0%, rgba(16, 41, 45, .35) 55%, rgba(16, 41, 45, 0) 100%);
}
.blog-category {
  background: var(--marigold);
  color: var(--ink);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
.blog-hero-content a, .blog-meta a, .article-meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.article-content h2 { font-weight: 750; color: var(--ink); }
.article-content h3 { color: var(--ink); }
.article-content p, .article-content li { color: #2f4546; }
.article-content a:not([class]) {
  color: var(--lagoon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(15, 106, 112, .4);
  text-underline-offset: 3px;
}
.article-content a:not([class]):hover { text-decoration-color: currentColor; }
.toc-card { background: var(--mist); border-radius: 18px; }
.toc-card h4, .toc-card h3 {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1rem;
  color: var(--ink);
}
.toc-card li a { color: var(--ink-2); }
.toc-card li a::before { color: var(--lagoon); }
.cta-box {
  background: var(--ink);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.cta-box h3 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .82); }
.cta-btn { background: var(--marigold); color: var(--ink); border-radius: 12px; }
.cta-btn:hover { background: var(--marigold-deep); color: var(--ink); }
.related-articles .related-card { background: var(--mist); border: 1px solid transparent; padding: 22px; }
.related-articles .related-card:hover { border-color: var(--lagoon); box-shadow: none; }
.related-cat {
  background: #fff;
  color: var(--lagoon);
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.related-read { color: var(--lagoon); }
.reading-progress { background: var(--marigold); }
.article-content table { border-collapse: collapse; }
.article-content th { background: var(--mist); color: var(--ink); font-family: var(--font-display); }
.article-content blockquote { border-left: 0; background: var(--mist); border-radius: 14px; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], select, textarea {
  border-color: var(--line);
}

/* ---------- footer: the pine ridge from the logo rises out of it ---------- */
body > footer, body > .footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, .78); }
body > footer::before, body > .footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: var(--ridge-h);
  background: var(--ink);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 56'%3E%3Cpath d='M0 56V40l38-17 30 12 44-26 40 22 26-9 34 18 30-14 18 6 8-10 8 10 6-6 9 11 7-8 10 12 32-15 44 19 40-27 52 30 26-10 36 14 24-7 6-9 7 9 6-11 7 11 5-6 8 10 30-12 40 16 29-12 26 11V56z'/%3E%3C/svg%3E") bottom left / auto 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 56'%3E%3Cpath d='M0 56V40l38-17 30 12 44-26 40 22 26-9 34 18 30-14 18 6 8-10 8 10 6-6 9 11 7-8 10 12 32-15 44 19 40-27 52 30 26-10 36 14 24-7 6-9 7 9 6-11 7 11 5-6 8 10 30-12 40 16 29-12 26 11V56z'/%3E%3C/svg%3E") bottom left / auto 100% repeat-x;
}
body > footer h3, body > footer h4, body > .footer h3, body > .footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
body > footer a, body > .footer a { color: rgba(255, 255, 255, .78); }
body > footer a:hover, body > .footer a:hover { color: var(--aqua); }
.footer-social a { border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); color: #fff; }
.footer-social a:hover { background: var(--aqua); color: var(--ink); transform: none; }
.footer-social a:hover svg { fill: var(--ink); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .12) !important; color: rgba(255, 255, 255, .6); }
.footer-newsletter { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.footer-newsletter p { color: rgba(255, 255, 255, .74); }
body > .footer .footer-mail { color: var(--aqua); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body > .footer .footer-mail:hover { color: #fff; }

/* search fields on the blog index */
.blog-search input, input[type="search"] { border-radius: 12px; }

@media (max-width: 768px) {
  /* links collapse into the menu: keep the cart beside the hamburger, not floating mid-bar */
  .nav-inner > .nav-cart, .navbar .container > .nav-cart { margin-left: auto; margin-right: .5rem; }
  .navbar .nav-links:not(.open) { box-shadow: none; } /* off-canvas menu leaked its shadow onto the page edge */
  /* the 21:9 article hero is too short on phones and pushed the title up under the nav */
  .blog-hero { padding: 0 16px; }
  .blog-hero-image { aspect-ratio: auto; min-height: 400px; border-radius: 18px; }
  .blog-hero-image::after { border-radius: 18px; }
  .blog-hero-content { left: 0; right: 0; padding: 22px 20px; }
  .blog-hero-content h1 { font-size: clamp(1.65rem, 7.4vw, 2.2rem); }
  .blog-meta { gap: 8px 16px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
