/* Shared finish for the storefront tiles. The page styles own grid and control sizing. */
body[data-page] #productGrid .product-card {
  --product-ink: #2d251f;
  --product-muted: #604f41;
  --product-edge: rgb(248 239 232 / 72%);
  color: var(--product-ink);
  border: 1px solid var(--product-edge);
  border-radius: 20px;
  background-color: rgb(234 230 218 / 20%);
  background-image:
    radial-gradient(ellipse 60% 140px at 0% 0%, #f8e9b4ae, transparent),
    radial-gradient(ellipse 70% 160px at 100% 0%, #7b5d54ab, transparent),
    linear-gradient(175deg, #b59a92ca 0, #d0c3b9e0 88px, #efe9dff5 210px, #f2efe6f5 58%, #e8e2ddf2);
  box-shadow: inset 0 1px 2px #fefdfddf, inset 1px 0 1px #fefefd75,
              inset 0 -2px 3px #a48c7a69, 0 5px 14px #25130d45;
}

body[data-page] #productGrid .product-card:is(:hover, :focus-within) {
  border-color: #f2e4ad;
  box-shadow: inset 0 1px 2px #fffbea, inset 0 -2px 3px #a48c7a69,
              0 8px 20px #24130e4f, 0 0 12px #d5c37c2e;
}

body[data-page] #productGrid .product-card__image {
  background: radial-gradient(ellipse at 50% 94%, #61584328, transparent 59%);
  border-color: transparent;
  box-shadow: none;
}

body[data-page] #productGrid .product-card__image img {
  width: auto;
  height: auto;
  max-width: calc(100% - 12px);
  max-height: calc(100% - 10px);
  margin: auto;
  padding: 0;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 3px 8px #423d2e36;
}

body[data-page] #productGrid .product-card__favorite {
  color: #fefcfb;
  background: #5b453ebf;
  border: 1px solid #fffae77d;
  box-shadow: inset 0 1px 1px #fff5, 0 2px 5px #3e2e2a33;
}

body[data-page] #productGrid .product-card__favorite[aria-pressed="true"] {
  background: #f6eadc;
  color: #953c38;
  border-color: #9e554d;
}

body[data-page] #productGrid .product-card h3 button,
body[data-page] #productGrid .price b {
  color: var(--product-ink);
}

body[data-page] #productGrid .product-card__category,
body[data-page] #productGrid .product-card__summary,
body[data-page] #productGrid .price-unit {
  color: var(--product-muted);
}

body[data-page] #productGrid .variant-option,
body[data-page] #productGrid .product-quantity-control {
  background: linear-gradient(#fefcfbcc, #eae5e1bf);
  border-color: #bdab9d;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fffefe;
}

body[data-page] #productGrid .variant-option.is-active {
  color: #4b352f;
  background: linear-gradient(#f6efea, #ebe1d9);
  border-color: #866c59;
  box-shadow: inset 0 0 0 1px #866c59;
}

body[data-page] #productGrid .add-button {
  border-radius: 999px;
  color: #fefdfc;
  border-color: #d6c1b0;
  background: linear-gradient(#8f684b, #765034 48%, #64452e);
  box-shadow: inset 0 1px 2px #f3e4d97d, 0 2px 5px #57423133;
}

body[data-page] #productGrid .add-button[data-action="add"]::before {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1.25em;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2 12h12l2-9H6M9 21h.1M18 21h.1'/%3E%3C/svg%3E");
}

body[data-page] #productGrid .add-button:hover {
  background: linear-gradient(#876246, #5c402b);
}

body[data-page] #productGrid .product-card :focus-visible {
  outline: 2px solid #655040;
  outline-offset: -3px;
}
