/* A rounded photo tile with the product information on its surrounding surface. */
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card,
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card:hover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  color: var(--theme-ink, var(--lab-ink, #292c28));
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card::before,
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card::after {
  display: none !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .product-image {
  grid-area: 1 / 1;
  border-radius: clamp(16px, 4vw, 22px) !important;
  overflow: hidden !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .product-info {
  grid-area: 2 / 1;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card :is(.product-name, .product-price) {
  background: transparent !important;
  color: var(--theme-ink, var(--lab-ink, #292c28)) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card :is(.price-currency, .product-volume) {
  color: var(--theme-muted, var(--lab-muted, #70665d)) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .product-image :is(.lab-photo-placeholder, .product-photo-fallback) {
  color: var(--theme-muted, var(--lab-muted, #70665d)) !important;
}

/* Controls are siblings of the image link, never buttons nested inside it. */
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card > .photo-product-action {
  grid-area: 1 / 1;
  place-self: end;
  position: relative;
  z-index: 3;
  width: 44px;
  max-width: calc(100% - 16px);
  min-width: 0;
  margin: 0 8px 8px 0;
  transition: width 180ms ease;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card > .photo-product-action.is-expanded {
  width: calc(100% - 16px);
  max-width: 168px;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .photo-product-action .add-to-cart {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--theme-line, var(--lab-line, #dfd5ca));
  background: var(--theme-surface, #fffaf3) !important;
  color: var(--theme-ink, var(--lab-ink, #292c28)) !important;
  font: 500 26px/1 var(--font-body, sans-serif);
  box-shadow: none !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .photo-product-action :is(.qty-stepper, .weight-stepper) {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--theme-line, var(--lab-line, #dfd5ca));
  border-radius: 24px;
  background: var(--theme-surface, #fffaf3) !important;
  color: var(--theme-ink, var(--lab-ink, #292c28)) !important;
  box-shadow: none !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .photo-product-action :is(.qty-stepper-btn, .weight-stepper-btn) {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent !important;
  color: var(--theme-ink, var(--lab-ink, #292c28)) !important;
  box-shadow: none !important;
  font-size: 24px;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .photo-product-action :is(.qty-stepper-value, .weight-stepper-value) {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  color: var(--theme-ink, var(--lab-ink, #292c28)) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .photo-product-action .weight-stepper-value small {
  font-size: 9px;
  color: var(--theme-muted, var(--lab-muted, #70665d)) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .ux-favorite {
  z-index: 4;
  padding: 9px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--photo-heart-ink, #292c28) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .ux-favorite svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 1px var(--photo-heart-halo, #fff));
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .ux-favorite[aria-pressed="true"] {
  color: var(--theme-accent, var(--approved-accent, var(--lab-brick, #aa402d))) !important;
}
html.lab-design.approved-storefront :is(#storeMain, #storeFavorites, #cartModal) .product-card .ux-favorite[aria-pressed="true"] svg {
  fill: currentColor;
}
@media (prefers-reduced-motion: reduce) {
  html.lab-design.approved-storefront .product-card > .photo-product-action { transition: none; }
}
