.product-carousel{margin-top:20px;min-width:0}
.product-ranges{min-width:0}
.product-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}
.product-filters[hidden],.product-carousel .product-card[hidden]{display:none}
.product-filters label{font-size:13px;font-weight:700;display:grid;gap:5px}
.product-filters select,.product-filters button{min-height:44px;padding:8px;border:1px solid #9cb8ab;border-radius:6px;background:#fff;color:#183d30;font:inherit;max-width:100%}
.product-filters .product-offer-filter{display:flex;align-items:center;min-height:44px;gap:7px}
.product-offer-filter input{width:18px;height:18px;accent-color:#1f7a5c}
.product-offer-help{font-size:12px;line-height:1.5}
.product-carousel>h3{margin:0 0 8px}
.product-carousel-controls{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin:14px 0}
.product-carousel-controls[hidden]{display:none}
.product-carousel-controls button{min-height:44px;padding:10px 12px;font-size:14px}
.product-carousel-controls button:disabled{opacity:.45;cursor:default}
.product-carousel-controls [data-carousel-prev]{justify-self:start}
.product-carousel-controls [data-carousel-next]{justify-self:end}
.product-carousel-controls [role=status]{grid-column:1/-1;font-size:12px;text-align:center}
@media(max-width:450px){.product-carousel-controls button{font-size:12px;padding:8px 6px}}
.product-carousel-track{box-sizing:border-box;display:grid;grid-auto-flow:column;grid-auto-columns:100%;align-items:start;gap:14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;list-style:none;margin:0;padding:4px 3px 14px;scrollbar-width:thin;scrollbar-color:#1f7a5c #eaf6f1}
.product-carousel .product-card{scroll-snap-align:start;display:flex;flex-direction:column;min-width:0;margin:0;box-shadow:none}
.product-carousel .product-card-text{background:linear-gradient(160deg,#eaf6f1 0%,#fff 65%);border-top:4px solid #1f7a5c}
.product-card-text .product-category{margin:4px 0 14px}
.product-card-text h3{margin-bottom:16px}
.product-card img{width:100%;height:150px;object-fit:contain;display:block;margin:0 auto 12px}
.product-card .product-image-caption{font-size:12px;line-height:1.5;margin:0 0 12px;color:#183d30}
.product-card h3{font-size:18px;line-height:1.3;margin:4px 0 10px;overflow-wrap:anywhere}
.product-card .product-category{font-size:12px;font-weight:700;color:#174b36;margin:0}
.product-card .product-description{font-size:14px;line-height:1.5;margin:0 0 14px}
.product-card .product-price-note{font-size:13px;font-weight:700;margin:0 0 10px}
.product-card .product-observed-date{display:block;font-weight:400;line-height:1.5;margin-top:4px}
.product-card .product-price-discount{display:inline-block;padding:2px 6px;margin-right:4px;border:1px solid #e7b6a0;border-radius:5px;background:#fff0e6;color:#923b23;font-size:12px;font-weight:800;white-space:nowrap;vertical-align:middle}
.product-card .btn{align-self:flex-start;font-size:14px;padding:10px 12px}
.product-carousel :focus-visible{outline:3px solid #1f7a5c;outline-offset:2px}
@media(min-width:700px){.product-carousel-track{grid-auto-columns:calc((100% - 14px)/2)}}
@media(min-width:1000px){.product-carousel-track{grid-auto-columns:calc((100% - 28px)/3)}}
@media(prefers-reduced-motion:no-preference){.product-carousel-track{scroll-behavior:smooth}}
/* One compact phone/tablet range; desktop retains both original ranges. */
@media screen and (max-width:767px), (max-width:960px) and (max-height:500px), (min-width:768px) and (max-width:1366px) and (min-height:600px){
  .tablet-combined-products .product-carousel[hidden]{display:none}
  .tablet-combined-products .product-carousel-track{grid-auto-columns:min(340px,100%);gap:14px}
  .tablet-combined-products .product-card{display:grid;grid-template-columns:104px minmax(0,1fr);grid-template-rows:60px 40px minmax(44px,1fr);padding:8px;border-radius:13px;gap:8px;height:190px}
  .tablet-combined-products .product-card>img{grid-column:1;grid-row:1 / span 2;width:104px;height:104px;margin:0;object-fit:contain}
  .tablet-combined-products .product-card h3{grid-column:2;grid-row:1;font-size:13px;line-height:1.3;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:51px}
  .tablet-combined-products .product-card .product-category,
  .tablet-combined-products .product-card>.product-description:not(.product-description-essential){display:none}
  .tablet-combined-products .product-card .product-description-essential,
  .tablet-combined-products .product-card .product-image-caption{font-size:11px;line-height:1.35;margin:0 0 8px}
  .tablet-combined-products .product-card>.product-price-note{grid-column:2;grid-row:2;font-size:12px;margin:0}
  .tablet-combined-products .product-card .product-price-note>strong{font-size:23px;line-height:1.2}
  .tablet-combined-products .product-card[data-tablet-unavailable]>.product-price-note::after{content:'Unavailable when checked';display:block;color:#8b2525;font-size:10px;line-height:12px}
  .tablet-combined-products .product-card .product-observed-date{font-size:11px;line-height:1.35;margin-top:4px}
  .tablet-combined-products .product-card .product-price-note:has(time)>.product-observed-date:last-child{display:none}
  .tablet-combined-products .tablet-product-notes{grid-column:1;grid-row:3;min-height:44px;overflow:auto;font-size:11px;line-height:1.35;margin-bottom:0}
  .tablet-combined-products .product-card:has(.tablet-product-notes[open]){height:auto;min-height:190px;grid-template-rows:60px 40px 44px auto}
  .tablet-combined-products .tablet-product-notes[open]{grid-column:1/-1;grid-row:4;max-height:180px;overflow:auto}
  .tablet-combined-products .tablet-product-notes summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#174b36;text-decoration:underline;font-size:11px}
  .tablet-combined-products .tablet-product-notes summary::before{content:'▸';margin-right:5px}
  .tablet-combined-products .tablet-product-notes[open] summary::before{content:'▾'}
  .tablet-combined-products .tablet-product-notes .product-description{display:block;font-size:11px;line-height:1.35;margin:0 0 8px}
  .tablet-combined-products .product-card .btn{grid-column:2;grid-row:3;justify-self:start;align-self:flex-start;display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 10px;font-size:12px;line-height:1.3;text-align:center}
}
/* Tablet-only compact search, filters and carousel navigation. */
/* Phone controls retain full labels and 44px targets in two narrow columns. */
@media screen and (max-width:767px), screen and (max-width:960px) and (max-height:500px){
 #compare:has(.tablet-combined-products)>.card>h2{margin:0 0 8px;font-size:clamp(20px,5vw,22px);line-height:1.25;text-align:center}
 #compare:has(.tablet-combined-products)>.card>label[for=search]{margin:4px 0;font-size:13px;line-height:1.3}
 #compare:has(.tablet-combined-products)>.card>form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:stretch}
 #compare:has(.tablet-combined-products) #search{width:100%;min-width:0;min-height:44px;padding:8px}
 #compare:has(.tablet-combined-products)>.card>form>.btn{min-height:44px;padding:8px;font-size:12px;white-space:nowrap}
 #compare:has(.tablet-combined-products)>.card>p.small{margin:4px 0;font-size:12px;line-height:1.4}
 .tablet-combined-products .product-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:end;margin:6px 0}
 .tablet-combined-products .product-filters label{min-width:0;margin:0;gap:3px;font-size:12px;line-height:1.3}
 .tablet-combined-products .product-filters select{width:100%;min-width:0;min-height:44px;padding:6px;font-size:12px}
 .tablet-combined-products .product-filters button{min-height:44px;padding:6px;font-size:12px}
 .tablet-combined-products .product-filters .product-offer-filter{gap:6px;align-items:center;min-height:44px}
 .tablet-combined-products .product-offer-help,.tablet-combined-products [data-product-results]{font-size:12px;line-height:1.4;margin:5px 0}
 .tablet-combined-products .product-carousel{margin-top:6px}
 .tablet-combined-products .product-carousel>h3{font-size:18px;line-height:1.25;margin:0 0 5px}
 .tablet-combined-products #product-carousel-help{font-size:12px;line-height:1.4;margin:5px 0}
 .tablet-combined-products .product-carousel-controls{gap:4px;margin:6px 0}
 .tablet-combined-products .product-carousel-controls button{min-height:44px;padding:8px 6px;font-size:12px}
 .tablet-combined-products .product-carousel-controls [role=status]{font-size:12px;line-height:1.3}
}
@media screen and (min-width:768px) and (max-width:1366px) and (min-height:600px){
  #compare:has(.tablet-combined-products)>.card>h2{margin:0 0 8px;font-size:22px;line-height:1.25;text-align:center}
  #compare:has(.tablet-combined-products)>.card>label[for=search]{margin:4px 0;font-size:14px;line-height:1.3}
  #compare:has(.tablet-combined-products)>.card>form{display:flex;gap:8px;align-items:stretch}
  #compare:has(.tablet-combined-products) #search{flex:1;min-width:0;min-height:44px;padding:8px 10px}
  #compare:has(.tablet-combined-products)>.card>form>.btn{flex:none;min-height:44px;padding:8px 12px;white-space:nowrap}
  #compare:has(.tablet-combined-products)>.card>p.small{margin:4px 0;font-size:12px;line-height:1.4}
  .tablet-combined-products .product-filters{display:grid;grid-template-columns:minmax(110px,1fr) minmax(150px,1.5fr) auto auto;gap:8px;align-items:end;margin:6px 0}
  .tablet-combined-products .product-filters label{min-width:0;margin:0;gap:3px}
  .tablet-combined-products .product-filters select{width:100%;padding:6px;min-height:44px}
  .tablet-combined-products .product-filters button{min-height:44px;padding:6px 8px;font-size:13px}
  .tablet-combined-products .product-offer-help{font-size:12px;line-height:1.4;margin:6px 0}
  .tablet-combined-products [data-product-results]{font-size:12px;line-height:1.4;margin:6px 0}
  .tablet-combined-products .product-carousel{margin-top:6px}
  .tablet-combined-products .product-carousel>h3{font-size:18px;line-height:1.25;margin:0 0 5px}
  .tablet-combined-products #product-carousel-help{font-size:12px;line-height:1.4;margin:5px 0}
  .tablet-combined-products .product-carousel-controls{grid-template-columns:auto auto minmax(0,1fr) auto;gap:8px;margin:6px 0}
  .tablet-combined-products .product-carousel-controls button{min-height:44px;padding:8px 10px;font-size:13px;grid-row:1}
  .tablet-combined-products [data-carousel-prev]{grid-column:1}
  .tablet-combined-products [data-carousel-rotation]{grid-column:2}
  .tablet-combined-products [data-carousel-next]{grid-column:4}
  .tablet-combined-products .product-carousel-controls [role=status]{grid-column:3;grid-row:1;font-size:12px;line-height:1.3}
}

/* Smaller phone widths keep the same low-wide card without squeezing its price. */
@media screen and (max-width:450px){
  .tablet-combined-products .product-card{grid-template-columns:80px minmax(0,1fr);container-type:inline-size}
  .tablet-combined-products .product-card>img{width:80px}
  .tablet-combined-products .product-card .product-price-note>strong{font-size:clamp(18px,7cqi,23px)}
}
/* Apply the existing phone hero sizing in short iPhone landscape viewports too. */
@media screen and (min-width:768px) and (max-width:960px) and (max-height:500px){
  header .pet-accessories-hero-frame{display:block;max-width:100%}
  header .pet-accessories-hero-frame>.pet-accessories-hero{display:block;width:min(320px,85%)!important;height:auto!important;object-fit:contain!important;margin:12px auto 0}
}
