/* Scooby's Pantry storefront */
:root {
  --purple: #8E5B9F;
  --purple-btn: #9466A9;
  --purple-dark: #7A4A8C;
  --purple-soft: #C9AED3;
  --plum: #3A1240;
  --plum-2: #4A2252;
  --cream: #FBF6F1;
  --lav: #F2E9F3;
  --lav-2: #EADCEC;
  --line: #E4D6E6;
  --muted: #6E5A72;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(74, 34, 82, .08);
  --serif-display: "Fraunces", Georgia, "Times New Roman", serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif-display); color: var(--plum); margin: 0; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Top bar */
.topbar {
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: .95rem; padding: 9px 16px; text-align: center;
}
.topbar .ico { width: 15px; height: 15px; }
.topbar .dot { opacity: .8; }

/* Header */
.site-header { background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { flex: none; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 40px; font-size: 1.08rem; }
.nav a { text-decoration: none; color: var(--plum); padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a.active { border-color: var(--purple-soft); }
.nav .bag-link { position: relative; border: 0; color: var(--plum); margin-left: 24px; display: inline-flex; }
.bag-link > .ico { width: 40px; height: 40px; stroke-width: 1.5; }
.bag-heart { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); color: var(--purple); display: flex; }
.bag-heart .ico { width: 15px; height: 15px; }
.bag-count {
  position: absolute; top: -4px; right: -8px;
  background: var(--plum); color: #fff; font: 600 .72rem/1 var(--serif);
  min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px;
}

/* Toast */
.toast { background: var(--lav-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toast-inner { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-size: .98rem; }
.toast-inner > .ico { color: var(--purple); }
.toast-inner a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--purple-dark); font-weight: 600; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--purple-btn); color: #fff; border: 1.5px solid var(--purple-btn);
  font: 500 1.05rem/1 var(--serif); padding: 13px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; }
.btn-lg { font-size: 1.22rem; padding: 16px 30px; min-width: 248px; }
.btn-sm { font-size: 1rem; padding: 10px 22px; min-width: 186px; border-radius: 10px; }
.btn-sm .ico { width: 19px; height: 19px; }
.btn-outline { background: transparent; color: var(--plum); border-color: var(--plum-2); }
.btn-outline:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-wide { min-width: 340px; }
.btn-text { background: none; border: 0; padding: 0; color: var(--purple-dark); font: 500 .95rem var(--serif); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); text-decoration: none; border-bottom: 1.5px solid var(--plum-2); padding-bottom: 3px; font-size: 1.02rem; }
.link-arrow .ico { width: 15px; height: 15px; }

/* Decorations */
.deco { position: absolute; color: var(--purple-soft); opacity: .55; pointer-events: none; }
.doodle { width: 22px; height: 26px; color: var(--purple); vertical-align: middle; }

/* Eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .14em; font-size: .86rem; color: var(--plum-2); margin-bottom: 22px; }
.eyebrow span { border-bottom: 2px solid var(--purple-soft); padding-bottom: 8px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-bottom: 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 32px; max-width: none; padding-right: 0; padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px)); }
.hero-copy { position: relative; padding: 40px 0 40px; }
.deco-paw-hero { width: 40px; height: 40px; top: -6px; left: -6px; transform: rotate(-12deg); }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 22px; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.4; max-width: 30ch; margin-bottom: 30px; }
.hero-actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.deco-heart-hero { position: absolute; left: 290px; top: 64px; width: 24px; height: 30px; }
.hero-media { align-self: stretch; }
.hero-media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; border-radius: 22px 0 0 22px; box-shadow: var(--shadow); }

/* Values strip */
.values { background: var(--lav); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 26px; padding-bottom: 26px; }
.value { display: flex; align-items: center; gap: 16px; padding: 4px 24px; }
.value + .value { border-left: 1.5px solid var(--purple-soft); }
.value-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--purple); flex: none; }
.value-ico .ico { width: 28px; height: 28px; }
.value h2 { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; margin-bottom: 4px; letter-spacing: 0; }
.value p { font-size: .9rem; color: var(--muted); line-height: 1.45; }

/* Featured products */
.featured { padding: 56px 0 64px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
.section-title .doodle { width: 28px; height: 34px; margin-left: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(74, 34, 82, .12); }
.card-img { aspect-ratio: 4 / 3; background: var(--lav); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 20px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.card-desc { font-size: .95rem; color: var(--muted); }
.price { font-size: 1.15rem; margin-top: auto; }
.price-tbd { font-size: .98rem; color: var(--muted); font-style: italic; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Meet */
.meet { background: var(--lav); position: relative; overflow: hidden; }
.meet-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-top: 28px; padding-bottom: 28px; }
.meet-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; box-shadow: var(--shadow); }
.meet-copy { position: relative; z-index: 1; }
.meet-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: 18px; }
.meet-copy p { font-size: 1.15rem; margin-bottom: 26px; max-width: 34ch; }
.deco-sprig { right: 18px; bottom: -6px; width: 130px; height: 240px; color: var(--purple-soft); opacity: .7; }

