/* RobotPets — immersive dark storefront theme */
:root {
  --bg: #110d07;
  --bg-soft: #171009;
  --panel: #1e1408;
  --border: #2e1f08;
  --text: #f5ede0;
  --text-dim: #a8906c;
  --accent: #f59e0b;
  --accent-2: #fb923c;
  --danger: #ff5370;
  --radius: 14px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(17, 13, 7, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}
.nav { display: flex; align-items: center; gap: 2rem; height: 68px; }
.logo { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; letter-spacing: 2px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav-search input {
  background: rgba(255,255,255,0.07); border: 1px solid var(--border); color: var(--text);
  padding: .45rem .9rem; border-radius: 999px; font-size: .9rem; width: 170px; outline: none;
  transition: border-color .2s, width .25s;
}
.nav-search input:focus { border-color: var(--accent); width: 220px; }
.cart-link { position: relative; display: flex; color: var(--text); }
.cart-count {
  position: absolute; top: -8px; right: -10px; background: var(--accent); color: #1a0d00;
  font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Hero ---------- */
main { padding-top: 68px; }
.glow { color: var(--accent); text-shadow: 0 0 30px rgba(245,158,11,0.45), 0 0 60px rgba(245,158,11,0.2); }
.hero-kicker { color: var(--accent); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }

.hero-grid-wrap { border-bottom: 2px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; border-bottom: 1px solid var(--border); }

.hero-main {
  padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center;
  min-height: 360px; border-right: 1px solid var(--border); background: var(--bg-soft); position: relative; overflow: hidden;
}
.hero-main::after {
  content: ''; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%);
  pointer-events: none;
}
.hero-tag { font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; font-weight: 600; }
.hero-main h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 900; margin-bottom: 1rem; }
.hero-main-desc { color: var(--text-dim); font-size: .97rem; line-height: 1.65; margin-bottom: 1.8rem; max-width: 420px; }
.hero-main-btns { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero-side { display: flex; flex-direction: column; }
.hero-tile {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border); transition: background .18s; flex: 1;
  color: var(--text);
}
.hero-tile:last-child { border-bottom: none; }
.hero-tile:hover { background: var(--panel); }
.hero-tile-img {
  width: 58px; height: 58px; border-radius: 10px; overflow: hidden;
  background: var(--panel); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
.hero-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile-body { flex: 1; min-width: 0; }
.hero-tile-badge { display: inline-block; font-size: .7rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(245,158,11,0.15); color: var(--accent); margin-bottom: .3rem; font-weight: 600; }
.hero-tile-name { font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-tile-sub { font-size: .78rem; color: var(--text-dim); margin-top: .2rem; line-height: 1.4; }
.hero-tile-price { font-size: .97rem; font-weight: 700; color: var(--accent); margin-top: .3rem; }
.hero-tile-arrow { color: var(--text-dim); font-size: 1.3rem; flex-shrink: 0; }
.hero-tile-gift { background: var(--bg); }
.hero-tile-gift-icon { font-size: 1.9rem; width: 58px; text-align: center; flex-shrink: 0; }

.hero-trust { display: grid; grid-template-columns: repeat(4,1fr); }
.hero-trust-item { padding: .85rem 1.25rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: .1rem; }
.hero-trust-item:last-child { border-right: none; }
.hero-trust-item strong { color: var(--accent); font-size: .85rem; }
.hero-trust-item span { color: var(--text-dim); font-size: .75rem; }

.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); border-bottom: 1px solid var(--border); }
.cat-strip-tile { padding: .8rem 1rem; text-align: center; border-right: 1px solid var(--border); transition: background .18s; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.cat-strip-tile:last-child { border-right: none; }
.cat-strip-tile:hover { background: var(--panel); color: var(--accent); }
.cat-strip-icon { font-size: 1.5rem; }
.cat-strip-name { font-size: .78rem; font-weight: 600; color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; font-family: var(--font-body); transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a0d00; border: none;
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 28px rgba(245,158,11,0.35); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 1.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.section-head h2 { font-family: var(--font-display); font-size: 1.8rem; }
.link-arrow { color: var(--accent); font-weight: 600; }

.trust-bar { background: var(--bg-soft); border-block: 1px solid var(--border); padding: 1.5rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; text-align: center; }
.trust-grid div { display: flex; flex-direction: column; }
.trust-grid strong { color: var(--accent); }
.trust-grid span { color: var(--text-dim); font-size: .85rem; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.product-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,0.4); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
/* padding-top:100% forces a perfect square box in every browser (more robust
   than aspect-ratio on an <a> wrapping an <img>), so all card images are the
   same height and the category/title/price line up across cards. */
.product-image { position: relative; width: 100%; padding-top: 100%; height: 0; overflow: hidden; background: var(--bg-soft); display: block; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: .35; }
.image-placeholder-lg { font-size: 8rem; aspect-ratio: 1; background: var(--bg-soft); border-radius: var(--radius); }
.badge { position: absolute; top: 12px; left: 12px; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-sale { background: var(--danger); color: #fff; }
.product-info { padding: 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.product-category { color: var(--accent); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
.product-info h3 {
  font-size: 1.02rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1.35em * 2); /* reserve 2 lines so every card aligns */
}
.product-price { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; }
.price { font-weight: 700; font-size: 1.15rem; }
.compare-price { color: var(--text-dim); text-decoration: line-through; font-size: .9rem; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.category-card {
  position: relative; height: 130px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,146,60,0.18)), var(--panel);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  transition: transform .2s, border-color .2s;
}
.category-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.cta-band { text-align: center; padding: 5rem 1.5rem; background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(245,158,11,0.15), transparent); }
.cta-band h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1.6rem; }

.quiz-promo { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; background: rgba(245,158,11,0.05); }
.quiz-promo-text { flex: 1 1 320px; }
.quiz-promo-text h2 { font-family: var(--font-display); font-size: 1.6rem; margin: .4rem 0 .8rem; }
.quiz-promo-text p { color: var(--text-dim); line-height: 1.6; max-width: 560px; }

/* ---------- Shop by Category tabs ---------- */
.tab-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.75rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.tab-btn { background: var(--panel); border: 1px solid var(--border); color: var(--text-dim); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-size: .9rem; font-family: var(--font-body); transition: all .18s; white-space: nowrap; }
.tab-btn:hover { border-color: var(--accent); color: var(--text); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.tab-select { display: none; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-product-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }

/* ---------- Audience strip ---------- */
.audience-strip { background: var(--bg-soft); }
.audience-head { justify-content: center; text-align: center; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.audience-card { display: flex; flex-direction: column; gap: .6rem; padding: 2rem 1.5rem; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.audience-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.audience-icon { font-size: 2.2rem; }
.audience-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--accent); margin: 0; }
.audience-card p { font-size: .9rem; color: var(--text-dim); line-height: 1.55; margin: 0; flex: 1; }
.audience-link { font-size: .85rem; color: var(--accent); font-weight: 600; margin-top: .25rem; }

/* ---------- Page hero ---------- */
.page-hero { padding: 4.5rem 0 3rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-display); font-size: 2.2rem; }
.page-hero p { color: var(--text-dim); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; }
.shop-filters h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; }
.filter-link { display: block; padding: .5rem .8rem; color: var(--text-dim); border-radius: 8px; font-size: .95rem; }
.filter-link:hover { color: var(--text); background: var(--panel); }
.filter-link.active { color: var(--accent); background: var(--panel); font-weight: 600; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-dim); }
.empty-state .btn { margin-top: 1.2rem; }
.empty-state h1 { font-family: var(--font-display); color: var(--text); font-size: 3rem; }

/* ---------- Product detail ---------- */
.product-detail { padding-top: 8rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-image img { border-radius: var(--radius); }
.product-detail-info h1 { font-family: var(--font-display); font-size: 2rem; margin: .3rem 0; }
.sku { color: var(--text-dim); font-size: .85rem; }
.product-price-lg .price { font-size: 1.9rem; }
.product-price-lg { margin: 1rem 0; }
.product-price-lg .badge { position: static; }
.product-description { color: var(--text-dim); margin-bottom: 1.4rem; white-space: pre-line; }
.stock-status { font-weight: 600; margin-bottom: 1rem; }
.in-stock { color: #4ade80; }
.out-of-stock { color: var(--danger); }
.add-form { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.add-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--text-dim); }
.add-form input { width: 80px; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: .6rem; border-radius: 8px; font-size: 1rem; }
.product-perks { list-style: none; color: var(--text-dim); display: flex; flex-direction: column; gap: .4rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 1.2rem; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
}
.cart-item-image { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h3 { font-size: 1rem; }
.cart-item-qty { display: flex; gap: .5rem; align-items: center; }
.cart-item-qty input { width: 64px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); padding: .45rem; border-radius: 8px; text-align: center; }
.cart-item-total { font-weight: 700; min-width: 80px; text-align: right; }
.btn-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; padding: .4rem; }
.btn-remove:hover { color: var(--danger); }
.cart-summary { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; }
.cart-summary h3 { font-family: var(--font-display); margin-bottom: 1rem; font-size: 1.05rem; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--text-dim); font-size: .95rem; gap: 1rem; }
.summary-total { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: 1rem; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.cart-summary .btn { margin: 1.1rem 0 .8rem; }
.cart-summary .link-arrow { font-size: .9rem; }

.checkout-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.checkout-form h3 { font-family: var(--font-display); margin-bottom: 1.4rem; }
.checkout-form label { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; font-size: .9rem; color: var(--text-dim); }
.checkout-form input {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  padding: .7rem .9rem; border-radius: 9px; font-size: 1rem; outline: none; transition: border-color .2s;
}
.checkout-form input:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-note { color: var(--text-dim); font-size: .85rem; margin: 1rem 0 1.4rem; padding: .8rem 1rem; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); border-radius: 9px; }

