/* Page views for the multi-page preview (tools/preview/site.js). Uses the tokens in styles.css. */

.page-view { min-height: 60vh; }
.page { padding-block: 24px 72px; }
.page--narrow { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; text-wrap: balance; }
.page h1:focus { outline: none; }
.page-head { margin: 8px 0 28px; }
.page-head p { color: var(--muted); max-width: 44em; font-size: 1.05rem; }
.page-head a { color: var(--green-700); font-weight: 700; }
.page-section { margin-top: 64px; }
.page-section > h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 20px; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--green-700); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }

/* Product page */
.pdp { display: grid; gap: 28px; margin-top: 16px; align-items: start; }
.pdp > * { min-width: 0; }
.pdp__main { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--cream-2); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__main .badge { position: absolute; left: 14px; top: 14px; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pdp__thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: var(--cream-2); opacity: .7; transition: opacity .2s, border-color .2s; }
.pdp__thumbs button.is-active, .pdp__thumbs button:hover { border-color: var(--green-700); opacity: 1; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__title { margin-bottom: .3em; }
.pdp__info .price { margin-bottom: 14px; }
.pdp__info .price__now { font-size: 1.7rem; font-family: var(--font-display); }
.pdp__summary { color: var(--muted); font-size: 1.02rem; }
.pdp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 6px; }
.pdp__actions .btn { min-width: 220px; }
.pdp .qv__trust a { color: var(--green-700); font-weight: 700; }
.pdp__details { margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.pdp__details > h2 { font-size: 1.5rem; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .pdp__details { padding: 40px 48px; }
}

/* Category page */
.col-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.col-bar .chips, .chips--left { justify-content: flex-start; }
.chips--left { margin-bottom: 24px; }
.col-sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-800); }
.col-sort select { min-height: 40px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--white); font: inherit; font-weight: 700; color: var(--green-800); }
.col-count { color: var(--muted); font-size: .9rem; margin: 8px 0 16px; }
.col-links { display: flex; flex-wrap: wrap; gap: 8px; }
.col-links .chip { display: inline-flex; align-items: center; text-decoration: none; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.guide__noimg { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--green-100); color: var(--green-500); }
.guide__noimg .ico { width: 48px; height: 48px; }
.tag { display: inline-block; padding: .2em .7em; border-radius: var(--r-pill); background: var(--lilac); font-size: .75rem; font-weight: 800; color: #5a3f8a; }
.tag--dog { background: var(--peach); color: #9a4a1c; }
.article { max-width: 760px; margin: 16px auto 0; }
.article__head h1 { margin-top: 12px; }
.article__meta { color: var(--muted); font-size: .92rem; }
.article__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); margin: 8px 0 28px; box-shadow: var(--shadow-md); }

/* Long-form content from the store */
.prose { font-size: 1.04rem; line-height: 1.75; color: var(--ink); max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose h2 { font-size: 1.55rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.22rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .3em; color: var(--green-800); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--sun-600); }
.prose a { color: var(--green-700); font-weight: 700; text-decoration-color: var(--sun-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { color: var(--green-800); }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--sun-500); background: var(--cream-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--green-100); color: var(--green-800); }
.page-help { display: flex; gap: 12px; align-items: center; margin-top: 40px; padding: 16px 20px; border-radius: var(--r-md); background: var(--green-100); }
.page-help .ico { color: var(--green-700); width: 1.6em; height: 1.6em; }
.page-help p { margin: 0; }
.page-help a { color: var(--green-700); font-weight: 800; }

