/* ============================================================
   YOUR BACKYARD KNOWS — SHOPPING PAGE
   shopping.css  |  hosted: /wp-content/uploads/ybk/shopping.css
   ============================================================ */

:root {
  --green:       #1F4D3A;
  --green-mid:   #2d6e52;
  --green-light: #3a8a5a;
  --green-pale:  #eaf4ee;
  --orange:      #E8671A;
  --orange-dark: #c45610;
  --cream:       #F5F0E8;
  --cream-dark:  #EDE8DC;
  --white:       #ffffff;
  --text-dark:   #1a1a1a;
  --text-mid:    #3a3a3a;
  --text-muted:  #6a6a6a;
  --border:      #ddd8cc;
  --prime-blue:  #00A8E0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 220px; }
body { font-family: 'Open Sans', -apple-system, sans-serif; color: var(--text-dark); background: var(--white); }

/* ---- HEADER ---- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img {
  height: 130px !important;
  max-height: 130px !important;
  width: auto !important;
  max-width: 280px !important;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.nav a:link, .nav a:visited { color: #333 !important; border-bottom: none !important; text-decoration: none !important; }
.nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.nav a:hover { color: var(--green); }
.nav a.active {
  color: var(--orange);
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
}
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-btn {
  background: none; border: none; cursor: pointer; color: #555;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
}
.search-btn svg { width: 18px; height: 18px; }
.cta-header {
  background: var(--green); color: var(--white);
  padding: 9px 16px; border-radius: 6px;
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; white-space: nowrap; transition: background 0.2s;
  border: none; cursor: pointer;
}
.cta-header:hover { background: var(--green-mid); }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- HERO ---- */
.shop-hero {
  background: linear-gradient(135deg, #0f2a1e 0%, var(--green) 60%, #2d6e52 100%);
  padding: 64px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.shop-hero-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.shop-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 20px;
}
.shop-hero h1 {
  font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 16px; text-transform: uppercase;
}
.shop-hero h1 em { color: #7dd48a; font-style: normal; }
.shop-hero p { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.65; }

/* ---- CATEGORY NAV ---- */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 151px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.cat-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-nav-link:hover { color: var(--green); border-bottom-color: var(--green); }

/* ---- CATEGORY SECTION ---- */
.cat-section { padding: 64px 0; }
.cat-section.bg-cream { background: var(--cream); }
.cat-section.bg-white { background: var(--white); }

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-header-left { display: flex; align-items: center; gap: 14px; }
.cat-icon { font-size: 36px; }
.cat-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--orange); margin-bottom: 4px; display: block;
}
.cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px; font-weight: 900;
  color: var(--green); text-transform: uppercase; line-height: 1;
}
.cat-see-all {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--orange); text-decoration: none;
  border: 2px solid var(--orange);
  padding: 8px 18px; border-radius: 6px;
  transition: all 0.2s; white-space: nowrap;
}
.cat-see-all:hover { background: var(--orange); color: var(--white); }

/* ---- PRODUCT CARDS ---- */
.product-row {
  margin-bottom: 48px;
}
.product-row-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.product-img-wrap {
  background: var(--white);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
}
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-prime {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--prime-blue); margin-bottom: 6px;
}
.product-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--text-dark); line-height: 1.35; margin-bottom: 8px;
}
.product-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.product-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf8;
}
.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 900; color: var(--green);
}
.product-buy {
  background: var(--orange); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  padding: 8px 14px; border-radius: 6px; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.product-buy:hover { background: var(--orange-dark); }

/* ---- SUBCATEGORY BROWSE ---- */
.subcat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.subcat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.subcat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--green); }
.subcat-icon { font-size: 26px; flex-shrink: 0; }
.subcat-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 800;
  color: var(--green); margin-bottom: 4px; line-height: 1.2;
}
.subcat-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ---- AFFILIATE NOTE ---- */
.affiliate-note {
  background: var(--cream-dark);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  margin: 48px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.affiliate-note strong { color: var(--text-dark); }

/* ---- FOOTER ---- */
.footer { background: #0f2a1e; padding: 56px 24px 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px;
}
.footer-logo-img { height: 48px; width: auto; margin-bottom: 16px; display: block; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #7dd48a; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none;
}
.social-icon:hover { background: var(--orange); }
.social-icon svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; padding-bottom: 16px;
}

/* ============================================================
   RESPONSIVE — REVISED (no hamburger required)
   Nav scrolls horizontally on mobile.
   ============================================================ */

.menu-toggle { display: none !important; }

/* ---------- TABLET (<= 1024px) ---------- */
@media (max-width: 1024px) {
  .header-inner { padding: 8px 16px; }
  .logo-img { height: 90px !important; max-height: 90px !important; max-width: 220px !important; }
  .nav { gap: 14px; }
  .nav a:link, .nav a:visited { color: #333 !important; border-bottom: none !important; text-decoration: none !important; }
.nav a { font-size: 13px; }
  .cta-header { padding: 10px 16px !important; font-size: 13px !important; }
}

/* ---------- MOBILE (<= 768px) ---------- */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 8px 12px; gap: 4px; }
  .logo-img { height: 60px !important; max-height: 60px !important; max-width: 160px !important; }
  .header-right { margin-left: auto; }
  .cta-header { display: none !important; }

  .nav {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    flex: 0 0 100%;
    gap: 0;
    padding: 4px 0 6px;
    border-top: 1px solid #eee;
    scrollbar-width: none;
    justify-content: flex-start !important;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:link, .nav a:visited { color: #333 !important; border-bottom: none !important; text-decoration: none !important; }
.nav a { white-space: nowrap; font-size: 12px; padding: 8px 10px; flex-shrink: 0; }

  h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.5rem !important; }
  .hero, .au-hero, .hero-section { padding: 40px 16px !important; }
  section, .section, .au-section { padding-left: 16px !important; padding-right: 16px !important; }

  .pillars-grid, .au-pillars, .promise-grid, .au-promise,
  .hero-grid, .story-grid, .network-grid,
  .contact-layout, .info-grid, .footer-grid,
  .lifestyle-grid, .amazon-grid, .steps-grid,
  .popular-guides, .categories-layout, .recipe-spotlight,
  .techniques-grid, .recipes-grid, .detailed-cols, .shop-grid,
  .cat-grid, .subcat-grid, .product-card-grid, .picks-grid,
  .solutions-grid, .products-grid, .pest-id-grid, .seasonal-grid,
  .natural-grid, .cta-grid {
    grid-template-columns: 1fr !important;
  }

  .cat-nav-inner { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .cat-nav-link { display: inline-block !important; }
  .newsletter-form, .signup-form { flex-direction: column !important; }
  .footer-inner, .footer-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  .logo-img { height: 50px !important; max-height: 50px !important; max-width: 140px !important; }
  h1 { font-size: 1.65rem !important; }
  h2 { font-size: 1.25rem !important; }
}