.success-state { padding-top: 10rem; }
.success-icon {
  width: 84px; height: 84px; margin: 0 auto 1.5rem; border-radius: 50%; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #1a0d00;
  display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.success-state h1 { font-size: 2rem !important; }
.success-state p { max-width: 460px; margin: 1rem auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }
.footer-grid p { color: var(--text-dim); font-size: .92rem; margin-top: .8rem; max-width: 320px; }
.footer-grid h4 { font-family: var(--font-display); font-size: .9rem; margin-bottom: .9rem; letter-spacing: 1px; }
.footer-grid a { display: block; color: var(--text-dim); padding: .25rem 0; font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding: 1.3rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .85rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: var(--panel); border: 1px solid var(--accent); color: var(--text);
  padding: .9rem 1.4rem; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Nav dropdowns ---------- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-drop-trigger { color: var(--text-dim); font-weight: 500; font-size: .95rem; cursor: pointer; transition: color .2s; white-space: nowrap; }
.nav-drop-trigger:hover { color: var(--accent); }
.nav-drop-menu {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  background: transparent;
  z-index: 300;
  white-space: nowrap;
}
.nav-drop-menu::before {
  content: '';
  position: absolute; top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  z-index: -1;
}
.nav-dropdown:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: .55rem 1.1rem;
  color: var(--text-dim); font-size: .9rem; transition: color .15s, background .15s;
}
.nav-drop-menu a:hover { color: var(--accent); background: rgba(255,255,255,0.04); }

/* ---------- Audience hero ---------- */
.audience-hero {
  padding: 9rem 0 4rem;
  background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.audience-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.audience-hero .hero-sub { max-width: 580px; color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }
.audience-hero .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Benefit grid ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.benefit-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.benefit-icon { font-size: 2.2rem; margin-bottom: .8rem; }
.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.benefit-card p { color: var(--text-dim); font-size: .93rem; line-height: 1.65; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem;
}
.testimonial-card p { color: var(--text-dim); font-style: italic; line-height: 1.65; flex: 1; }
.testimonial-card cite { font-size: .85rem; color: var(--accent); font-style: normal; font-weight: 600; }

/* ---------- About page ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.audience-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .5rem;
  transition: transform .2s, border-color .2s;
}
.audience-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.4); }
.audience-icon { font-size: 2rem; }
.audience-card h3 { font-size: 1.05rem; font-weight: 700; }
.audience-card p { color: var(--text-dim); font-size: .9rem; flex: 1; }
.audience-overview { background: var(--bg-soft); border-block: 1px solid var(--border); }

.prose-grid { display: grid; grid-template-columns: 1fr 340px; gap: 3.5rem; align-items: start; }
.prose-text h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1.2rem; }
.prose-text p { color: var(--text-dim); line-height: 1.75; margin-bottom: 1rem; }
.stat-strip { display: flex; flex-direction: column; gap: 1rem; }
.stat-item { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); font-weight: 900; }
.stat-label { color: var(--text-dim); font-size: .88rem; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.value-icon { font-size: 2rem; margin-bottom: .8rem; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.value-card p { color: var(--text-dim); font-size: .93rem; line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-group { margin-bottom: 3rem; }
.faq-group-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); margin-bottom: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.faq-item {
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: .75rem;
  background: var(--panel); overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p, .faq-item[open] > *:not(summary) { padding: 0 1.3rem 1.2rem; color: var(--text-dim); line-height: 1.7; }
.faq-item a { color: var(--accent); }
.faq-cta { text-align: center; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 1rem; }
.faq-cta p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 960px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .8rem; }
.contact-info > p { color: var(--text-dim); line-height: 1.7; margin-bottom: 1.5rem; }
.contact-channels { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-channel { display: flex; gap: 1rem; align-items: flex-start; }
.channel-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.contact-channel strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.contact-channel a, .contact-channel span { color: var(--text-dim); font-size: .9rem; }
.contact-channel a:hover { color: var(--accent); }
.contact-form-panel { }
.form-success { text-align: center; padding: 3rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.form-success h2 { font-family: var(--font-display); margin: 1rem 0 .5rem; }
.form-success p { color: var(--text-dim); }
.form-error { background: rgba(255,83,112,0.1); border: 1px solid var(--danger); color: var(--danger); padding: .9rem 1.1rem; border-radius: 9px; margin-bottom: 1.2rem; font-size: .9rem; }
.checkout-form textarea { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); padding: .7rem .9rem; border-radius: 9px; font-size: .95rem; outline: none; width: 100%; resize: vertical; font-family: var(--font-body); transition: border-color .2s; }
.checkout-form textarea:focus { border-color: var(--accent); }
.form-select { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); padding: .7rem .9rem; border-radius: 9px; font-size: .95rem; outline: none; width: 100%; appearance: none; cursor: pointer; transition: border-color .2s; }
.form-select:focus { border-color: var(--accent); }

/* ---------- Gift page ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.gift-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .5rem;
  transition: transform .2s, border-color .2s;
}
.gift-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.4); }
.gift-icon { font-size: 2rem; }
.gift-card h3 { font-size: 1.05rem; font-weight: 700; }
.gift-card p { color: var(--text-dim); font-size: .9rem; flex: 1; }
.occasion-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.occasion-card { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: .6rem 1.4rem; font-size: .95rem; font-weight: 600; transition: border-color .2s, color .2s; }
.occasion-card:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Allergy page compare table ---------- */
.compare-table-wrap { max-width: 700px; margin: 0 auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .95rem; }
.compare-table thead th { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.compare-table .col-robot { color: var(--accent); }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: #4ade80; font-weight: 600; }
.compare-table .no { color: var(--danger); font-weight: 600; }

/* ---------- Shared utility ---------- */
.bg-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

/* ---------- Mobile nav drawer ---------- */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 200; }
.mobile-overlay.open { display: block; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--bg-soft); border-left: 1px solid var(--border);
  z-index: 201; transition: transform .26s ease; overflow-y: auto;
  transform: translateX(100%);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); height: 68px; }
