/*
 * Wagz storefront v1.2: packs, homepage sections, product-page and cart refinements.
 * Navigation styles live in navigation.css (owner-maintained); base styles in style.css.
 */

/* ---------- Rhythm: comfortable, not empty ---------- */
.wagz-section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.wagz-section + .wagz-section { padding-block-start: 0; }
.wagz-section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.wagz-section-head .wagz-eyebrow { margin-bottom: .35rem; }
.wagz-section-intro { max-width: 30rem; color: #44544c; margin: 0; }
.wagz-hero .wp-block-buttons { gap: .75rem; }
.wagz-hero .wagz-eyebrow { font-size: .78rem; }

/* ---------- Pack cards (homepage, related packs) ---------- */
.wagz-pack-cards { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.wagz-pack-card { --pack-accent: var(--wagz-sage); background: #fff; border-radius: var(--wagz-r-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--wagz-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.wagz-pack-card:hover { transform: translateY(-4px); box-shadow: var(--wagz-shadow-lift); }
.wagz-pack-card.is-puppy { --pack-accent: var(--wagz-sage); }
.wagz-pack-card.is-walk { --pack-accent: var(--wagz-forest); }
.wagz-pack-card.is-treat { --pack-accent: var(--wagz-mint); }
.wagz-pack-card__img { display: block; background: var(--pack-accent); padding: 12px 12px 0; }
.wagz-pack-card__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--wagz-r-l) - 8px) calc(var(--wagz-r-l) - 8px) 0 0; }
.wagz-pack-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.wagz-pack-card__count { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4a6a5c; }
.wagz-pack-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.wagz-pack-card h3 a { color: var(--wagz-forest); text-decoration: none; }
.wagz-pack-card__tagline { margin: 0; color: #44544c; font-size: .95rem; }
.wagz-pack-card__price { margin: .5rem 0 .9rem; font-size: 1.35rem; font-weight: 700; color: var(--wagz-forest); }
.wagz-pack-card__price span { font-size: .85rem; font-weight: 500; color: #4a5a52; }
.wagz-pack-card__cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.2rem; border-radius: 999px; background: var(--wagz-forest); color: var(--wagz-cream); font-weight: 600; text-decoration: none; }
.wagz-pack-card__cta::after { content: "→"; transition: transform .2s ease; }
.wagz-pack-card__cta:hover { background: var(--wagz-charcoal); color: var(--wagz-cream); }
.wagz-pack-card__cta:hover::after { transform: translateX(3px); }
.wagz-pack-card__cta:focus-visible, .wagz-pack-card h3 a:focus-visible { outline: 3px solid var(--wagz-mint); outline-offset: 2px; }
.wagz-packs-section { background: linear-gradient(180deg, transparent 0, transparent 30%, var(--wagz-sage) 30%, var(--wagz-sage) 100%); }
.wagz-packs-section .wagz-section-head { position: relative; }

/* ---------- Pack landing page: hero ---------- */
.wagz-pack-hero { --pack-bg: var(--wagz-sage); --pack-ink: var(--wagz-forest); --pack-accent: var(--wagz-forest); background: var(--pack-bg); color: var(--pack-ink); padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; margin-block-start: 0; }
.wagz-pack-hero::before { content: ""; position: absolute; inset: 0; background: url(../images/pattern-tile.svg) 0 0 / 360px; opacity: .55; pointer-events: none; }
.wagz-pack-hero > * { position: relative; }
.wagz-pack-hero.is-walk { --pack-bg: var(--wagz-forest); --pack-ink: var(--wagz-cream); --pack-accent: var(--wagz-mint); }
.wagz-pack-hero.is-walk::before { filter: invert(1); opacity: .25; }
.wagz-pack-hero.is-treat { --pack-bg: var(--wagz-mint); }
.wagz-pack-hero :where(h1, h2) { color: var(--pack-ink); }
.wagz-pack-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: .25rem 0 .75rem; }
.wagz-pack-hero .wagz-eyebrow { color: var(--pack-ink); }
.wagz-pack-hero .wagz-eyebrow::after { background: var(--pack-accent); }
.wagz-pack-hero.is-walk .wagz-eyebrow::after { background: var(--wagz-mint); }
.wagz-pack-hero .wagz-lead { font-size: 1.1rem; max-width: 30rem; }
.wagz-pack-hero__cols { gap: clamp(1.5rem, 4vw, 3.5rem); }
.wagz-pack-hero__img { margin: 0; }
.wagz-pack-hero__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--wagz-r-l); box-shadow: 0 24px 48px -24px rgba(13, 59, 46, .45); }

