/* Reserve each photo's space while it loads; keep the complete item visible. */
.product-photo { flex: none; width: 100%; }
.product-photo > .product-open { position: absolute; inset: 0; }
.photo-loading, .photo-failed { background: #f4f6f5; }
.photo-loading img, .photo-failed img { opacity: 0; }
.photo-loading::after {
  content: "Loading photo…";
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #58675f; font-size: 12px; pointer-events: none;
}
.photo-status {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 12px;
  color: #344c3c; font-size: 12px; text-align: center;
}
.photo-status button {
  min-height: 44px; padding: 8px 14px; border: 1px solid #b9cdc0;
  background: #fff; color: #086232; border-radius: 8px; font: inherit;
  font-weight: 600; cursor: pointer;
}
.photo-status button:focus-visible { outline: 3px solid #008738; outline-offset: 2px; }
@media (max-width: 600px) {
  body[data-page="home"] .home-hero { padding: 20px 18px 16px; }
  body[data-page="home"] #hero-title { font-size: clamp(32px, 9.5vw, 40px); line-height: 1.04; }
  body[data-page="home"] .home-hero-intro { margin-top: 20px; line-height: 1.5; }
  body[data-page="home"] .home-hero-art { height: 120px; width: 100%; margin: 10px 0 0; }
  body[data-page="home"] .home-hero-benefits { padding-top: 12px; margin-top: 10px; }
  body[data-page="home"] .home-hero-benefits>span { flex-direction: row; gap: 6px; align-items: flex-start; }
  body[data-page="home"] .home-hero-benefits .icon { width: 18px; height: 18px; }
  body[data-page="home"] .category-grid:not(.sub) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  body[data-page="home"] .category-grid:not(.sub) .category-card:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  body[data-page="home"] .category-grid:not(.sub) .category-icon { position: relative; aspect-ratio: 1.4; }
  body[data-page="home"] .category-grid:not(.sub) .category-icon picture { position: absolute; inset: 0; }
  body[data-page="home"] .category-grid:not(.sub) .category-name { font-size: 12px; line-height: 1.3; min-height: 3.9em; padding-inline: 4px; }
  body[data-page="home"] .listing-toolbar { gap: 8px; margin-bottom: 12px; }
  body[data-page="home"] .listing-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  body[data-page="home"] .listing-tabs .tab { min-height: 40px; padding: 7px 6px; font-size: 12px; justify-content: center; }
  body[data-page="home"] .sort-control { width: 100%; justify-content: flex-end; margin: 0; padding: 0; min-height: 40px; }
  body[data-page="home"] .sort-control select { max-width: 235px; min-height: 40px; }
  body[data-page="home"] .active-filters:empty { display: none; }
  body[data-page="home"].category-view .categories-section { padding-top: 16px; }
  body[data-page="home"].category-view .categories-section .section-heading { gap: 10px; margin-bottom: 12px; }
  body[data-page="home"].category-view #categories-link { display: none; }
  body[data-page="home"].category-view #subcategories-note { font-size: 12px; line-height: 1.5; margin: 0 0 10px; }
  body[data-page="home"].category-view .category-grid.sub { gap: 10px; padding-bottom: 16px; }
  body[data-page="home"].category-view .category-grid.sub .category-card { padding: 8px; }
  body[data-page="home"].category-view .category-grid.sub .category-card.has-image .category-icon { aspect-ratio: 1.6; margin-bottom: 6px; }
  body[data-page="home"].category-view .finds-section { padding-top: 16px; }
  body[data-page="home"] .product-cart-button { margin-top: auto; min-height: 44px; }
  body[data-page="home"] .product-bottom { margin-bottom: 12px; }
  body[data-page="item"] .item-mobile-purchase { padding: 8px 12px; gap: 10px; border-radius: 10px; }
  body[data-page="item"] .item-mobile-purchase .mobile-price-label { display: none; }
  body[data-page="item"] .item-mobile-purchase strong { font-size: 24px; }
}
