/* Product pages (Dog Toys, Dog Chews). Loads after tokens.css, base.css and pages.css. */

/* ---------- shared tile (cut-out on a soft colour tile, stitched dashed edge) ---------- */
.toy-tile { position: relative; display: grid; justify-items: center; gap: 12px; padding: 30px 20px 24px; border-radius: var(--r-panel); background: var(--tile-bg, var(--white)); outline: 2px dashed rgba(31, 74, 45, .3); outline-offset: -10px; transition: transform .25s ease, box-shadow .25s ease; }
.toy-tile__img { position: relative; width: 100%; height: 250px; display: grid; place-items: center; }
.toy-tile__img::before { content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 52% 48% 46% 54% / 50% 46% 54% 50%; background: var(--blob, rgba(255, 253, 248, .55)); }
.toy-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 10px rgba(31, 74, 45, .25)); }
.toy-tile__name { margin: 0; font: 400 24px/1.1 'Young Serif', Georgia, serif; }
@media (hover: hover) {
  .toy-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
}

/* ---------- Dog Toys: 1. the collection ---------- */
.pd-open { padding: 56px 0 120px; text-align: center; }
.pd-open .hand { font-size: 30px; line-height: 1; margin: 0 0 8px; }
.pd-open h1 { font-size: clamp(38px, 5.2vw, 68px); max-width: 20ch; margin: 0 auto; }
.pd-open__lede { margin: 22px auto 0; max-width: 44ch; font-size: 19px; color: var(--ink-soft); }
.pd-tiles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- 2. toys in action (dark green band, three photos) ---------- */
.pd-action { background: var(--ink); color: var(--paper); padding: 84px 0 100px; --wave-color: var(--ink); }
.pd-action__head { text-align: center; }
.pd-action .hand { color: var(--butter); font-size: 30px; line-height: 1; margin: 0 0 8px; }
.pd-action h2 { color: var(--white); font-size: clamp(32px, 4vw, 50px); }
.pd-gallery { margin-top: 48px; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; height: 600px; }
.pd-gallery figure { position: relative; margin: 0; min-height: 0; overflow: hidden; border-radius: var(--r-photo); }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery figure:first-child { grid-row: 1 / 3; border-radius: 42% 58% 46% 54% / 52% 44% 56% 48%; }
.pd-gallery figure:nth-child(3) img { object-position: center 40%; }
.pd-pill { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1; padding: 9px 16px; border-radius: 99px; }
.pd-gallery figure:first-child .pd-pill { left: 50%; bottom: 7%; transform: translateX(-50%); }

/* ---------- 3. swatch book ---------- */
.pd-book { background: var(--sage-pale); padding: 84px 0 100px; --wave-color: var(--sage-pale); }
.pd-book__head { text-align: center; max-width: 640px; margin: 0 auto; }
.pd-book__head .hand { font-size: 28px; line-height: 1; margin: 0 0 8px; }
.pd-book__head h2 { font-size: clamp(32px, 4vw, 48px); }
.pd-book__head p { margin: 14px 0 0; font-size: 18px; color: var(--ink-soft); }

/* texture swatch: zoomed crop of a real product photo.
   --x / --y = point in the 520px-wide source, --k = zoom, --s = swatch size */
.swatch { --s: 180px; --k: 1.4; width: var(--s); height: var(--s); flex: none; border-radius: 14px; background-repeat: no-repeat; background-color: var(--sage-pale);
  background-size: calc(520px * var(--k)) auto;
  background-position: calc(var(--s) / 2 - var(--x) * var(--k) * 1px) calc(var(--s) / 2 - var(--y) * var(--k) * 1px); }
.swatch--suede { background-image: url('../assets/img/flam-open-520.webp'); --x: 130; --y: 470; }
.swatch--jute { background-image: url('../assets/img/flam-back-520.webp'); --x: 250; --y: 470; }
.swatch--coco { background-image: url('../assets/img/flam-open-520.webp'); --x: 405; --y: 548; --k: 1.9; }
.swatch--rope { background-image: url('../assets/img/flam-open-520.webp'); --x: 205; --y: 850; --k: 1.9; }

.sw-cards { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sw-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 20px 26px; border-radius: 22px; background: var(--card, var(--white)); outline: 2px dashed rgba(31, 74, 45, .3); outline-offset: -9px; box-shadow: var(--shadow); }
.sw-card:nth-child(odd) { transform: rotate(-1.2deg); }
.sw-card:nth-child(even) { transform: rotate(1deg) translateY(14px); }
.sw-card::before { content: ''; position: absolute; top: 16px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--sage-pale); box-shadow: inset 0 2px 0 rgba(31, 74, 45, .25); }
.sw-card__no { margin: 18px 0 0; font-size: 13px; font-weight: 700; opacity: .92; }
.sw-card h3 { margin-top: 4px; font-size: 26px; }
.sw-card p:not(.sw-card__no) { margin: 8px 0 0; font-size: 15.5px; }
.sw-card .hand { margin-top: auto; padding-top: 12px; font-size: 24px; line-height: 1; }

.pd-stitch { text-wrap: balance; margin: 64px auto 0; display: flex; align-items: center; justify-content: center; gap: 16px; font: 400 clamp(22px, 2.6vw, 30px)/1.2 'Young Serif', Georgia, serif; text-align: center; }
.pd-stitch::before, .pd-stitch::after { content: ''; flex: none; width: clamp(30px, 8vw, 90px); border-top: 3px dashed var(--red); }

/* ---------- 4. our designs, or yours ---------- */
.pd-custom { padding: 100px 0 110px; }
.pd-custom__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pd-custom h2 { font-size: clamp(34px, 4.4vw, 56px); }
.pd-custom__lede { margin: 18px 0 0; font-size: 19px; color: var(--ink-soft); max-width: 40ch; }
.pd-custom .btn { margin-top: 32px; }

.pd-studio { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: center; }
.pd-studio__sketch, .pd-studio__toy { position: relative; aspect-ratio: 1.1; display: grid; place-items: center; }
.pd-studio__sketch { border: 2px dashed var(--ink); border-radius: 22px; background: repeating-linear-gradient(0deg, transparent 0 17px, rgba(31, 74, 45, .09) 17px 18px), repeating-linear-gradient(90deg, transparent 0 17px, rgba(31, 74, 45, .09) 17px 18px), var(--white); }
.pd-studio__sketch img { width: 62%; filter: grayscale(1) contrast(1.6) brightness(1.4); opacity: .55; }
.pd-studio__toy { background: var(--butter); border-radius: 52% 48% 46% 54% / 50% 46% 54% 50%; }
.pd-studio__toy img { width: 66%; filter: drop-shadow(0 12px 10px rgba(31, 74, 45, .25)); }
.pd-studio figcaption { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 28px; line-height: 1; }
.pd-studio figcaption svg { width: 46px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.pd-steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 26px 84px; border-radius: 22px; background: var(--white); outline: 2px dashed rgba(31, 74, 45, .3); outline-offset: -9px; font-size: 18px; line-height: 1.35; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 24px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--white); font: 400 22px/1 'Young Serif', Georgia, serif; }

/* ---------- 5. request band, 6. pairing band ---------- */
.pd-request { background: var(--red); color: var(--white); text-align: center; padding: 70px 0 84px; --wave-color: var(--red); }
.pd-request h2 { color: var(--white); font-size: clamp(32px, 4.2vw, 52px); }
.pd-request p { margin: 12px auto 0; max-width: 46ch; font-size: 18px; }
.pd-request .btn { margin-top: 30px; box-shadow: 0 5px 0 #7C2415; }
.pd-request .btn:hover { box-shadow: 0 7px 0 #7C2415; }
.pd-request .btn:active { box-shadow: 0 2px 0 #7C2415; }

.pd-pair { background: var(--butter); padding: 72px 0 84px; --wave-color: var(--butter); }
.pd-pair__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.pd-pair__pics { position: relative; height: 262px; }
.pd-pair__pics img { position: absolute; height: auto; filter: drop-shadow(0 8px 8px rgba(31, 74, 45, .2)); }
.pd-pair__pics img:nth-child(1) { left: 2%; top: 2%; width: 42%; transform: rotate(-4deg); }
.pd-pair__pics img:nth-child(2) { left: 28%; top: 53%; width: 38%; transform: rotate(-9deg); }
.pd-pair__pics img:nth-child(3) { left: 52%; top: 4%; width: 40%; transform: rotate(8deg); }
.pd-pair h2 { font-size: clamp(30px, 3.6vw, 44px); }
.pd-pair p { margin: 12px 0 22px; font-size: 18px; max-width: 36ch; }

/* ---------- phones and tablets ---------- */
@media (max-width: 1000px) {
  .sw-cards { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .pd-steps { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .pd-open { padding: 36px 0 90px; }
  .pd-open__lede { font-size: 17px; }
  .pd-tiles { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
  .toy-tile { padding: 18px 10px 16px; gap: 6px; }
  .toy-tile__img { height: 170px; }
  .toy-tile__name { font-size: 20px; }
  .pd-action { padding: 64px 0 76px; }
  .pd-gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; gap: 16px; margin-top: 34px; }
  .pd-gallery figure { aspect-ratio: 4 / 3; }
  .pd-gallery figure:first-child { grid-row: auto; aspect-ratio: 1 / 1; }
  .pd-book { padding: 64px 0 76px; }
  .pd-custom { padding: 72px 0 80px; }
  .pd-custom__grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-steps { margin-top: 44px; }
  .pd-pair__grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-pair__pics { height: 225px; max-width: 420px; }
}
@media (max-width: 600px) {
  .swatch { --s: 120px; }
  .sw-card { padding: 40px 12px 20px; }
  .sw-card h3 { font-size: 21px; }
  .sw-card p:not(.sw-card__no) { font-size: 14.5px; }
  .sw-card .hand { font-size: 21px; }
  .pd-custom .btn { width: 100%; justify-content: center; }
  .pd-request .btn { width: 100%; justify-content: center; }
}

/* ================= Dog Chews page ================= */

/* 1. opener: headline left, knotted bone tilted on a butter blob right */
.ch-open { padding: 56px 0 120px; }
.ch-open__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ch-open .hand { font-size: 30px; line-height: 1; margin: 0 0 8px; }
.ch-open h1 { font-size: clamp(38px, 5vw, 64px); max-width: 15ch; }
.ch-open__lede { margin: 22px 0 32px; max-width: 42ch; font-size: 19px; color: var(--ink-soft); }
.ch-open__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ch-open__art::before { content: ''; position: absolute; inset: 4%; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: var(--butter); }
.ch-open__art img { position: relative; width: 92%; transform: rotate(-14deg); filter: drop-shadow(0 14px 12px rgba(31, 74, 45, .28)); }

/* 2. supply band (dark green) */
.ch-supply { background: var(--ink); color: var(--paper); padding: 84px 0 96px; text-align: center; --wave-color: var(--ink); }
.ch-supply .hand { color: var(--butter); font-size: 30px; line-height: 1; margin: 0 0 8px; }
.ch-supply h2 { color: var(--white); font-size: clamp(32px, 4vw, 50px); }
.ch-supply__big { margin: 26px 0 0; font-size: 20px; }
.ch-supply__big strong { display: block; font: 400 clamp(56px, 8vw, 104px)/1 'Young Serif', Georgia, serif; color: var(--butter); }
.ch-proofs { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.ch-proof { position: relative; padding: 28px 26px 30px; border-radius: 22px; background: rgba(255, 253, 248, .07); outline: 2px dashed rgba(242, 198, 91, .55); outline-offset: -9px; }
.ch-proof__icon { float: right; width: 64px; height: 64px; margin: 0 0 8px 12px; padding: 14px; box-sizing: border-box; border-radius: 50%; background: var(--butter); color: var(--ink); }
.ch-proof h3 { color: var(--butter); font-size: 24px; }
.ch-proof p { margin: 10px 0 0; font-size: 16.5px; color: #E9EFE6; }

/* 3. the range: four tiles, tap one, breakdown opens below */
.ch-range { padding: 100px 0 110px; }
.ch-range__head { text-align: center; max-width: 620px; margin: 0 auto; }
.ch-range__head .hand { font-size: 28px; line-height: 1; margin: 0 0 8px; }
.ch-range__head h2 { font-size: clamp(32px, 4vw, 48px); }
.ch-range__head p:last-child { margin: 14px 0 0; font-size: 18px; color: var(--ink-soft); }
.ch-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.chew { width: 100%; height: 100%; display: grid; align-content: start; justify-items: center; gap: 8px; padding: 26px 14px 22px; border: 0; border-radius: var(--r-panel); background: var(--tile-bg, var(--white)); outline: 2px dashed rgba(31, 74, 45, .3); outline-offset: -10px; font: inherit; color: inherit; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.chew[aria-pressed="true"] { outline: 3px solid var(--butter); outline-offset: -6px; box-shadow: var(--shadow); }
.chew__img { position: relative; width: 100%; height: 150px; }
.chew__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(31, 74, 45, .22)); }
.chew__name { font: 400 22px/1.1 'Young Serif', Georgia, serif; }
.chew__pct { display: inline-block; padding: 4px 12px; border-radius: 99px; background: #FBE9B7; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.chew__pct--soft { background: rgba(255, 253, 248, .75); font-weight: 500; }
@media (hover: hover) {
  .chew:hover { transform: translateY(-5px); }
}

.chew-detail { margin: 40px auto 0; max-width: 820px; }
.chew-panel { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 30px 34px; border-radius: 28px; background: var(--white); border: 3px solid var(--butter); }
.chew-panel[hidden] { display: none; }
.chew-panel > img { width: 100%; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(31, 74, 45, .22)); }
.chew-panel h3 { font-size: 28px; margin-bottom: 14px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 86px 1fr 64px; align-items: center; gap: 12px; font-size: 16px; }
.bar i { display: block; height: 12px; width: var(--w, 100%); min-width: 6px; border-radius: 99px; background: var(--red); }
.bar i.f { background: var(--butter); }
.bar i.a { background: var(--sage); }
.bar i.m { background: #92D2C8; }
.bar i.b { background: #F7C9BC; }
.bar em { font-style: normal; font-weight: 700; text-align: right; }
.chew-panel__note { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }

/* 4. size guide: seven bones growing along a ruler */
.ch-sizes { background: var(--white); padding: 84px 0 96px; --wave-color: var(--white); }
.ch-sizes__head { text-align: center; max-width: 640px; margin: 0 auto; }
.ch-sizes__head .hand { font-size: 28px; line-height: 1; margin: 0 0 8px; }
.ch-sizes__head h2 { font-size: clamp(32px, 4vw, 48px); }
.ch-sizes__head p:last-child { margin: 14px 0 0; font-size: 18px; color: var(--ink-soft); }
.ch-ruler { --u: 8px; list-style: none; margin: 56px auto 0; padding: 0 0 14px; max-width: 900px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; border-bottom: 3px solid var(--ink); }
.ch-ruler li { flex: 1; display: grid; justify-items: center; gap: 10px; }
.ch-ruler img { height: calc(var(--cm) * var(--u)); width: auto; filter: drop-shadow(0 6px 5px rgba(31, 74, 45, .2)); }
.ch-ruler span { font-weight: 700; font-size: 17px; white-space: nowrap; }
.ch-ends { display: flex; justify-content: space-between; max-width: 900px; margin: 12px auto 0; font-size: 26px; line-height: 1; }

/* 6. pairing band on the chews page: teal, three toys standing side by side */
.pd-pair--toys { background: #92D2C8; --wave-color: #92D2C8; }
.pd-pair--toys .pd-pair__pics img { position: absolute; bottom: 0; top: auto; width: auto; }
.pd-pair--toys .pd-pair__pics img:nth-child(1) { left: 2%; height: 98%; transform: rotate(-4deg); }
.pd-pair--toys .pd-pair__pics img:nth-child(2) { left: 30%; height: 100%; transform: rotate(3deg); }
.pd-pair--toys .pd-pair__pics img:nth-child(3) { left: 58%; height: 62%; transform: rotate(7deg); }

@media (max-width: 1000px) {
  .ch-proofs { grid-template-columns: 1fr; gap: 16px; }
  .ch-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 900px) {
  .ch-open { padding: 36px 0 90px; }
  .ch-open__grid { grid-template-columns: 1fr; gap: 32px; }
  .ch-open__art { max-width: 420px; width: 100%; margin: 0 auto; }
  .ch-supply { padding: 64px 0 76px; }
  .ch-range { padding: 72px 0 80px; }
  .ch-sizes { padding: 64px 0 76px; }
  .ch-ruler { --u: 5px; margin-top: 40px; }
  .chew-panel { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; justify-items: center; }
  .chew-panel > img { height: 120px; }
  .chew-panel > div { width: 100%; }
  .pd-pair--toys .pd-pair__pics { height: 240px; max-width: 420px; }
}
@media (max-width: 600px) {
  .ch-open .btn { width: 100%; justify-content: center; }
  .chew { padding: 18px 8px 16px; gap: 6px; }
  .chew__img { height: 110px; }
  .chew__name { font-size: 18px; }
  .chew__pct { font-size: 13px; padding: 3px 9px; }
  .bar { grid-template-columns: 70px 1fr 54px; gap: 8px; font-size: 14.5px; }
  .ch-ruler { --u: 4.2px; gap: 3px; }
  .ch-ruler span { font-size: 13px; }
  .ch-ends { font-size: 22px; }
}
