@media (max-width: 1360px) {
  .header-inner {
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr) minmax(230px, 300px) auto;
  }
  .main-nav { gap: 14px; font-size: 0.92rem; }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(180px, 220px) auto;
  }

  .main-nav {
    gap: 14px;
  }

  .product-grid--four,
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pet-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 28px, 760px);
    --wide-container: min(100% - 28px, 760px);
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 12px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .quiet-action {
    display: none;
  }

  .hero,
  .info-band,
  .about-hero,
  .newsletter,
  .product-detail,
  .product-detail__top,
  .cart-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .pet-catalog-hero {
    grid-template-columns: 1fr;
  }

  .pet-catalog-hero__media {
    min-height: 270px;
  }

  .pet-catalog-hero__media img {
    height: 300px;
  }

  .pet-category-block__header {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    min-height: 310px;
  }

  .hero__media img {
    margin: 0 auto;
    width: min(560px, 100%);
    height: 310px;
  }

  .product-grid--four,
  .product-grid--three,
  .catalog-grid,
  .pet-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  body[data-page="products"]:not(.is-dog-category-catalog) .filters-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1300;
    width: min(360px, 92vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px 0 0 18px;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
    transform: translateX(110%);
    transition: transform 0.25s ease;
  }

  body[data-page="products"]:not(.is-dog-category-catalog) .filters-panel.is-open {
    transform: translateX(0);
  }

  body[data-page="products"]:not(.is-dog-category-catalog) .filters-backdrop {
    z-index: 1299;
  }

  body[data-page="products"] .filters-close > i {
    pointer-events: none;
  }

  .filters-close,
  .filter-toggle,
  .apply-filters {
    display: inline-flex;
  }

  .catalog-toolbar {
    grid-template-columns: auto 1fr;
  }

  .sort-control {
    grid-column: 1 / -1;
  }

  .sort-control select {
    width: 100%;
  }

  .product-gallery,
  .cart-summary {
    position: static;
  }

  .product-gallery {
    max-width: 680px;
    margin: 0 auto;
  }

  .product-info {
    gap: 10px;
  }

  .gratitude-grid,
  .ideal-section {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-line {
    grid-template-columns: 92px 1fr 44px;
  }

  .cart-line img {
    width: 92px;
    height: 92px;
  }

  .cart-qty,
  .cart-subtotal {
    grid-column: 2 / -1;
  }

  .remove-line {
    grid-column: 3;
    grid-row: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 22px);
    --wide-container: calc(100% - 22px);
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    top: 76px;
  }

  .section,
  .info-band,
  .newsletter,
  .about-hero {
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .hero {
    margin-top: 22px;
    border-radius: 22px;
    padding: 26px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero__media {
    min-height: 260px;
  }

  .hero__media img {
    height: 260px;
    border-radius: 0;
    -webkit-mask-image: radial-gradient(ellipse at 52% 54%, #000 0 60%, rgba(0, 0, 0, 0.8) 70%, transparent 86%);
    mask-image: radial-gradient(ellipse at 52% 54%, #000 0 60%, rgba(0, 0, 0, 0.8) 70%, transparent 86%);
  }

  .hero-heart {
    opacity: 0.58;
  }

  .hero-heart--one {
    --heart-size: 18px;
    top: 18px;
    right: 13%;
  }

  .hero-heart--two {
    --heart-size: 12px;
    right: 28%;
    top: 18%;
  }

  .hero-heart--three {
    --heart-size: 16px;
    right: 2%;
  }

  .hero-heart--four {
    --heart-size: 24px;
    bottom: 34px;
    right: 12%;
  }

  .hero-heart--five {
    --heart-size: 12px;
    bottom: 30px;
    left: 16%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    width: 100%;
  }

  .pet-catalog-page {
    padding-top: 24px;
  }

  .pet-catalog-hero {
    min-height: auto;
    border-radius: 22px;
    padding: 26px;
  }

  .pet-catalog-hero p {
    font-size: 1rem;
  }

  .pet-catalog-hero__media {
    min-height: 230px;
  }

  .pet-catalog-hero__media img {
    height: 240px;
  }

  .pet-category-block {
    margin-top: 42px;
    border-radius: 22px;
    padding: 22px;
  }

  .pet-category-block__label {
    font-size: 1.25rem;
    line-height: 1.08;
  }

  .pet-product-grid {
    grid-template-columns: 1fr;
  }

  .pet-crosslink {
    display: grid;
    margin: 48px 0 58px;
    border-radius: 22px;
  }

  .pet-crosslink .btn {
    width: 100%;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card h3 {
    min-height: 58px;
    font-size: 0.92rem;
  }

  .product-card__actions .btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.78rem;
  }

  .product-detail-price strong {
    font-size: 1.6rem;
  }

  .product-gallery {
    width: 100%;
  }

  .main-image {
    border-radius: 22px;
    aspect-ratio: 1 / 0.78;
    max-height: 320px;
  }

  .main-image img {
    height: 100%;
  }

  .thumbnail-row {
    grid-template-columns: repeat(4, minmax(62px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .thumbnail {
    min-width: 62px;
  }

  .product-info h1 {
    font-size: 1.82rem;
    line-height: 1.08;
  }

  .product-summary {
    font-size: 1rem;
  }

  .benefit-chips {
    gap: 7px;
  }

  .benefit-chips span {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .purchase-box {
    border-radius: 18px;
    padding: 17px;
  }

  .purchase-box__top {
    display: flex;
  }

  .variant-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variant-option__surface {
    min-height: 44px;
    padding: 8px 9px;
  }

  .qty-control {
    width: min(100%, 176px);
    grid-template-columns: 46px 1fr 46px;
  }

  .qty-control input {
    width: 100%;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .store-reasons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .store-reasons > div {
    grid-template-columns: 30px 1fr;
  }

  .store-reasons strong {
    font-size: 0.82rem;
  }

  .store-reasons small {
    font-size: 0.73rem;
  }

  .availability {
    max-width: none;
  }

  body[data-page="product"] {
    padding-bottom: 86px;
  }

  .mobile-purchase-bar {
    position: fixed;
    z-index: 82;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 48px minmax(112px, 0.8fr);
    gap: 8px;
    align-items: center;
    border-top: 1px solid rgba(223, 232, 242, 0.95);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -12px 32px rgba(42, 66, 92, 0.14);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
  }

  .mobile-purchase-bar div,
  .mobile-purchase-bar small,
  .mobile-purchase-bar strong {
    display: block;
  }

  .mobile-purchase-bar small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-purchase-bar strong {
    margin-top: 2px;
    color: var(--blue-dark);
    font-size: 1.05rem;
  }

  .mobile-purchase-bar .btn {
    min-height: 48px;
  }

  .mobile-cart-action {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(101, 84, 217, 0.28);
    border-radius: 14px;
    background: #fff;
    color: var(--purple);
    font-size: 1rem;
  }

  .mobile-cart-action:disabled {
    opacity: 0.55;
  }

  .product-story,
  .product-reviews,
  .ideal-section {
    border-radius: 20px;
    padding: 20px;
  }

  .gratitude-grid {
    grid-template-columns: 1fr;
  }

  .reviews-heading {
    display: grid;
    align-items: start;
  }

  .rating-summary {
    justify-items: start;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card__top {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .review-card__top .review-stars {
    grid-column: 2;
  }

  .ideal-section li {
    border-radius: 16px;
  }

  .cart-line {
    grid-template-columns: 78px 1fr 40px;
    gap: 12px;
    padding: 12px;
  }

  .cart-line img {
    width: 78px;
    height: 78px;
  }

  .cart-line h2 {
    font-size: 0.98rem;
  }

}


/* Pet explorer v2 */
@media (max-width: 1120px) {
  .pet-explorer__header {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

  .pet-explorer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pet-explorer {
    margin-top: 58px;
    margin-bottom: 64px;
  }

  .pet-explorer__header {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .pet-explorer__intro h2 {
    font-size: clamp(2.25rem, 10vw, 3.6rem);
  }

  .pet-explorer__lineup {
    min-height: 160px;
  }

  .pet-explorer__lineup img {
    max-height: 175px;
  }

  .pet-explorer__grid {
    grid-template-columns: 1fr;
  }

  .pet-card {
    min-height: 280px;
  }
}

@media (max-width: 440px) {
  .pet-explorer__intro .eyebrow {
    font-size: 0.69rem;
  }

  .pet-explorer__intro h2 {
    font-size: 2.45rem;
  }

  .pet-explorer__intro p {
    margin-top: 14px;
    font-size: 0.96rem;
  }

  .pet-explorer__lineup {
    min-height: 126px;
  }

  .pet-explorer__lineup img {
    width: 110%;
    max-height: 142px;
  }

  .pet-card {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.78fr);
    min-height: 268px;
    border-radius: 20px;
  }

  .pet-card__copy {
    padding: 16px 0 0 16px;
  }

  .pet-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
  }

  .pet-card h3 {
    font-size: 1.55rem;
  }

  .pet-card__copy p {
    max-width: 185px;
    font-size: 0.82rem;
  }

  .pet-card__main--large {
    width: 165px;
    height: 220px;
  }

  .pet-card__main--medium {
    width: 142px;
    height: 150px;
  }

  .pet-card__quick-tags {
    padding: 0 14px 10px;
  }

  .pet-card__quick-tags span {
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .pet-card__species-art {
    height: 52px;
    width: calc(100% - 20px);
    margin-inline: 10px;
  }

  .pet-card__species {
    padding-inline: 8px;
  }

  .pet-card__species span {
    font-size: 0.55rem;
  }

  .pet-card__cta {
    margin: 0 12px 12px;
    font-size: 0.82rem;
  }
}

/* PepPaws v16.162 — wordmark responsive. */
@media (max-width: 820px) {
  .brand-logo {
    width: 148px;
  }

  .footer-brand .brand-logo,
  .brand-logo--footer {
    width: 184px;
  }
}

@media (max-width: 620px) {
  .brand--wordmark {
    min-width: 0;
  }

  .brand-logo {
    width: 128px;
    max-height: 44px;
  }

  .footer-brand .brand-logo,
  .brand-logo--footer {
    width: 170px;
    max-height: none;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 116px;
  }
}