.mobile-drawer-close { background: none; border: none; color: var(--text-dim); font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 0; }
.mobile-drawer-body { padding: .5rem 0 2rem; }
.mobile-nav-link { display: block; padding: .8rem 1.25rem; color: var(--text); font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--border); transition: color .15s; }
.mobile-nav-link:hover { color: var(--accent); }
.mobile-nav-section { padding: .9rem 1.25rem .3rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.mobile-nav-sub { display: block; padding: .55rem 1.25rem .55rem 2rem; color: var(--text-dim); font-size: .88rem; transition: color .15s; }
.mobile-nav-sub:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .product-detail-grid, .cart-layout, .form-row { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { display: flex; gap: .5rem; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; grid-auto-rows: auto; }
  .cart-item-total { text-align: left; }
  .prose-grid, .contact-grid { grid-template-columns: 1fr; }
  .compare-table-wrap { overflow-x: auto; }
  .post-page-grid { grid-template-columns: 1fr; }

  /* Hero grid */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { padding: 2rem 1.25rem; min-height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-main::after { display: none; }
  .hero-side { display: none; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .hero-trust-item:nth-child(2) { border-right: none; }
  .hero-trust-item:nth-child(3) { border-top: 1px solid var(--border); }
  .hero-trust-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .cat-strip-tile:nth-child(even) { border-right: none; }
  .nav-hamburger { display: flex; }
  .nav-search { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .tab-bar { display: none; }
  .tab-select { display: block; width: 100%; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: .65rem 1rem; border-radius: var(--radius); font-size: 1rem; font-family: var(--font-body); margin-bottom: 1.5rem; appearance: auto; }
  .tab-product-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
  .tab-product-row .product-card { min-width: 200px; max-width: 200px; flex-shrink: 0; }
}

/* ---------- Blog / Learn listing ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.post-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.35); box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .3; }
.post-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card-body h2 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.post-card-body p { color: var(--text-dim); font-size: .9rem; line-height: 1.6; flex: 1; }
.post-type-tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: rgba(245,158,11,0.12); color: var(--accent); }
.post-type-guide { background: rgba(251,146,60,0.15); color: var(--accent-2); }
.post-date { font-size: .82rem; color: var(--text-dim); margin-top: auto; }

/* ---------- Single post / guide page ---------- */
.post-page { padding-top: 5rem; }
.post-page-hero {
  position: relative; padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.post-page-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.post-page-hero .container { position: relative; z-index: 1; }
.back-link { display: inline-block; color: var(--text-dim); font-size: .9rem; margin-bottom: 1rem; transition: color .2s; }
.back-link:hover { color: var(--accent); }
.post-page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: .5rem 0; }
.post-page-excerpt { color: var(--text-dim); font-size: 1.08rem; max-width: 640px; margin: .75rem 0; }
.post-page-body {
  max-width: 760px; margin: 0 auto; padding-bottom: 4rem;
  color: var(--text-dim); line-height: 1.8; font-size: 1.02rem;
}
.post-page-body h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin: 2.2rem 0 .8rem; }
.post-page-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 1.8rem 0 .6rem; }
.post-page-body p { margin-bottom: 1.1rem; }
.post-page-body ul, .post-page-body ol { margin: .8rem 0 1.1rem 1.5rem; }
.post-page-body li { margin-bottom: .4rem; }
.post-page-body a { color: var(--accent); }
.post-page-body a:hover { text-decoration: underline; }
.post-page-body img { border-radius: var(--radius); margin: 1.5rem 0; max-width: 100%; }
.post-page-body strong { color: var(--text); }

/* ---------- Reviews ---------- */
.reviews-wrap { max-width: 760px; }
.reviews-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.reviews-header h2 { font-family: var(--font-display); font-size: 1.5rem; }
.rating-bar { display: flex; align-items: center; gap: .6rem; }
.rating-summary { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.rating-summary .rating-count { color: var(--text-dim); font-size: .88rem; }
.rating-summary .rating-avg { font-weight: 700; }
.stars-display { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }
.stars-lg { font-size: 1.4rem; }

.review-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.review-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.review-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.review-meta strong { font-size: .97rem; }
.review-date { color: var(--text-dim); font-size: .82rem; margin-left: auto; }
.review-card p { color: var(--text-dim); line-height: 1.65; font-size: .95rem; }
.review-empty { color: var(--text-dim); margin-bottom: 2rem; }

.review-form-wrap { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 1rem; }
.review-form-wrap h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 1.25rem; }
.review-form label { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; font-size: .9rem; color: var(--text-dim); }
.review-form input[type=text], .review-form input[type=email] {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  padding: .65rem .9rem; border-radius: 9px; font-size: .97rem; outline: none; transition: border-color .2s;
}
.review-form input:focus { border-color: var(--accent); }
.review-form textarea { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); padding: .65rem .9rem; border-radius: 9px; font-size: .97rem; outline: none; width: 100%; resize: vertical; font-family: var(--font-body); transition: border-color .2s; }
.review-form textarea:focus { border-color: var(--accent); }
.review-note { color: var(--text-dim); font-size: .82rem; margin-top: .6rem; }
.review-thanks { color: #4ade80; font-weight: 600; padding: 1rem; background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); border-radius: 9px; }

/* Star rating radio input */
.star-rating-field { border: none; padding: 0; margin: 0 0 1rem; }
.star-rating-field legend { font-size: .9rem; color: var(--text-dim); margin-bottom: .5rem; }
.star-radio-group { display: flex; flex-direction: row-reverse; gap: .15rem; }
.star-radio-group input[type=radio] { display: none; }
.star-radio-group label { font-size: 1.8rem; color: var(--border); cursor: pointer; transition: color .15s; }
.star-radio-group input:checked ~ label,
.star-radio-group label:hover,
.star-radio-group label:hover ~ label { color: var(--accent); }

/* ---------- Owner Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.gallery-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.gallery-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.gallery-img-wrap { aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.04); }
.gallery-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.gallery-card-body h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .3rem; }
.gallery-owner { font-size: .83rem; color: var(--text-dim); margin-bottom: .6rem; }
.gallery-story { font-size: .88rem; color: var(--text-dim); line-height: 1.5; }
.gallery-submit-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.gallery-submit-wrap h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .75rem; }
.gallery-submit-wrap > p { color: var(--text-dim); margin-bottom: 1.8rem; }
.gallery-form { text-align: left; }

/* ---------- Pet Finder Quiz ---------- */
.quiz-wrap { max-width: 680px; margin: 0 auto; }
.quiz-progress { margin-bottom: 2rem; }
.quiz-progress-bar { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: .55rem; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .35s ease; width: 25%; }
.quiz-progress-label { font-size: .85rem; color: var(--text-dim); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }
.quiz-options { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.quiz-option {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  cursor: pointer; transition: border-color .2s, background .2s;
  font-size: 1rem;
}
.quiz-option:hover { border-color: var(--accent-2); background: rgba(251,146,60,0.08); }
.quiz-option input { display: none; }
.quiz-option:has(input:checked) { border-color: var(--accent); background: rgba(245,158,11,0.07); }
.quiz-option span { pointer-events: none; }
.quiz-result { text-align: center; padding: 2.5rem 1.5rem; }
.quiz-result-icon { font-size: 4.5rem; line-height: 1; margin-bottom: 1rem; }
.quiz-result h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }
.quiz-result p { color: var(--text-dim); font-size: 1.05rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }
