/* ==========================================================================
   FETCH THEME — collection page
   head · pet strip · category rail · filters · toolbar · grid · help · faq
   ========================================================================== */

.sec { padding-top: var(--sec); }
.glass { background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, var(--shadow-m); }
.hf__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.hf__ico--berry { background: var(--berry); color: #fff; }
.nav__link[aria-current="page"] { background: var(--blush); color: var(--cocoa); }

/* ---------- head ---------- */
.chead { padding-top: 14px; }
.chead__stage { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 188px; padding: clamp(18px, 2.2vw, 28px) clamp(22px, 3.6vw, 52px); border-radius: var(--r-xl); background: radial-gradient(60% 90% at 100% 0%, rgba(255, 255, 255, .6), transparent 60%), var(--c-bg, var(--blush)); transition: background .6s var(--ease); }
.chead__stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24'%3E%3Cg fill='%232a1a18' fill-opacity='.045'%3E%3Cellipse cx='6.2' cy='11' rx='2' ry='2.6'/%3E%3Cellipse cx='10' cy='6.6' rx='2' ry='2.7'/%3E%3Cellipse cx='14' cy='6.6' rx='2' ry='2.7'/%3E%3Cellipse cx='17.8' cy='11' rx='2' ry='2.6'/%3E%3Cpath d='M12 12.2c-3 0-5.6 3-5.6 5.2 0 1.8 1.4 2.4 2.9 2.4 1 0 1.8-.5 2.7-.5s1.7.5 2.7.5c1.5 0 2.9-.6 2.9-2.4 0-2.2-2.6-5.2-5.6-5.2Z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px 140px; -webkit-mask: linear-gradient(100deg, #000, transparent 60%); mask: linear-gradient(100deg, #000, transparent 60%); }
.chead__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.crumbs a:hover { color: var(--berry); }
.crumbs [aria-current] { color: var(--cocoa); }
.chead__h { font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.035em; line-height: 1; }
.chead .lead { font-size: 15.5px; max-width: 48ch; }
.chead__meta { display: flex; align-items: center; gap: 12px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.chead__art { position: relative; width: clamp(150px, 15vw, 210px); align-self: end; margin-bottom: calc(clamp(18px, 2.2vw, 28px) * -1); margin-right: clamp(0px, 3vw, 40px); }
.chead__arch { aspect-ratio: 1 / 1; border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 0 0 7px rgba(255, 255, 255, .5); background: #fff; }
.chead__arch img { width: 100%; height: 100%; object-fit: cover; animation: stageIn .7s var(--ease-out) both; }
@keyframes stageIn { from { opacity: 0; transform: scale(1.06); } }
.chead__float { position: absolute; left: -120px; top: 28%; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 16px; z-index: 2; animation: float 6s ease-in-out infinite; }
.chead__float b { display: block; font-size: 12.5px; line-height: 1.2; font-weight: 800; }
.chead__float small { font-size: 11.5px; color: var(--text-3); }
@keyframes float { 50% { transform: translateY(-6px); } }
.chead__sticker { position: absolute; right: -10px; top: 8%; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--butter); color: var(--cocoa); transform: rotate(14deg); box-shadow: 0 10px 20px -8px rgba(120, 80, 0, .4); }
.chead__sticker .ico { width: 24px; height: 24px; }

/* ---------- pet strip + rail ---------- */
.cwho { display: flex; align-items: center; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.cwho::-webkit-scrollbar, .crail::-webkit-scrollbar { display: none; }
.cwho__l { flex: none; display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cwho__l .ico { color: var(--berry); }
.cw { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px 0 5px; border-radius: var(--pill); background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px; transition: all .3s var(--ease-spring); }
.cw img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.cw--all { padding-left: 14px; }
.cw:hover { border-color: var(--cocoa); }
.cw.is-on { background: var(--cocoa); border-color: var(--cocoa); color: #fff; box-shadow: 0 8px 18px -8px rgba(42, 26, 24, .6); }
.cwho__hint { flex: none; margin-left: 4px; font-size: 12.5px; color: var(--text-3); }

.crail { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
.ct { flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 8px 14px 8px 8px; border-radius: var(--r-m); background: #fff; border: 1.5px solid var(--line); text-align: left; transition: all .3s var(--ease-spring); }
.ct__img { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--tint, var(--cream)); overflow: hidden; }
.ct__img .pack { width: 80%; height: 90%; }
.ct__img .ico { width: 22px; height: 22px; color: var(--berry); }
.ct b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.ct small { font-size: 12px; color: var(--text-3); }
.ct:hover { border-color: var(--cocoa); transform: translateY(-2px); }
.ct.is-on { border-color: var(--berry); background: var(--berry-tint); }

/* ---------- layout ---------- */
.cmain { padding-top: clamp(16px, 2vw, 24px); }
.cmain__grid { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(20px, 2.8vw, 36px); align-items: start; }
.cres { min-width: 0; }

/* ---------- filters ---------- */
.filters { position: sticky; top: calc(var(--head-h) + 14px); max-height: calc(100vh - var(--head-h) - 28px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.filters__head, .filters__foot { display: none; }
.fg { border-bottom: 1px solid var(--line); }
.fg:first-child { border-top: 0; }
.fg > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; list-style: none; cursor: pointer; font: 800 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cocoa); }
.fg > summary::-webkit-details-marker { display: none; }
.fg > summary .ico { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease); }
.fg[open] > summary .ico { transform: rotate(180deg); }
.fg__b { display: grid; gap: 2px; padding: 0 0 14px; }
.fg__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.fg__chips .chip { height: 30px; padding: 0 11px; font-size: 12.5px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 6px 4px; margin: 0 -4px; border-radius: var(--r-xs); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background .18s; }
.chk:hover { background: var(--blush); }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk i { position: relative; width: 19px; height: 19px; flex: none; border-radius: 6px; border: 1.8px solid var(--line-2); background: #fff; transition: all .2s var(--ease-spring); }
.chk input[type="radio"] + i { border-radius: 50%; }
.chk i::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; transform: scale(0); transition: transform .25s var(--ease-spring); }
.chk input[type="radio"] + i::after { background: #fff; inset: 4px; border-radius: 50%; }
.chk input:checked + i { background: var(--cocoa); border-color: var(--cocoa); }
.chk input:checked + i::after { transform: scale(1); }
.chk input:focus-visible + i { box-shadow: var(--focus); }
.chk em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chk.is-zero { color: var(--text-3); }
.chk.is-zero i { opacity: .5; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.frow small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.price__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.price__top b { font-size: 15px; color: var(--cocoa); font-weight: 800; font-variant-numeric: tabular-nums; }
.range { width: 100%; height: 22px; appearance: none; background: none; cursor: pointer; --p: 100%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--berry) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--berry) var(--p), var(--line-2) var(--p)); }
.range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--berry); box-shadow: var(--shadow-s); transition: transform .2s var(--ease-spring); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--berry); }
.range:active::-webkit-slider-thumb { transform: scale(1.18); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }

/* ---------- toolbar ---------- */
.ctool { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.ctool__n { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.ctool__n b { color: var(--cocoa); font-weight: 800; }
.ctool__r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cfbtn { display: none; }
.cfbtn__n { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: var(--pill); background: var(--berry); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: #fff; border: 1.5px solid var(--line); }
.seg button { display: grid; place-items: center; width: 34px; height: 28px; border-radius: var(--pill); color: var(--text-3); transition: all .25s var(--ease); }
.seg button .ico { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.seg button.is-on { background: var(--cocoa); color: #fff; }
.csort { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 14px; border-radius: var(--pill); background: #fff; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; transition: border-color .2s; }
.csort:hover { border-color: var(--cocoa); }
.csort > span { color: var(--text-3); font-weight: 600; }
.csort select { appearance: none; border: 0; background: none; font-weight: 800; font-size: 13px; padding-right: 18px; cursor: pointer; outline: 0; }
.csort .ico { position: absolute; right: 12px; pointer-events: none; }
.csort:focus-within { box-shadow: var(--focus); }

.cchips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.cchips:empty { display: none; }
.ac { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: var(--pill); background: var(--berry-tint); color: var(--berry-2); font-size: 12.5px; font-weight: 700; animation: chipIn .35s var(--ease-spring) both; }
.ac button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; transition: background .2s; }
.ac button:hover { background: rgba(168, 47, 87, .18); }
.ac button .ico { width: 11px; height: 11px; stroke-width: 2.6; }
.ac--clear { background: none; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; cursor: pointer; }
@keyframes chipIn { from { opacity: 0; transform: scale(.85); } }

/* ---------- grid ---------- */
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cgrid.is-3 { grid-template-columns: repeat(3, 1fr); }
.cgrid .pc { animation: cardIn .55s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.pc__badge--fit { background: var(--sage); color: #fff; }
.cpromo { grid-column: span 2; position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-m); background: var(--cocoa); color: #fff; min-height: 260px; animation: cardIn .55s var(--ease-out) both; }
.cpromo::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(198, 61, 104, .6), transparent); }
.cpromo .eyebrow { color: var(--butter); }
.cpromo h3 { font: 600 clamp(24px, 2.4vw, 32px)/1.05 var(--display); letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "WONK" 1; max-width: 16ch; }
.cpromo h3 em { color: var(--butter); font-weight: 500; }
.cpromo p { color: rgba(255, 250, 245, .75); font-size: 14px; max-width: 34ch; }
.cpromo__art { position: absolute; right: 18px; bottom: 0; width: 34%; max-width: 150px; opacity: .95; transform: rotate(8deg) translateY(10%); z-index: -1; }
.cpromo__art .pack { width: 100%; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); }
.cempty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cempty .ico { width: 46px; height: 46px; color: var(--berry); margin: 0 auto 12px; }
.cempty h3 { font: 600 26px var(--display); margin-bottom: 6px; font-variation-settings: "SOFT" 100; }
.cempty p { color: var(--text-3); margin-bottom: 18px; }
.cmore { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.cmore p { font-size: 13px; color: var(--text-3); font-weight: 600; }
.cmore__bar { width: 200px; height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; }
.cmore__bar i { display: block; height: 100%; border-radius: inherit; background: var(--berry); transition: width .6s var(--ease-out); }

/* ---------- help band ---------- */
.chelp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hc { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-l); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--ease-out), box-shadow .45s; }
.hc:hover { transform: translateY(-4px); box-shadow: var(--shadow-m), 0 0 0 1px transparent; }
.hc__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 15px; background: var(--blush); color: var(--berry); transition: background .3s, color .3s, transform .4s var(--ease-spring); }
.hc:hover .hc__ico { background: var(--berry); color: #fff; transform: rotate(-8deg); }
.hc b { display: block; font: 600 19px/1.15 var(--display); letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; margin-bottom: 3px; }
.hc small { font-size: 13px; color: var(--text-3); line-height: 1.4; display: block; }
.hc__go { margin-left: auto; flex: none; transition: transform .3s var(--ease); color: var(--text-3); }
.hc:hover .hc__go { transform: translateX(4px); color: var(--berry); }

/* ---------- faq ---------- */
.cfaq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.cfaq__intro { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; position: sticky; top: calc(var(--head-h) + 20px); }
.cfaq__list { display: grid; gap: 8px; }
.cfaq__list details { border-radius: var(--r-m); background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; }
.cfaq__list details[open] { box-shadow: 0 0 0 1.5px var(--cocoa); }
.cfaq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; list-style: none; cursor: pointer; font-weight: 800; font-size: 15px; }
.cfaq__list summary::-webkit-details-marker { display: none; }
.cfaq__list summary .ico { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-spring); color: var(--berry); }
.cfaq__list details[open] summary .ico { transform: rotate(135deg); }
.cfaq__list details p { padding: 0 18px 18px; color: var(--text-2); font-size: 14.5px; max-width: 60ch; animation: stageIn2 .4s var(--ease-out) both; }
@keyframes stageIn2 { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cgrid { grid-template-columns: repeat(3, 1fr); }
  .cgrid.is-3 { grid-template-columns: repeat(2, 1fr); }
  .chead__float { left: -60px; }
}
@media (max-width: 1000px) {
  .cmain__grid { grid-template-columns: 1fr; }
  .cfbtn { display: inline-flex; }
  /* filters become a drawer */
  .filters { position: fixed; z-index: 100; inset: 0 auto 0 0; width: min(380px, 94vw); max-height: none; padding: 0; background: var(--paper); display: flex; flex-direction: column; transform: translateX(-104%); visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; border-radius: 0 var(--r-l) var(--r-l) 0; box-shadow: var(--shadow-l); overflow: hidden; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 6px; }
  .filters__head h2 { font: 600 22px/1 var(--display); letter-spacing: -.02em; font-variation-settings: "SOFT" 100; }
  .filters__head small { font: 700 12px var(--sans); color: var(--berry); }
  .filters__body { flex: 1; overflow-y: auto; padding: 0 20px; overscroll-behavior: contain; }
  .filters__foot { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
  .ctool { position: sticky; top: var(--head-h); z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(255, 250, 245, .98); box-shadow: 0 1px 0 var(--line); }
  .cfaq__grid { grid-template-columns: 1fr; }
  .cfaq__intro { position: static; }
}
@media (max-width: 820px) {
  .chead__stage { grid-template-columns: 1fr; min-height: 0; padding-bottom: 22px; }
  .chead__art { display: none; }
  .chelp__grid { grid-template-columns: 1fr; }
  .ctool__n { display: none; }
  .ctool__r { margin-left: 0; flex: 1; justify-content: flex-end; }
  .seg { display: none; }
}
@media (max-width: 640px) {
  .cgrid, .cgrid.is-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cgrid .pc__body { padding: 10px 11px 12px; gap: 6px; }
  .cgrid .pc__name { font-size: 13.5px; }
  .cgrid .pc__opt { height: 24px; padding: 0 8px; font-size: 11.5px; }
  .cgrid .pc__price b { font-size: 15px; }
  .cgrid .pc__add { height: 34px; padding: 0 11px 0 9px; }
  .cgrid .pc__add span { display: none; }
  .cgrid .pc__add { width: 36px; padding: 0; justify-content: center; }
  .cgrid .pc__sub { font-size: 11.5px; gap: 6px; }
  .cgrid .pc__meta span:first-child { display: none; }
  .cgrid .pc__meta { justify-content: flex-start; }
  .cgrid .pc__badge--vet { display: none; }
  .cgrid .pc__badge--fit { height: 21px; padding: 0 7px; font-size: 10.5px; }
  .cpromo { min-height: 0; padding: 20px; }
  .cpromo__art { opacity: .35; }
  .cwho__hint { display: none; }
  .ct { min-width: 134px; }
}

/* product photos in the promo card + rail */
.cpromo__art .pack--photo { aspect-ratio: 1; border-radius: 18px; filter: none; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.ct__img .pack--photo { border-radius: 12px; }

/* reserve space for the JS-built rows so late font swaps can't push the grid around */
.cwho { min-height: 46px; }
.crail { min-height: 74px; }
.cgrid { min-height: 60vh; align-content: start; }