/* Checkout (live store) */
.co { display: grid; gap: 20px; align-items: start; }
.co > * { min-width: 0; }
.co-main { display: grid; gap: 16px; }
.co-box { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.co-box h2 { font-size: 1.25rem; margin: 0 0 14px; }
.co-field { display: grid; gap: 5px; margin-bottom: 14px; }
.co-field label, .co-code label { font-weight: 800; color: var(--green-800); font-size: .92rem; }
.co-field input, .co-field select, .co-field textarea, .co-code input { width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--cream); font: inherit; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus, .co-code input:focus { outline: none; border-color: var(--green-700); }
.co-field [aria-invalid="true"] { border-color: var(--coral); background: #fff5f3; }
.co-field small { color: var(--muted); font-size: .82rem; }
.co-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.co-err { margin: 0; color: #b3412f; font-weight: 700; font-size: .88rem; }
.co-pay { display: grid; gap: 10px; }
.co-option { position: relative; display: block; cursor: pointer; }
.co-option input { position: absolute; opacity: 0; }
.co-option span { display: grid; gap: 2px; padding: 14px 16px 14px 48px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--cream); position: relative; }
.co-option span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.co-option b { color: var(--green-800); }
.co-option small { color: var(--muted); }
.co-option input:checked + span { border-color: var(--green-700); background: var(--green-100); }
.co-option input:checked + span::before { border: 6px solid var(--green-700); }
.co-option input:focus-visible + span { outline: 3px solid var(--sun-500); outline-offset: 2px; }
.co-option input:disabled + span { opacity: .55; cursor: not-allowed; }
.co-summary h2 { margin-bottom: 10px; }
.co-lines { display: grid; gap: 10px; margin-bottom: 12px; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.co-lines img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--cream-2); }
.co-lines b { display: block; font-size: .92rem; line-height: 1.3; }
.co-lines small { display: block; color: var(--muted); font-size: .8rem; }
.co-totals { margin: 0 0 14px; border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 4px; }
.co-totals div { display: flex; justify-content: space-between; }
.co-totals dd { margin: 0; font-weight: 700; }
.co-save dd { color: var(--coral); }
.co-grand { font-size: 1.15rem; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 4px; }
.co-grand dd { font-weight: 800; color: var(--green-800); }
.co-code { display: grid; gap: 6px; margin-bottom: 14px; }
.co-code__row { display: flex; gap: 8px; }
.co-code__row input { text-transform: uppercase; }
.co-form-err { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-sm); background: #fde8e4; color: #8f2f20; font-weight: 700; font-size: .9rem; }
.co-trust { margin-top: 12px; display: grid; gap: 4px; font-size: .82rem; color: var(--muted); padding-left: 1.1em; list-style: disc; }
.co-trust a { color: var(--green-700); font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .co { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .co-side { position: sticky; top: calc(var(--header-h) + 16px); }
}
.co-done { text-align: center; }
.co-done .co-box { text-align: left; margin-top: 8px; }
.co-done__mark { width: 72px; height: 72px; margin: 16px auto 0; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; }
.co-done__mark .ico { width: 38px; height: 38px; }
.co-next { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; margin-bottom: 14px; }
.co-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.store-note { flex-basis: 100%; margin: 8px 0 0; font-weight: 700; color: var(--green-900); }
.store-note.is-error { color: #b3412f; }

/* Contact */
.contact-list { display: grid; gap: 12px; margin-bottom: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-sm); }
.contact-list .ico { width: 1.6em; height: 1.6em; color: var(--green-700); }
.contact-list span { display: block; font-size: .85rem; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 800; color: var(--green-800); font-size: 1.08rem; word-break: break-word; user-select: all; }
.contact-where { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.contact-form { display: grid; gap: 14px; margin-top: 36px; padding: 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.contact-form h2 { font-size: 1.5rem; margin: 0; }
.contact-form__row { display: grid; gap: 6px; }
.contact-form label { font-weight: 800; color: var(--green-800); font-size: .92rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--cream); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-700); }
.contact-form .btn { justify-self: start; }

/* Product key facts, FAQs and collection buying guides (search and answer engines read these too). */
.facts { width: 100%; border-collapse: collapse; font-size: .98rem; }
.facts th, .facts td { padding: 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.facts th { width: 38%; padding-right: 16px; color: var(--muted); font-weight: 700; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 800; color: var(--green-800); list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--green-500); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; color: var(--ink); line-height: 1.65; }
.col-guide { max-width: 820px; }
.col-guide h2 { font-size: 1.5rem; }