/* CTA */
.cta { padding: 34px 0 30px; }
.cta-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.cta .deco { width: 34px; height: 34px; }
.cta-paw-1 { left: 2%; top: 4px; transform: rotate(-14deg); }
.cta-heart-1 { left: 12%; top: 10px; transform: rotate(-10deg); }
.cta-paw-2 { left: 6%; top: 64px; width: 28px !important; height: 28px !important; }
.cta-paw-3 { right: 12%; top: 18px; transform: rotate(14deg); }
.cta-heart-2 { right: 3%; top: 4px; transform: rotate(12deg); }
.cta-paw-4 { right: 7%; top: 70px; width: 28px !important; height: 28px !important; }

/* Footer */
.site-footer { padding: 0 0 24px; }
.footer-inner { border-top: 1.5px solid var(--plum-2); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 8px; }
.footer-brand img { width: 130px; }
.footer-loc { font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.footer-nav { justify-self: end; display: flex; gap: 22px; font-size: .95rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { text-align: center; font-size: .82rem; color: var(--muted); }

/* Inner pages */
.page-head { padding: 44px 0 10px; }
.page-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 12px; }
.page-head .eyebrow { margin-bottom: 16px; }
.featured-page { padding-top: 26px; }
.meet-page { margin-top: 24px; }
.prose p { margin-bottom: 16px; }
.story-photo { padding: 44px 0 10px; }
.story-photo img { border-radius: var(--radius); max-height: 520px; width: 100%; object-fit: cover; box-shadow: var(--shadow); }

/* Bag */
.bag { padding: 22px 0 64px; }
.bag-empty { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bag-empty-ico { width: 56px; height: 56px; color: var(--purple-soft); }
.bag-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.bag-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bag-line { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; }
.bag-thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--lav); }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-info h3 { font-size: 1.15rem; margin-bottom: 2px; }
.bag-actions { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.qty-form { display: flex; align-items: center; gap: 10px; }
.qty-form input { width: 64px; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: 1rem var(--serif); color: var(--plum); background: var(--cream); }
.bag-line-total { font-weight: 600; font-size: 1.1rem; padding-right: 6px; }
.bag-summary { background: var(--lav); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.bag-summary h2 { font-size: 1.5rem; }
.sum-row { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 600; }
.bag-summary .link-arrow { align-self: center; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-right: 24px; padding-left: 24px; }
  .hero-copy { padding: 24px 0 8px; }
  .hero-media img { min-height: 0; aspect-ratio: 16 / 10; border-radius: 20px; }
  .deco-heart-hero, .deco-paw-hero { display: none; }
  .values-grid { grid-template-columns: 1fr; gap: 14px; }
  .value { padding: 4px 0; }
  .value + .value { border-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .meet-grid { grid-template-columns: 1fr; gap: 26px; }
  .deco-sprig { width: 90px; height: 170px; }
  .bag-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-grid { padding-right: 16px; padding-left: 16px; }
  .topbar { font-size: .84rem; gap: 8px; }
  .header-inner { gap: 12px; }
  .brand img { width: 150px; }
  .nav { gap: 16px; font-size: .98rem; }
  .nav .bag-link { margin-left: 4px; }
  .bag-link > .ico { width: 32px; height: 32px; }
  .btn-lg, .btn-wide { min-width: 0; width: 100%; }
  .hero-actions { align-items: stretch; }
  .cards { grid-template-columns: 1fr; }
  .cta .deco { display: none; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-nav { justify-self: center; }
  .bag-line { grid-template-columns: 72px 1fr; }
  .bag-thumb { width: 72px; height: 72px; }
  .bag-line-total { grid-column: 2; padding: 0; }
}
@media (max-width: 400px) {
  .nav a:not(.bag-link) { font-size: .9rem; }
  .brand img { width: 128px; }
}

/* Hero image contained within page width */
.hero-grid { max-width: 1300px; padding-left: 24px; padding-right: 24px; }
.hero-media img { border-radius: 22px; }
@media (max-width: 640px) { .hero-grid { padding-left: 16px; padding-right: 16px; } }

/* Sticky footer on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Pack size selector + image placeholder */
.card-form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: auto; }
.pack-select { width: 100%; max-width: 240px; padding: 10px 36px 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A4A8C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font: 500 1rem var(--serif); color: var(--plum); appearance: none; -webkit-appearance: none; cursor: pointer; text-align: center; }
.pack-select:focus { outline: 2px solid var(--purple-soft); outline-offset: 1px; }
.card-img-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--purple-soft); }
.card-img-ph .ico { width: 64px; height: 64px; }
.bag-pack { font-size: .95rem; color: var(--purple-dark); font-weight: 500; }

/* No hover lift on product cards */
.card:hover { transform: none; box-shadow: var(--shadow); }
