/* ==========================================================================
   Tiny Paws — Page-specific styles ("Fresh Modern")
   Conditionally enqueued: front page, shop/product-cat, single product, breeds.
   ========================================================================== */

/* ============================ HOMEPAGE ============================ */
.tp-trust-strip { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg); box-shadow: var(--tp-shadow-sm); padding: 1.1rem 1.4rem; }
.tp-trust-strip__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; }
.tp-trust-strip__item { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--tp-ink); }
.tp-trust-strip__item i { color: var(--tp-raspberry); font-size: 1.05rem; }
.tp-trust-strip__sep { width: 1px; height: 26px; background: var(--tp-line); }
@media (max-width: 575px) { .tp-trust-strip__sep { display: none; } }

/* ============================ ARCHIVE / SHOP ============================ */
.tp-shop-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg);
  padding: .7rem .8rem .7rem 1rem; margin-bottom: 1.6rem; box-shadow: var(--tp-shadow-sm);
}
.tp-shop-bar__count { display: inline-flex; align-items: center; gap: .7rem; margin: 0; }
.tp-shop-bar__count-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--tp-raspberry-soft); color: var(--tp-raspberry); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.tp-shop-bar__count-text { display: flex; flex-direction: column; line-height: 1.25; }
.tp-shop-bar__count-n { font-family: var(--tp-display); font-weight: 800; color: var(--tp-ink); font-size: 1.15rem; letter-spacing: -.01em; }
.tp-shop-bar__count-n strong { font-weight: 800; }
.tp-shop-bar__count-text small { color: var(--tp-muted); font-size: .82rem; font-weight: 500; }
.tp-shop-bar__tools { display: flex; align-items: center; gap: .7rem; }
.tp-shop-bar__sortlabel { color: var(--tp-muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 575px) { .tp-shop-bar__sortlabel { display: none; } .tp-shop-bar__count-text small { display: none; } }
.tp-shop-bar__sort {
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--tp-line); border-radius: var(--tp-r-pill);
  padding: .55rem 2.4rem .55rem 1rem; font-family: var(--tp-body); font-weight: 700; color: var(--tp-ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235f5048' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center / 11px;
  transition: border-color .18s ease;
}
.tp-shop-bar__sort:hover { border-color: var(--tp-raspberry); }
.tp-shop-bar__sort:focus-visible { outline: 3px solid var(--tp-raspberry); outline-offset: 2px; }
.tp-filter-toggle { display: inline-flex; }
@media (min-width: 992px) { .tp-filter-toggle { display: none; } }

.tp-filters__group { padding: 1rem 0; border-top: 1px solid var(--tp-line); }
.tp-filters__group:first-of-type { border-top: 0; padding-top: 0; }
.tp-filters__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tp-ink); font-weight: 800; margin: 0 0 .7rem; }
.tp-filters__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-height: 240px; overflow: auto; }
.tp-filters label { display: flex; align-items: center; gap: .5rem; font-weight: 500; color: var(--tp-ink); cursor: pointer; }
.tp-filters label .count { margin-left: auto; color: var(--tp-muted); font-size: .82rem; }

.tp-active-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.2rem; }
.tp-active-filters:empty { display: none; }
.tp-active-filters__clear { font-weight: 700; color: var(--tp-raspberry); text-decoration: underline; background: none; border: 0; cursor: pointer; font-size: .88rem; }

.tp-loadmore { text-align: center; margin-top: 2rem; }
.tp-loadmore__spin { display: inline-flex; align-items: center; gap: .55rem; color: var(--tp-muted); font-weight: 600; }
.tp-loadmore__spin i { color: var(--tp-raspberry); animation: tp-spin 1s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tp-loadmore__spin i { animation: none; } }
.tp-sentinel { height: 1px; }
.tp-skel-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Filter backdrop lives out of grid flow (never a desktop grid column). */
.tp-filter-backdrop { display: none; position: fixed; inset: 0; background: rgba(33,30,27,.4); z-index: 1049; }
.tp-filter-backdrop.is-open { display: block; }
@media (max-width: 991.98px) {
  .tp-filters {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1050;
    border-radius: 0; margin: 0; overflow: auto; transform: translateX(100%);
    transition: transform .3s var(--tp-ease-out); box-shadow: -12px 0 40px rgba(33,30,27,.16);
  }
  .tp-filters.is-open { transform: translateX(0); }
  .tp-filters__close { display: inline-flex; }
}
.tp-filters__close { display: none; position: absolute; top: 1rem; right: 1rem; border: 0; background: var(--tp-ink); color: #fff; width: 36px; height: 36px; border-radius: 50%; }

/* ============================ SINGLE PUPPY ============================ */
.tp-pdp { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.tp-pdp__hero { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) { .tp-pdp__hero { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }

/* Gallery */
.tp-gallery__hero { position: relative; aspect-ratio: 1/1; }
.tp-gallery__hero .tp-arch { width: 100%; height: 100%; }
.tp-gallery__hero img { width: 100%; height: 100%; object-fit: cover; }
.tp-gallery__zoom { position: absolute; bottom: .8rem; right: .8rem; z-index: 2; border: 0; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--tp-ink); box-shadow: var(--tp-shadow-sm); cursor: pointer; }
.tp-gallery__zoom:hover { background: #fff; color: var(--tp-raspberry); }
.tp-gallery__badges { position: absolute; top: .8rem; left: .8rem; z-index: 2; display: flex; gap: .5rem; }
.tp-gallery__thumbs { display: flex; gap: .55rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.tp-gallery__thumb { flex: 0 0 auto; width: 74px; height: 74px; border-radius: var(--tp-r-sm); overflow: hidden; border: 2px solid transparent; background: var(--tp-line); cursor: pointer; padding: 0; }
.tp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-gallery__thumb[aria-current="true"] { border-color: var(--tp-raspberry); }
.tp-gallery__thumb--video { position: relative; }
.tp-gallery__thumb--video::after { content: "\f04b"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(33,30,27,.4); }

/* Right rail */
.tp-pet-rail__eyebrow { display: inline-block; font-family: var(--tp-body); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tp-ls-caps); color: var(--tp-raspberry); font-size: .8rem; margin-bottom: .3rem; }
.tp-pet-rail__name { font-family: var(--tp-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--tp-ink); letter-spacing: -.03em; margin: 0 0 .15rem; }
.tp-pet-rail__breed { color: var(--tp-muted); font-weight: 600; margin: 0 0 1rem; }
.tp-pet-rail__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tp-pet-rail__price { font-family: var(--tp-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--tp-ink); line-height: 1; letter-spacing: -.02em; }
.tp-pet-rail__price del { color: var(--tp-muted); font-size: .6em; font-weight: 600; }
.tp-pet-rail .tp-glance { margin: 1.2rem 0; gap: .5rem; }
.tp-pet-rail .tp-glance .tp-chip { font-size: .86rem; padding: .4rem .8rem; }
.tp-pet-rail__cta { display: grid; gap: .7rem; margin-top: 1.4rem; }
.tp-pet-rail__trust { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--tp-line); }
.tp-pet-rail__trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; color: var(--tp-ink); font-weight: 600; }
.tp-pet-rail__trust i { color: var(--tp-raspberry); }

/* Inquiry card (single-page "Have questions?" form) */
.tp-inquiry-card { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg); box-shadow: var(--tp-shadow-sm); padding: clamp(1.4rem, 3vw, 2rem); }

/* Reserve card */
.tp-reserve-card { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg); box-shadow: var(--tp-shadow-sm); padding: clamp(1.2rem, 3vw, 1.8rem); }
.tp-reserve-card__head { font-family: var(--tp-display); font-weight: 800; color: var(--tp-ink); font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .5rem; }

/* Stacked sections */
.tp-pdp-section { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.tp-pdp-section + .tp-pdp-section { border-top: 1px solid var(--tp-line); }
.tp-about__lede { font-size: 1.12rem; color: var(--tp-ink); max-width: 62ch; }

/* Breeder + parents */
.tp-parents { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .tp-parents { grid-template-columns: 1fr 1fr; } }
.tp-parent-card { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-lg); overflow: hidden; }
.tp-parent-card__photo { aspect-ratio: 4/3; background: var(--tp-line); }
.tp-parent-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.tp-parent-card__body { padding: 1.1rem 1.2rem; }
.tp-parent-card__role { display: inline-block; font-family: var(--tp-body); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tp-ls-caps); color: var(--tp-raspberry); font-size: .78rem; }
.tp-breeder-card { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 768px) { .tp-breeder-card { grid-template-columns: 200px 1fr; } }

/* FAQ accordion */
.tp-faq .accordion-item { border: 1px solid var(--tp-line); border-radius: var(--tp-r-md) !important; margin-bottom: .7rem; overflow: hidden; background: #fff; }
.tp-faq .accordion-button { font-family: var(--tp-display); font-weight: 700; color: var(--tp-ink); background: #fff; letter-spacing: -.01em; }
.tp-faq .accordion-button:not(.collapsed) { color: var(--tp-raspberry); background: var(--tp-raspberry-soft); box-shadow: none; }
.tp-faq .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(214,51,127,.18); }

/* ============================ BREED LANDING ============================ */
.tp-breed-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .tp-breed-hero { grid-template-columns: 1fr 1fr; } }
.tp-breed-hero__photo { aspect-ratio: 1/1; max-width: 460px; }
.tp-breed-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.4rem; }
@media (min-width: 576px) { .tp-breed-stats { grid-template-columns: repeat(4, 1fr); } }
.tp-breed-stat { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-r-md); padding: 1rem; text-align: center; }
.tp-breed-stat__val { font-family: var(--tp-display); font-weight: 800; color: var(--tp-ink); font-size: 1.3rem; letter-spacing: -.02em; }
.tp-breed-stat__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-muted); font-weight: 700; }
.tp-chartabs .nav-pills { gap: .4rem; margin-bottom: 1.4rem; }
.tp-breed-intro { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
