/* Reset and base styles */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #1d1d1f;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.secondary-text {
  color: #6e6e73;
}

/* Typography scale */
h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px 0;
  line-height: 1.1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
}
h2 {
  font-size: 40px;
  font-weight: 600;
  margin: 120px 0 40px 0;
  color: #1d1d1f;
}

@media (max-width: 768px) {
  h2 {
    font-size: 28px;
    margin: 64px 0 24px 0;
  }
}
h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 0 12px 0;
}
h4, h5, h6, p, li, td, th {
  font-weight: 400;
  color: #6e6e73;
}

/* Layout and max content width */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px;
}

/* Navigation */
nav.top-nav {
  height: 60px;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid #eee;
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  height: 60px;
  align-items: center;
}
nav.top-nav ul li a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  transition: color 0.25s ease;
}
nav.top-nav ul li a:hover {
  color: #0071e3;
}

/* Buttons */
.btn-primary {
  background: #0071e3;
  color: white;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  border: none;
  font-size: 17px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  user-select: none;
}
.btn-primary:hover {
  background: #0077ED;
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid #d2d2d7;
  background: transparent;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 17px;
  color: #1d1d1f;
  cursor: pointer;
  transition: background 0.25s ease;
  user-select: none;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover {
  background: #f5f5f7;
}

/* Cards */
.card {
  border-radius: 18px;
  border: 1px solid #eee;
  padding: 32px;
  background: white;
  transition: all 0.25s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
}

/* Hero Section - center & fade in animation applied on h1 */
section.hero {
  text-align: center;
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Image placeholders consistent style */
.placeholder-image {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #f5f5f7;
  display: block;
  width: 100%;
}

/* Footer */
footer {
  font-size: 14px;
  border-top: 1px solid #eee;
  padding: 2rem 0;
  text-align: center;
  color: #a1a1a6;
  background: #fff;
}

/* Form styling */
form input, form textarea, form button {
  font-family: inherit;
  font-size: 17px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}
form button {
  background-color: #0071e3;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
form button:hover {
  background-color: #005bb5;
}

/* Fade-in scroll animation class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 28px;
    margin: 64px 0 24px 0;
  }
  main {
    padding: 64px 15px;
  }
  nav.top-nav ul {
    flex-direction: column;
    padding: 0.5rem 0;
    height: auto;
  }
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  .featured-product, .core-values {
    flex-direction: column !important;
    align-items: center;
  }
  .featured-product > div, .core-values > div {
    max-width: 100% !important;
    margin-bottom: 40px;
  }
}


/* --- PurrPellets Nav + Hero Patch (Unified) --- */

/* NAV: left brand + right menu, Apple-like */
nav.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

nav.top-nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  height: 60px;
}

nav.top-nav .brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* menu to the right (override the old center layout) */
nav.top-nav ul {
  justify-content: flex-end;
}

/* HERO: split layout */
section.hero {
  text-align: left;
  padding: 90px 20px 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 650px;
}

.hero-copy .secondary-text {
  font-size: 22px;
  margin: 18px 0 26px;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

/* small benefits row (optional) */
.hero-badges {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: #6e6e73;
  font-size: 15px;
}

.hero-badges .badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.hero-badges .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d1d1f;
  opacity: 0.25;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  section.hero {
    text-align: center;
  }
  .hero-copy h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy .secondary-text {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
}

/* Mobile nav: keep readable */
@media (max-width: 768px) {
  nav.top-nav {
    padding: 0 14px;
  }
  nav.top-nav ul {
    flex-direction: row;
    gap: 14px;
    padding: 0;
    height: 60px;
  }
}

/* --- PurrPellets Geek Hero Patch --- */

/* NAV: keep your sticky glass look, but align brand left + menu right */
nav.top-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 20px;
}
nav.top-nav ul{
  justify-content:flex-end !important;
}

/* HERO PRO (Apple/Dyson-style) */
.hero.hero-pro{
  padding: 90px 20px 70px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.hero-pro__grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items:center;
}

/* override global h1 center styles for this hero only */
.hero-pro__title{
  font-size: 64px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0 0 14px 0;
  max-width: 720px;
  text-align: left;
  opacity: 1; /* prevent double fade issues */
  animation: none;
}

.hero-pro__eyebrow{
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
  color: #6e6e73;
}

.hero-pro__sub{
  font-size: 22px;
  margin: 0 0 18px 0;
  max-width: 680px;
}

.hero-pro__bullets{
  list-style:none;
  padding:0;
  margin: 0 0 22px 0;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: #1d1d1f;
}
.hero-pro__bullets li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  font-weight: 500;
}
.hero-pro__bullets .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1d1d1f;
  opacity: 0.25;
  margin-top: 9px;
}

