/* GimmiePets — redesigned demo store */
:root {
  --navy: #232347;
  --ink: #15152e;
  --bg: #fdfcf9;
  --card: #ffffff;
  --line: #e6e4de;
  --muted: #6b6b80;
  --accent: #f59e0b;
  --accent-ink: #b45309;
  --star: #f5b301;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(21, 21, 46, 0.08);
  --font-head: "Baloo 2", "Comfortaa", "Segoe UI Rounded", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15.5px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.announce {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  font-weight: 600;
}
.announce strong { color: var(--accent); }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 249, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 28px; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--navy); text-decoration: none; }
.logo span { color: var(--accent); }
nav.main { display: flex; gap: 22px; flex: 1; }
nav.main a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); padding: 4px 2px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { border-color: var(--accent); color: var(--navy); }
.cart-btn {
  position: relative; background: none; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font: 600 0.9rem var(--font-body); cursor: pointer; color: var(--navy);
}
.cart-btn:hover { border-color: var(--navy); }
.cart-count {
  position: absolute; top: -7px; right: -7px; background: var(--accent); color: var(--ink);
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px;
  display: none; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-count.show { display: inline-flex; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 1rem var(--font-body); border-radius: 999px; padding: 13px 30px; transition: all .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e08c00; }
.btn-ghost { background: none; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-disabled, .btn-disabled:hover { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
/* the banner image ships with the headline baked in, so the hero only adds tagline + CTA */
.hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(21,21,46,.62) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 0 20px 42px; width: 100%; text-align: center; }
.hero p { color: #fff; max-width: 520px; margin: 0 auto 20px; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- value props ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0; }
.prop { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.prop .ico { font-size: 1.8rem; margin-bottom: 8px; }
.prop h3 { margin-bottom: 6px; }
.prop p { font-size: 0.9rem; color: var(--muted); }

/* ---------- feature sections ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 44px 0; }
.feature.flip .feature-img { order: 2; }
.feature-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); }
.feature h2 { margin: 6px 0 12px; }
.feature ul { margin: 14px 0 22px; padding-left: 0; list-style: none; }
.feature li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.feature .price-line { font-weight: 600; margin-bottom: 16px; }

/* ---------- testimonials ---------- */
.testis { padding: 48px 0 8px; text-align: center; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; text-align: left; }
.testi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.95rem; }
.testi blockquote { margin: 10px 0 14px; font-size: 0.93rem; }
.testi .who { font-size: 0.85rem; font-weight: 600; }
.testi .what { font-size: 0.78rem; color: var(--muted); }
.demo-note { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 18px; }

/* ---------- newsletter ---------- */
.newsletter { text-align: center; padding: 56px 0 64px; }
.newsletter p { color: var(--muted); margin: 8px 0 20px; }
.news-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.news-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; font: 400 0.95rem var(--font-body); background: #fff; }
.news-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- catalog ---------- */
.page-head { padding: 40px 0 8px; }
.page-head p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0 56px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: 4px; }
.card-body .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.card-body .price { font-weight: 700; color: var(--navy); }
.card-soon-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font: 700 0.7rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* ---------- product page ---------- */
.crumb { font-size: 0.85rem; color: var(--muted); padding: 22px 0 0; }
.crumb a { color: var(--muted); }
.pdp-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 20px 0 40px; }
.gallery .main-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img.main { width: 100%; aspect-ratio: 1; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; background: #fff; }
.thumbs img.sel { border-color: var(--navy); }
.buy h1 { font-size: 1.9rem; margin: 6px 0 8px; }
.rating { display: inline-block; text-decoration: none; font-size: 0.9rem; margin-bottom: 12px; }
.rating .stars { margin-right: 6px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price-big { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.opt-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.tiny-link { font-size: 0.8rem; font-weight: 500; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font: 500 0.9rem var(--font-body); cursor: pointer; }
.pill.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-row label { font-weight: 600; font-size: 0.9rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { background: none; border: none; width: 38px; height: 40px; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.stepper .qv { min-width: 28px; text-align: center; font-weight: 600; }
.trust { list-style: none; padding: 16px 0 4px; margin: 18px 0 6px; border-top: 1px solid var(--line); }
.trust li { font-size: 0.88rem; margin-bottom: 7px; }
details.acc { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; }
details.acc summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none; position: relative; }
details.acc summary::after { content: "+"; position: absolute; right: 18px; font-weight: 700; color: var(--accent-ink); }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 18px 16px; font-size: 0.92rem; color: #333348; }
.acc-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.acc-body td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.acc-body td:first-child { font-weight: 600; width: 42%; }

.section { padding: 34px 0; }
.section > h2 { margin-bottom: 18px; }
.fit-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.92rem; }
.fit-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 600; }
.fit-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cross { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 20px; align-items: center; padding: 20px; max-width: 560px; }
.cross img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.cross h3 { margin-bottom: 2px; }
.cross .price { font-weight: 700; margin: 4px 0 10px; }

/* ---------- forms / contact ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card input, .form-card textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: 400 0.95rem var(--font-body); margin-bottom: 14px; background: #fff;
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-side h3 { margin: 18px 0 4px; }
.contact-side p { font-size: 0.93rem; color: #333348; }

/* ---------- policies / prose ---------- */
.prose { max-width: 760px; padding-bottom: 60px; }
.prose h2 { margin: 36px 0 10px; scroll-margin-top: 90px; }
.prose p, .prose li { font-size: 0.95rem; color: #2c2c44; margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 18px; display: inline-block; }
.toc a { display: block; padding: 3px 0; font-size: 0.92rem; }

/* ---------- footer ---------- */
footer.site { background: var(--navy); color: #cfcfe3; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 48px 20px 30px; max-width: 1100px; margin: 0 auto; }
.foot-grid h4 { color: #fff; font-family: var(--font-head); margin-bottom: 12px; }
.foot-grid a { color: #cfcfe3; text-decoration: none; display: block; padding: 3px 0; font-size: 0.9rem; }
.foot-grid a:hover { color: var(--accent); }
.foot-blurb { font-size: 0.9rem; max-width: 300px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 20px; }
.foot-bottom-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-badges span { background: #fff; color: var(--ink); font-size: 0.68rem; font-weight: 700; border-radius: 4px; padding: 3px 7px; }

/* ---------- cart drawer ---------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(21,21,46,0.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-veil.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: -420px; width: 400px; max-width: 94vw; height: 100%; background: var(--bg); z-index: 100; transition: right .25s ease; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.18); }
.drawer.open { right: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.3rem; }
.drawer-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--navy); }
.ship-note { background: #eef7ee; color: #1d5c2f; font-size: 0.83rem; font-weight: 600; text-align: center; padding: 9px 14px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.d-item { display: flex; gap: 14px; margin-bottom: 20px; }
.d-item img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.d-item .t { font-weight: 600; font-size: 0.88rem; line-height: 1.35; }
.d-item .v { font-size: 0.8rem; color: var(--muted); }
.d-item .p { font-weight: 700; font-size: 0.9rem; margin: 4px 0 6px; }
.d-item .stepper { transform: scale(0.85); transform-origin: left; }
.d-remove { background: none; border: none; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; padding: 0; margin-left: 8px; }
.empty-cart { text-align: center; color: var(--muted); padding: 40px 10px; }
.d-cross { border-top: 1px dashed var(--line); padding: 14px 22px; }
.d-cross h4 { font-size: 0.85rem; margin-bottom: 10px; }
.d-cross-row { display: flex; gap: 12px; align-items: center; }
.d-cross-row img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.d-cross-row .t { font-size: 0.82rem; font-weight: 600; flex: 1; }
.d-cross-row button { white-space: nowrap; padding: 8px 14px; font-size: 0.8rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 22px 20px; background: #fff; }
.subtotal-row { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.drawer-foot .fine { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.1rem; }
  .props, .testi-grid, .review-grid { grid-template-columns: 1fr; }
  .feature, .pdp-grid, .grid-2 { grid-template-columns: 1fr; gap: 26px; }
  .feature.flip .feature-img { order: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 14px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 10px 0; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
}