/* Buy box */
.wagz-pack-buy { background: #fff; color: var(--wagz-charcoal); border-radius: var(--wagz-r-m); padding: clamp(1.1rem, 3vw, 1.5rem); margin-top: 1.25rem; box-shadow: var(--wagz-shadow); max-width: 34rem; }
.wagz-pack-buy p { margin: 0; }
.wagz-pack-buy__name { font-weight: 700; color: var(--wagz-forest); font-size: 1.05rem; }
.wagz-pack-buy__price { display: flex; align-items: baseline; gap: .4rem; }
.wagz-pack-buy__from { font-size: .9rem; color: #4a5a52; }
.wagz-pack-buy__amount { font-size: 2rem; font-weight: 700; color: var(--wagz-forest); line-height: 1.1; }
.wagz-pack-buy__saving { font-size: .9rem; color: #2a5a45; margin-top: .25rem !important; }
.wagz-pack-buy__demo { display: inline-block; margin-top: .6rem !important; font-size: .78rem; font-weight: 600; color: #5a4a1e; background: #f5ecd6; border-radius: 999px; padding: .3rem .75rem; }
.wagz-pack-buy__oos { margin-top: .9rem !important; font-weight: 600; color: #a12d24; }
.wagz-pack-form { margin-top: 1rem; }
.wagz-pack-sizes { border: 0; margin: 0 0 .9rem; padding: 0; min-width: 0; }
.wagz-pack-sizes legend { font-weight: 700; color: var(--wagz-forest); margin-bottom: .5rem; padding: 0; }
.wagz-pack-sizes__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.wagz-pack-size { position: relative; cursor: pointer; }
.wagz-pack-size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wagz-pack-size > span { box-sizing: border-box; display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .65rem .85rem; border: 2px solid var(--wagz-sage); border-radius: 12px; background: var(--wagz-cream); transition: border-color .15s, background .15s; }
.wagz-pack-size strong { color: var(--wagz-forest); }
.wagz-pack-size small { font-size: .78rem; color: #4a5a52; }
.wagz-pack-size__price { font-weight: 600; }
.wagz-pack-size:hover > span { border-color: var(--wagz-mint); }
.wagz-pack-size input:checked + span { border-color: var(--wagz-forest); background: #fff; box-shadow: inset 0 0 0 1px var(--wagz-forest); }
.wagz-pack-size input:focus-visible + span { outline: 3px solid var(--wagz-mint); outline-offset: 2px; }
.wagz-pack-size.is-unavailable { cursor: not-allowed; }
.wagz-pack-size.is-unavailable > span { opacity: .55; text-decoration: line-through; }
.needs-size .wagz-pack-size > span { border-color: #c0392b; }
.wagz-pack-sizes__help { font-size: .85rem; margin-top: .5rem !important; }
.wagz-pack-form__row { display: flex; gap: .6rem; }
.wagz-pack-qty { display: flex; }
.wagz-pack-qty input { width: 4.75rem; height: auto; min-height: 48px; text-align: center; border-radius: 999px; padding: .6rem .5rem; box-sizing: border-box; }
.wagz-pack-form__submit { flex: 1; cursor: pointer; border: 0; padding: .95rem 1.25rem; font-size: 1rem; }
.wagz-pack-form__hint { margin-top: .6rem !important; font-size: .88rem; font-weight: 600; color: #a12d24; }

/* Mobile sticky buy bar */
.wagz-pack-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: var(--wagz-forest); color: var(--wagz-cream); box-shadow: 0 -8px 24px rgba(13, 59, 46, .22); }
.wagz-pack-sticky[hidden] { display: none; }
.wagz-pack-sticky__text { display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; min-width: 0; }
.wagz-pack-sticky__text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wagz-pack-sticky .wp-element-button { background: var(--wagz-mint); color: var(--wagz-forest); border: 0; padding: .7rem 1.1rem; font-size: .9rem; white-space: nowrap; cursor: pointer; }
body.has-wagz-sticky .wagz-footer { padding-bottom: 5rem; }

/* ---------- Pack landing page: sections ---------- */
.wagz-pack-section .wagz-section-head { text-align: left; }
.wagz-pack-section .wagz-section-head > * { max-width: none; margin-left: 0 !important; margin-right: 0 !important; }
.wagz-pack-related .wagz-pack-cards { max-width: 900px; margin-inline: 0 auto; }
.wagz-pack-related .wagz-pack-card__img img { aspect-ratio: 4 / 3; }
.wagz-pack-section .wagz-section-head p { max-width: 38rem; margin-top: .5rem; }
.wagz-pack-contents { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.wagz-pack-item { background: #fff; border-radius: var(--wagz-r-m); padding: .75rem .75rem 1rem; display: flex; flex-direction: column; }
.wagz-pack-item__img { position: relative; display: block; border-radius: var(--wagz-r-s); overflow: hidden; background: var(--wagz-sage); margin-bottom: .75rem; }
.wagz-pack-item__img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.wagz-pack-item__qty { position: absolute; top: .5rem; left: .5rem; background: var(--wagz-forest); color: var(--wagz-cream); font-weight: 700; font-size: .8rem; border-radius: 999px; padding: .2rem .6rem; }
.wagz-pack-item__body { padding-inline: .3rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.wagz-pack-item h3 { font-size: 1rem; margin: 0; line-height: 1.3; }
.wagz-pack-item h3 a { color: var(--wagz-forest); text-decoration: none; }
.wagz-pack-item h3 a:hover { text-decoration: underline; }
.wagz-pack-item p { margin: 0; font-size: .82rem; color: #4a5a52; }
.wagz-pack-item__size { color: #2a5a45 !important; font-weight: 600; }
.wagz-pack-item__price { margin-top: auto !important; padding-top: .35rem; }
.wagz-ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.wagz-ticks li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.wagz-ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--wagz-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3B2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.wagz-pack-suits { gap: clamp(1.5rem, 4vw, 3.5rem); }
.wagz-pack-detail { margin: 0; }
.wagz-pack-detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wagz-r-l); }
.wagz-pack-detail figcaption { font-size: .85rem; color: #4a5a52; margin-top: .6rem; text-align: left; }
.wagz-pack-story { background: var(--wagz-sage); padding-block: clamp(2.5rem, 6vw, 4rem) !important; }
.wagz-pack-story.is-walk { background: #e4efe8; }
.wagz-pack-story.is-treat { background: #e7f4ec; }
.wagz-pack-story__cols { gap: clamp(1.5rem, 4vw, 3.5rem); }
.wagz-pack-life { margin: 0; }
.wagz-pack-life img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--wagz-r-l); }
.wagz-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.25rem 0 0; }
.wagz-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1rem; min-height: 2.2rem; }
.wagz-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--wagz-forest); color: var(--wagz-cream); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.wagz-pack-faqs > * { max-width: 46rem; }
.wagz-pack-faqs .wagz-faq { background: #fff; }
.wagz-pack-related { padding-block-start: clamp(2.5rem, 6vw, 4rem) !important; border-top: 1px solid rgba(13, 59, 46, .1); }
.wagz-pack-cta { --pack-bg: var(--wagz-forest); background: var(--pack-bg); color: var(--wagz-cream); padding-block: clamp(2rem, 5vw, 3rem); margin-block-start: 0; }
.wagz-pack-cta.is-treat { --pack-bg: #1c4a3b; }
.wagz-pack-cta h2 { color: var(--wagz-cream); margin-top: 0; }
.wagz-pack-cta .wagz-pack-buy { margin-top: 0; margin-left: auto; }
.wagz-pack-cta__cols { gap: clamp(1.5rem, 4vw, 3rem); }

/* ---------- Homepage: kit feature facts, brand story ---------- */
.wagz-facts { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.wagz-facts li { margin: 0; font-size: .8rem; font-weight: 600; color: var(--wagz-forest); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: .3rem .75rem; }
.wagz-promo .wp-block-buttons { gap: .6rem; }
.wagz-story__cols { gap: clamp(1.5rem, 5vw, 4rem); }
.wagz-story__art figure { margin: 0; background: #fff; border-radius: var(--wagz-r-l); padding: clamp(1.5rem, 4vw, 3rem); }
.wagz-story__art img { width: 100%; height: auto; display: block; }
.wagz-story h2 { margin-top: .25rem; }
.wagz-divider { margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) !important; max-width: 520px; opacity: .8; }
.wagz-divider img { width: 100%; height: auto; }

/* ---------- Footer: brand + four link groups ---------- */
@media (min-width: 782px) {
	.wagz-footer-cols { display: grid !important; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
	.wagz-footer-cols > .wp-block-column { flex-basis: auto !important; }
}
@media (min-width: 600px) and (max-width: 781px) {
	.wagz-footer-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
	.wagz-footer-cols > .wp-block-column:first-child { grid-column: 1 / -1; }
}

/* ---------- Product page ---------- */
.wagz-suits { margin: 0 0 1rem; font-size: .9rem; background: #fff; border-radius: 12px; padding: .7rem .9rem; border-left: 4px solid var(--wagz-mint); }
.wagz-suits strong { color: var(--wagz-forest); margin-right: .35rem; }
.wagz-pack-summary { margin: 0 0 1rem; background: #fff; border-radius: 12px; padding: .9rem 1rem; }
.wagz-pack-summary h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .5rem; }
.wagz-pack-summary .wagz-kit-summary { margin: 0; }
.wagz-pack-summary .wagz-kit-list { margin-bottom: .5rem; }
.wagz-pack-summary .wagz-kit-total__price { font-size: 1.1rem; }
.wagz-pack-summary .wagz-pack-link { display: inline-block; margin-top: .5rem; font-weight: 600; }
/* Size choice as buttons (select kept for WooCommerce, visually replaced). */
.wagz-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.wagz-pill { cursor: pointer; border: 2px solid var(--wagz-sage); background: #fff; color: var(--wagz-forest); border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 600; font-size: .92rem; transition: border-color .15s, background .15s; }
.wagz-pill:hover { border-color: var(--wagz-mint); }
.wagz-pill[aria-pressed="true"] { background: var(--wagz-forest); border-color: var(--wagz-forest); color: var(--wagz-cream); }
.wagz-pill.is-unavailable { opacity: .55; text-decoration: line-through; }
.wagz-pill:focus-visible { outline: 3px solid var(--wagz-mint); outline-offset: 2px; }
.wagz-has-pills select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.wagz-product-summary table.variations td.value { position: relative; }
/* Zero-review state. */
.woocommerce-Reviews .woocommerce-noreviews { font-size: 1rem; color: var(--wagz-forest); font-weight: 600; margin-bottom: .35rem; }
.woocommerce-Reviews .woocommerce-verification-required { color: #4a5a52; font-size: .92rem; }
/* Complementary and related product cards: never squeeze buttons. */
.wagz-related .wc-block-product-template, .wagz-complementary .wc-block-product-template { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) !important; display: grid !important; }
.wagz-related .wc-block-product-template > li, .wagz-complementary .wc-block-product-template > li { width: auto !important; max-width: none !important; }
li.wc-block-product .wp-block-woocommerce-product-button .wp-block-button__link { white-space: nowrap; }

/* ---------- Mini-cart drawer ---------- */
.wc-block-mini-cart__drawer .components-modal__content, .wc-block-mini-cart__drawer .wc-block-mini-cart__template-part { background: var(--wagz-cream); }
.wc-block-mini-cart__title { font-family: inherit; color: var(--wagz-forest); font-size: 1.35rem !important; padding: 1.25rem 1.25rem .5rem !important; margin: 0 !important; }
.wc-block-mini-cart__items { padding: .5rem 1.25rem !important; }
.wc-block-mini-cart__items .wc-block-cart-items__row { background: #fff; border-radius: 12px; padding: .75rem !important; margin-bottom: .6rem; }
.wc-block-mini-cart__items .wc-block-components-product-name { color: var(--wagz-forest); font-weight: 600; text-decoration: none; }
.wc-block-mini-cart__footer { background: #fff; padding: 1.1rem 1.25rem 1.4rem !important; box-shadow: 0 -6px 18px rgba(13, 59, 46, .08); }
.wc-block-mini-cart__footer-actions { gap: .6rem; }
.wc-block-mini-cart__footer .wc-block-components-button { border-radius: 999px !important; font-weight: 600; }
.wc-block-mini-cart__footer-checkout { background: var(--wagz-forest) !important; color: var(--wagz-cream) !important; }
.wc-block-mini-cart__footer-cart { border: 2px solid var(--wagz-forest) !important; color: var(--wagz-forest) !important; background: transparent !important; }
.wc-block-components-quantity-selector { border-radius: 999px !important; }
.wc-block-components-quantity-selector::after { border-radius: 999px !important; border-color: var(--wagz-sage) !important; }

/* ---------- Cart and checkout: readable totals, consistent controls ---------- */
.wc-block-cart .wc-block-cart-items__row { border-color: rgba(13, 59, 46, .1) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.2rem !important; font-weight: 700 !important; color: var(--wagz-forest); }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--wagz-forest) !important; color: var(--wagz-cream) !important; font-weight: 600 !important; padding-block: 1rem !important; }
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--wagz-charcoal) !important; }
.wc-block-components-product-name { color: var(--wagz-forest); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.wagz-pack-hero__cols { flex-direction: column-reverse; }
	.wagz-pack-hero h1 { font-size: 2.1rem; }
	.wagz-pack-hero .wagz-lead { font-size: 1rem; }
	.wagz-pack-buy { max-width: none; }
	.wagz-pack-sizes__opts { grid-template-columns: 1fr 1fr; }
	.wagz-pack-contents { grid-template-columns: 1fr 1fr; gap: .65rem; }
	.wagz-pack-item { padding: .5rem .5rem .8rem; }
	.wagz-pack-item h3 { font-size: .92rem; }
	.wagz-pack-cta .wagz-pack-buy { margin-left: 0; }
	.wagz-packs-section { background: var(--wagz-sage); }
	.wagz-story__art { max-width: 280px; margin-inline: auto; }
	.wagz-pack-cards { gap: 1rem; }
	.wagz-pack-life img { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
	.wagz-pack-form__row { flex-wrap: wrap; }
	.wagz-pack-form__submit { flex-basis: 100%; }
	.wagz-pack-qty input { width: 100%; }
	.wagz-pack-qty { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.wagz-pack-card, .wagz-pack-card__cta::after { transition: none; }
}

/* Header labels on phones: a little larger for legibility (navigation.css sets .65rem). */
@media (max-width: 781px) {
	.wagz-header-actions .label, .wagz-cart-label { font-size: .72rem; }
}

/* ---------- Pack buy box: age note and delivery summary beside the buying controls ---------- */
.wagz-pack-buy__age { display: flex; gap: .55rem; align-items: flex-start; margin: .75rem 0 0 !important; padding: .6rem .75rem; border-radius: 10px; background: var(--wagz-sage); color: var(--wagz-forest); font-size: .88rem; font-weight: 600; line-height: 1.4; }
.wagz-pack-buy__age::before { content: ""; flex: 0 0 1.1rem; height: 1.1rem; margin-top: .1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3B2E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.wagz-pack-buy__delivery { display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: baseline; margin: .9rem 0 0 !important; padding-top: .8rem; border-top: 1px solid var(--wagz-sage); font-size: .86rem; color: var(--wagz-charcoal); }
.wagz-pack-buy__delivery span { position: relative; padding-left: 1.6rem; }
.wagz-pack-buy__delivery span::before { content: ""; position: absolute; left: 0; top: .05rem; width: 1.15rem; height: 1.15rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D3B2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2zM13 9h4.5l3.5 3.5V16h-8'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.wagz-pack-buy__delivery a { color: var(--wagz-forest); font-weight: 600; }

/* "Shop individual items" under the pack contents. */
.wagz-pack-contents__more { margin: 1.25rem 0 0 !important; font-size: .95rem; color: var(--wagz-charcoal); }
.wagz-pack-contents__more a { color: var(--wagz-forest); font-weight: 700; }

/* Pack cards: who it suits (compare contents, suitability and price at a glance). */
.wagz-pack-card__suits { margin: .2rem 0 0; display: flex; gap: .45rem; align-items: flex-start; font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--wagz-forest); }
.wagz-pack-card__suits::before { content: ""; flex: 0 0 1rem; height: 1rem; margin-top: .1rem; border-radius: 50%; background: var(--wagz-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%230D3B2E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }

/* ---------- Product gallery: never blank while the slider script loads ---------- */
/* WooCommerce starts the gallery at opacity 0 and reveals it after its slider initialises. Show the
   main image straight away, with its square space reserved, and hide the other slides until the
   slider wraps them (it adds .flex-viewport). */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; }
.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) { display: none; }

/* ---------- Cart: one suggestion towards free delivery (filled from the live cart) ---------- */
.wagz-cart-suggest { margin-top: 2rem; max-width: 520px; }
.wagz-cart-suggest__title { font-size: var(--wp--preset--font-size--large, 1.25rem); margin: 0 0 .75rem; }
.wagz-cart-suggest__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; background: #fff; border-radius: var(--wagz-r-m); padding: .9rem; box-shadow: var(--wagz-shadow); }
.wagz-cart-suggest__img img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--wagz-cream); }
.wagz-cart-suggest__body { display: grid; gap: .2rem; justify-items: start; }
.wagz-cart-suggest__name { font-weight: 700; color: var(--wagz-forest); text-decoration: none; }
.wagz-cart-suggest__name:hover { text-decoration: underline; }
.wagz-cart-suggest__price, .wagz-cart-suggest__note { margin: 0; }
.wagz-cart-suggest__price { font-weight: 700; }
.wagz-cart-suggest__note { font-size: .85rem; color: var(--wagz-charcoal); }
.wagz-cart-suggest__add { margin-top: .4rem; padding: .55rem 1.1rem; font-size: .9rem; }

/* ==========================================================================
   Pack pages, Oct 2026: match the streamlined homepage.
   Rounded pack panel on a white page, brand wallpaper per pack, and a hero
   sized so the price, size choice and Add to cart fit in the first screen.
   ========================================================================== */
.wagz-pack-hero { box-sizing: border-box; width: auto; max-width: 1192px; margin: 24px auto 0 !important; border-radius: 18px; overflow: hidden; padding: clamp(22px, 3vh, 34px) clamp(20px, 3.4vw, 44px) !important; }
.wagz-pack-hero::before { background: url(../images/brand/pattern-tile-sage.svg) 0 0 / 300px; opacity: 1; filter: none; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.6) 45%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.6) 45%, #000 70%); }
.wagz-pack-hero.is-walk::before { background-image: url(../images/brand/pattern-tile-forest.svg); filter: none; opacity: 1; }
.wagz-pack-hero.is-treat::before { background-image: url(../images/pattern-tile.svg); opacity: .8; }
.wagz-pack-hero__cols { gap: clamp(20px, 3vw, 44px) !important; align-items: center !important; }
.wagz-pack-hero__cols > .wp-block-column:first-child { flex: 1 1 54% !important; }
.wagz-pack-hero__cols > .wp-block-column:last-child { flex: 1 1 46% !important; }
.wagz-pack-hero .wagz-eyebrow { font-size: 11.5px; margin-bottom: 4px !important; }
.wagz-pack-hero h1 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin: 4px 0 10px !important; }
.wagz-pack-hero .wagz-lead { font-size: 15px; line-height: 1.6; max-width: 34rem; margin: 0 !important; }
/* The image never makes the hero taller than the window. */
.wagz-pack-hero__img img { aspect-ratio: 1; height: auto; max-height: min(560px, calc(100vh - 290px)); min-height: 300px; width: auto; max-width: 100%; margin-inline: auto; display: block; object-fit: contain; background: #fff; }
.wagz-pack-buy.is-hero { margin-top: 16px !important; padding: 16px 20px; border-radius: 14px; max-width: 100%; }
.wagz-pack-buy.is-hero .wagz-pack-buy__amount { font-size: 28px; }
.wagz-pack-buy.is-hero .wagz-pack-buy__saving { font-size: 13px; }
.wagz-pack-buy.is-hero .wagz-pack-buy__demo { font-size: 11px; padding: 3px 10px; margin-top: 6px !important; }
.wagz-pack-buy.is-hero .wagz-pack-buy__age { margin-top: 8px !important; padding: 7px 10px; font-size: 12.5px; line-height: 1.45; }
.wagz-pack-buy.is-hero .wagz-pack-sizes { margin: 10px 0 8px; }
.wagz-pack-buy.is-hero .wagz-pack-sizes legend { font-size: 14px; margin-bottom: 6px; }
.wagz-pack-buy.is-hero .wagz-pack-size > span { padding: 8px 12px; }
.wagz-pack-buy.is-hero .wagz-pack-sizes__help { font-size: 12.5px; margin-top: 6px !important; }
.wagz-pack-buy.is-hero .wagz-pack-form { margin-top: 10px; }
.wagz-pack-buy.is-hero .wagz-pack-form__submit { padding-block: 12px; }
.wagz-pack-buy.is-hero .wagz-pack-buy__delivery { margin-top: 10px !important; padding-top: 9px; font-size: 12.5px; }

/* Lower sections as rounded panels, like the homepage. */
.wagz-pack-story, .wagz-pack-cta { box-sizing: border-box; width: auto; max-width: 1192px; margin-left: auto !important; margin-right: auto !important; border-radius: 18px; overflow: hidden; padding-inline: clamp(20px, 3.4vw, 44px) !important; }
.wagz-pack-cta { position: relative; isolation: isolate; margin-top: 48px !important; margin-bottom: 56px !important; }
.wagz-pack-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../images/brand/pattern-tile-forest.svg) 0 0 / 300px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%); mask-image: linear-gradient(90deg, transparent 30%, #000 85%); pointer-events: none; }

@media (max-width: 1240px) {
	.wagz-pack-hero, .wagz-pack-story, .wagz-pack-cta { margin-left: 24px !important; margin-right: 24px !important; }
}
@media (max-width: 781px) {
	.wagz-pack-hero, .wagz-pack-story, .wagz-pack-cta { margin-left: 16px !important; margin-right: 16px !important; border-radius: 16px; }
	.wagz-pack-hero { margin-top: 14px !important; padding: 18px 18px 20px !important; }
	.wagz-pack-hero::before { -webkit-mask-image: none; mask-image: none; opacity: .5; }
	.wagz-pack-hero.is-walk::before { opacity: .6; }
	/* Phone: a shorter photo so the price and size choice come into view sooner. */
	.wagz-pack-hero__cols { gap: 14px !important; }
	.wagz-pack-hero__img img { width: 100%; max-height: 190px; min-height: 0; aspect-ratio: auto; object-fit: contain; border-radius: 14px; }
	.wagz-pack-hero h1 { font-size: 32px; }
	.wagz-pack-hero .wagz-lead { font-size: 14px; }
	.wagz-pack-cta { margin-top: 32px !important; margin-bottom: 36px !important; }
}
@media (min-width: 782px) {
	.wagz-pack-hero .wagz-lead { font-size: 14.5px; line-height: 1.55; }
	.wagz-pack-buy.is-hero { padding: 14px 18px; }
	.wagz-pack-buy.is-hero .wagz-pack-size > span { padding: 6px 12px; gap: 0; }
	.wagz-pack-buy.is-hero .wagz-pack-sizes { margin: 8px 0 6px; }
	.wagz-pack-buy.is-hero .wagz-pack-form { margin-top: 8px; }
}
/* Short laptop screens (e.g. 1366 × 768): keep Add to cart in the first screen. */
@media (min-width: 782px) and (max-height: 860px) {
	.wagz-pack-hero { padding-block: 18px !important; margin-top: 16px !important; }
	.wagz-pack-hero h1 { font-size: clamp(32px, 3vw, 40px); margin-bottom: 6px !important; }
	.wagz-pack-hero .wagz-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.wagz-pack-hero .wagz-pack-buy__delivery { display: none; }
	.wagz-pack-buy.is-hero { margin-top: 12px !important; }
	.wagz-pack-hero__img img { max-height: calc(100vh - 270px); min-height: 260px; }
}
/* Pack page sections share the homepage's 1192px content width. */
.wagz-pack-section > .alignwide { max-width: 1192px !important; margin-left: auto !important; margin-right: auto !important; }
.wagz-pack-section { padding-block: clamp(32px, 5vw, 56px) !important; }
/* Mobile buy bar: always above page content, and room left for it at the bottom of the page. */
.wagz-pack-sticky { z-index: 95; }
body.has-wagz-sticky .wagz-site-footer { padding-bottom: 76px; }