.hero-pro__cta{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom: 14px;
}

.hero-pro__fine{
  font-size: 14px;
  margin: 0;
}

.hero-pro__media{
  display:flex;
  justify-content:center;
}

.hero-pro__image{
  width: 100%;
  height: auto;
  border-radius: 18px;
  display:block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

/* Responsive */
@media (max-width: 900px){
  .hero.hero-pro{
    text-align:center;
    padding: 72px 16px 48px;
  }
  .hero-pro__grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-pro__title{
    font-size: 42px;
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }
  .hero-pro__sub{
    font-size: 18px;
    margin-left:auto;
    margin-right:auto;
  }
  .hero-pro__bullets{
    align-items:flex-start;
    max-width: 560px;
    margin-left:auto;
    margin-right:auto;
    text-align:left;
  }
  .hero-pro__cta{
    justify-content:center;
  }
}

/* --- PurrPellets Mobile Nav + Spacing Patch --- */

/* Make top nav always single-line on mobile (no wrapping) */
nav.top-nav {
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

/* Keep UL single row + allow horizontal scroll instead of wrapping */
nav.top-nav ul{
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  gap: 14px !important;
  height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide scrollbar (still scrollable) */
nav.top-nav ul::-webkit-scrollbar{ height: 0; }
nav.top-nav ul{ scrollbar-width: none; }

/* Keep links readable and not too big */
nav.top-nav ul li a{
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 10px 6px;
  display: inline-block;
}

/* Give the brand/logo area a fixed width so menu has room */
nav.top-nav .brand{
  flex: 0 0 auto;
  min-width: 110px;
}

/* Spacing: comfortable on all screens */
@media (max-width: 900px){
  main{
    padding: 70px 16px;
  }
}

/* If you use the geek hero */
@media (max-width: 900px){
  .hero.hero-pro{
    padding: 68px 16px 46px;
  }
  .hero-pro__sub{
    line-height: 1.55;
  }
  .hero-pro__cta a{
    min-height: 44px; /* finger-friendly */
  }
}

/* Very small screens (iPhone SE etc.) */
@media (max-width: 380px){
  nav.top-nav ul{
    gap: 10px !important;
  }
  nav.top-nav ul li a{
    font-size: 13px;
    padding: 10px 4px;
  }
}

/* --- FIX: nav covered / not clickable (force top layer) --- */
header{
  position: sticky;
  top: 0;
  z-index: 999999;
}

nav.top-nav{
  position: sticky;
  top: 0;
  z-index: 999999;
  isolation: isolate;              /* create its own stacking context */
  transform: translateZ(0);        /* iOS/Safari hit-test fix */
  pointer-events: auto;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

nav.top-nav *{
  pointer-events: auto;
}

/* Ensure main content never sits above header */
main, section.hero{
  position: relative;
  z-index: 0;
}


/* --- DEBUG/FIX: prevent invisible overlays from blocking nav --- */
body::before, body::after,
main::before, main::after,
section::before, section::after {
  pointer-events: none !important;
}

.fade-in, .fade-in.visible {
  pointer-events: auto;
}

/* If any full-screen overlay exists, make it not block clicks by default */
[class*="overlay"], [id*="overlay"],
[class*="modal"], [id*="modal"],
[class*="backdrop"], [id*="backdrop"]{
  pointer-events: none !important;
}


/* --- FINAL: make nav fixed (most reliable on iOS) --- */
nav.top-nav{
  position: fixed !important;
  left: 0;
  right: 0;
  top: 0;
}

body{
  padding-top: 60px;
}


/* --- Mobile Hamburger Navigation --- */

.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size:24px;
  cursor:pointer;
}

@media (max-width: 768px){

  nav.top-nav{
    justify-content: space-between;
  }

  .nav-toggle{
    display:block;
  }

  nav.top-nav ul{
    position:absolute;
    top:60px;
    left:0;
    right:0;
    background:white;
    flex-direction:column !important;
    align-items:center;
    display:none;
    padding:20px 0;
    box-shadow:0 8px 30px rgba(0,0,0,0.05);
  }

  nav.top-nav ul.open{
    display:flex;
  }

  nav.top-nav ul li a{
    font-size:18px;
    padding:10px 0;
  }
}


/* Safety: never hide content completely on small screens */
@media (max-width: 480px){
  .fade-in { opacity: 1; transform: none; }
}

/* --- FIX: Mobile menu shows only one item (force full dropdown) --- */
@media (max-width: 768px){
  nav.top-nav{
    position: sticky;
    top: 0;
    z-index: 999999;
    justify-content: space-between;
  }

  /* IMPORTANT: anchor dropdown positioning */
  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }

  /* Make nav a positioning context for the dropdown */
  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }

  /* real fix */
  nav.top-nav{
    position: sticky;
    top: 0;
  }
  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  /* Create containing block */
  nav.top-nav{
    position: sticky;
  }
  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  nav.top-nav{
    position: sticky;
  }

  /* Actually set relative for dropdown */
  nav.top-nav{
    position: sticky;
    top:0;
  }
  nav.top-nav{
    position: relative !important;
  }

  /* Hide menu by default on mobile */
  nav.top-nav ul{
    display: none !important;
    position: absolute !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;

    flex-direction: column !important;
    align-items: stretch !important;

    height: auto !important;
    max-height: none !important;
    overflow: visible !important;

    background: #fff !important;
    padding: 12px 0 !important;
    margin: 0 !important;

    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  /* Show menu when open */
  nav.top-nav ul.open{
    display: flex !important;
  }

  nav.top-nav ul li{
    width: 100% !important;
    text-align: center;
  }

  nav.top-nav ul li a{
    display: block !important;
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }
}

/* --- FINAL MOBILE NAV (stable, no conflicts) --- */
.nav-toggle{
  display:none;
  background: transparent;
  border: 1px solid #e5e5ea;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px){
  nav.top-nav{
    position: sticky;
    top: 0;
    z-index: 999999;
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 0 14px;
  }

  .nav-toggle{ display:block; }

  nav.top-nav ul{
    display:none !important;
    position:absolute !important;
    top:60px !important;
    left:0 !important;
    right:0 !important;

    flex-direction: column !important;
    align-items: stretch !important;

    background:#fff !important;
    padding: 10px 0 !important;
    margin: 0 !important;

    height:auto !important;
    max-height:none !important;
    overflow: visible !important;

    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  nav.top-nav ul.open{
    display:flex !important;
  }

  nav.top-nav ul li{ width:100% !important; text-align:center; }

  nav.top-nav ul li a{
    display:block !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
  }
}


/* --- Multilang Switch Patch --- */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#6e6e73;
  white-space:nowrap;
}
.lang-switch a{
  color:#6e6e73;
  text-decoration:none;
  font-weight:600;
}
.lang-switch a.active{
  color:#1d1d1f;
}
.lang-switch a:hover{
  color:#0071e3;
}

@media (max-width: 768px){
  .lang-switch{
    margin-left: 10px;
    font-size: 12px;
  }
}

/* --- Components Patch --- */
#site-header,
#site-footer{
  display:block;
}

/* FAQ nav spacing future-proof */
nav.top-nav ul{
  gap: 1.25rem;
}

@media (max-width: 768px){
  .lang-switch{
    margin-left: 8px;
  }
}
/* --- Sticky Buy Bar --- */
.sticky-buy-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid #e5e5ea;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.04);
}

.sticky-buy-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-buy-left{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-buy-title{
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0;
}

.sticky-buy-meta{
  font-size: 14px;
  color: #6e6e73;
  margin: 0;
}

.sticky-buy-right{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sticky-buy-price{
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  white-space: nowrap;
}

.sticky-buy-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sticky-buy-btn:hover{
  opacity: 0.88;
  transform: translateY(-1px);
}

.has-sticky-buy{
  padding-bottom: 92px;
}

@media (max-width: 768px){
  .sticky-buy-inner{
    padding: 12px 14px;
    gap: 10px;
  }

  .sticky-buy-title{
    font-size: 14px;
  }

  .sticky-buy-meta{
    font-size: 12px;
  }

  .sticky-buy-price{
    font-size: 16px;
  }

  .sticky-buy-btn{
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }
}