/* Candy Rainbow: 4:3 product artwork and a retro six-color-inspired palette.
   Homepage only. Other surfaces retain their existing layout and behavior. */
.consumer.storefront-view {
  --page: #f5f5f7;
  --text: #1d1d1f;
  --ink: var(--text);
  --muted: #656568;
  --line: #e6e6e9;
  --primary: #0068ad;
  --primary-deep: #005a98;
  --surface-soft: #eef4fa;
  --retro-green: #61bb46;
  --retro-yellow: #fdb827;
  --retro-orange: #f5821f;
  --retro-red: #e03a3e;
  --retro-purple: #963d97;
  --retro-blue: #009ddc;
  --candy-ribbon: linear-gradient(90deg, var(--retro-green) 0% 16.66%, var(--retro-yellow) 16.66% 33.33%, var(--retro-orange) 33.33% 50%, var(--retro-red) 50% 66.66%, var(--retro-purple) 66.66% 83.33%, var(--retro-blue) 83.33% 100%);
  background: var(--page);
}
.storefront-view .topbar { border-top: 4px solid transparent; border-bottom: 0; border-image: var(--candy-ribbon) 1; background: #fff; }
.consumer.storefront-view .topbar-inner { min-height: 62px; }
.consumer.storefront-view .brand { gap: 10px; }
.consumer.storefront-view .brand-mark { width: 44px; height: 44px; background: none; border-radius: 0; }
.storefront-view .brand-mark img { display: block; width: 100%; height: 100%; }
.storefront-view .brand-wordmark > span { color: var(--text); }
.consumer.storefront-view .nav-actions .button { background: #eef4fa; color: #005a98; }
.consumer.storefront-view .notice-strip { padding-block: 9px; font-size: 11px; }
.consumer.storefront-view .notice-strip strong { padding: 3px 8px; border-radius: 6px; background: #fff1ce; color: #775300; }
.storefront-view .catalog-intro { padding-block: 11px; }
.storefront-view .intro-copy h1 { color: var(--text); font-weight: 750; }
.storefront-view .catalog-search { gap: 6px; }
.consumer.storefront-view .search-box { border-color: #dcdce0; border-radius: 12px; }
.consumer.storefront-view .search-box button,
.consumer.storefront-view .product-purchase button:not(:disabled) { background: #0068ad; }
.consumer.storefront-view .search-box button:hover,
.consumer.storefront-view .product-purchase button:not(:disabled):hover { background: #00558e; }
.consumer.storefront-view .chip:hover,
.consumer.storefront-view .chip.active { background: #e8f3e4; color: #356026; }
.consumer.storefront-view .category-pill { border-radius: 10px; }
.consumer.storefront-view .category-pill:hover { background: #eaf0f6; }
.consumer.storefront-view .category-pill.active { background: #e7f3e2; color: #356026; }
.consumer.storefront-view .category-pill.active::after { background: #61bb46; }
.consumer.storefront-view .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.consumer.storefront-view .product {
  --candy-wash: #edf6e9;
  --candy-label: #356026;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  gap: 10px 12px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgb(29 29 31 / 6%);
  transition: box-shadow 180ms ease;
}
.consumer.storefront-view .product:hover { border: 0; box-shadow: 0 8px 24px rgb(29 29 31 / 11%); }
.storefront-view .product:nth-child(6n + 2) { --candy-wash: #fff4d9; --candy-label: #775300; }
.storefront-view .product:nth-child(6n + 3) { --candy-wash: #fff0e2; --candy-label: #8b4309; }
.storefront-view .product:nth-child(6n + 4) { --candy-wash: #fce9e9; --candy-label: #983033; }
.storefront-view .product:nth-child(6n + 5) { --candy-wash: #f5eaf5; --candy-label: #7a337b; }
.storefront-view .product:nth-child(6n) { --candy-wash: #e5f2fa; --candy-label: #005a98; }
.consumer.storefront-view .product > .cover { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; align-self: start; min-width: 0; border-radius: 12px; background: var(--candy-wash); }
.consumer.storefront-view .product .cover.has-image img { object-fit: contain; background: transparent; }
.storefront-view .product .cover.has-image .cover-fallback { visibility: hidden; }
.storefront-view .product > .product-body { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; }
.storefront-view .product-meta { gap: 4px; margin-bottom: 6px; }
.storefront-view .product-category { padding: 2px 7px; border-radius: 5px; color: var(--candy-label); background: var(--candy-wash); font-size: 10px; line-height: 1.6; }
.consumer.storefront-view .stock { font-size: 10px; }
.consumer.storefront-view .product h3 { font-size: 15px; line-height: 1.4; letter-spacing: -.02em; text-wrap: pretty; }
.storefront-view .product h3 a { text-decoration: none; }
.storefront-view .product h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.consumer.storefront-view .product p { margin-top: 6px; font-size: 12px; line-height: 1.6; }
.storefront-view .product-purchase { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, .85fr); align-items: center; gap: 6px 12px; margin-top: 0; padding-top: 8px; }
.storefront-view .product-aux { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-height: 20px; }
.storefront-view .catalog-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.storefront-view .catalog-facts:empty { display: none; }
.storefront-view .product-detail-short { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; margin-inline-start: auto; color: var(--primary-deep); font-size: 11px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.storefront-view .product-detail-short:hover { text-decoration: underline; text-underline-offset: 3px; }
.storefront-view .catalog-options { gap: 4px 6px; font-size: 10px; }
.storefront-view .catalog-options-values { gap: 3px 6px; }
.consumer.storefront-view .product-purchase .product-promotion { gap: 2px 6px; font-size: 10px; }
.consumer.storefront-view .product-purchase .product-promotion strong { font-size: 12px; white-space: nowrap; }
.consumer.storefront-view .price { font-size: 24px; white-space: nowrap; }
.storefront-view .product-minimum { margin-top: 3px; line-height: 1.5; white-space: normal; }
.storefront-view .unit-label { margin-inline-end: 4px; }
.consumer.storefront-view .price small { margin-inline-start: 4px; font-size: 10px; }
.storefront-view .product-purchase button { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.consumer.storefront-view .product.is-sold-out button:disabled { color: #69696d; background: #ededf0; opacity: 1; }
.storefront-view .purchase-guide { margin-top: 24px; }
@media (max-width: 1199px) {
  .consumer.storefront-view .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .consumer.storefront-view .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .consumer.storefront-view .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding: 12px; gap: 8px 10px; }
  .consumer.storefront-view .brand-mark { width: 34px; height: 34px; }
  .consumer.storefront-view .topbar-inner { min-height: 60px; }
  .consumer.storefront-view .product h3 { font-size: 16px; }
  .consumer.storefront-view .product .price { font-size: 24px; }
  .storefront-view .catalog-intro { padding-block: 18px; }
}
