/* Layered important rules supersede the older page-specific card overrides. */
@layer product-card-reference {
  .product-card--minimal {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .product-card--minimal .product-card__media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    background: #eee9e1 !important;
    overflow: hidden !important;
  }
  .product-card--minimal .product-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }
  .product-card--minimal .product-card__badge {
    top: 16px !important;
    left: 16px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #b92f2b !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }
  .product-card--minimal .product-card__content {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    height: auto !important;
    padding: 10px 6px 0 !important;
    gap: 2px !important;
    background: transparent !important;
  }
  .product-card--minimal .product-card__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 0 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: -.02em !important;
    color: #242824 !important;
    text-decoration: none !important;
  }
  .product-card--minimal .product-card__category {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #8b8b83 !important;
  }
  .product-card--minimal .product-card__purchase {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 0px !important;
  }
  .product-card--minimal .product-card__price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    letter-spacing: -.03em !important;
    color: #242824 !important;
  }
  .product-card--minimal .product-card__old-price-chip {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .product-card--minimal .product-card__old-price-chip del {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #92938a !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: currentColor !important;
  }
  .product-card--minimal .product-card__footer {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .product-card--minimal .product-card__footer form { width: auto !important; margin: 0 !important; }
  .product-card--minimal .product-card__footer .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #242824 !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .product-card--minimal .product-card__footer .button:hover,
  .product-card--minimal .product-card__footer .button:focus-visible { background: #454c43 !important; }
  .product-card--minimal .product-card__footer .button:focus-visible { outline: 2px solid #242824 !important; outline-offset: 3px !important; }
  .product-card--minimal .product-card__footer .button .product-card__add-icon {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    min-height: 21px !important;
    flex: 0 0 21px !important;
  }
  .product-grid, .shop-results { gap: 26px !important; }
  @media (min-width: 1200px) {
    .product-grid, .shop-results { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  }
  @media (max-width: 720px) {
    .product-grid, .shop-results { gap: 20px 14px !important; }
    .product-card--minimal .product-card__content { padding: 12px 2px 0 !important; gap: 6px !important; }
    .product-card--minimal .product-card__title { font-size: 12px !important; }
    .product-card--minimal .product-card__category { font-size: 11px !important; }
    .product-card--minimal .product-card__price { font-size: 16px !important; gap: 5px !important; }
    .product-card--minimal .product-card__old-price-chip del { font-size: 10px !important; }
    .product-card--minimal .product-card__badge { top: 10px !important; left: 10px !important; padding: 5px 9px !important; font-size: 10px !important; }
    .product-card--minimal .product-card__footer .button { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; }
  }
}
