/* Два способа оплаты и читаемые цвета в обеих темах. */
.shop-product { padding: 1.1rem; border-radius: 1.15rem; }
.shop-product .product-card__visual { position: relative; height: 10rem; margin: -1.1rem -1.1rem 1rem; width: calc(100% + 2.2rem); background: radial-gradient(ellipse at 50% 80%, var(--accent-glow), transparent 72%), var(--surface-inset); }
.shop-product .product-card__visual img { width: 8rem; height: 8rem; }
.shop-product .shop-product__quantity { position: absolute; right: .8rem; bottom: .7rem; padding: .25rem .6rem; border: 1px solid var(--line-strong); border-radius: .55rem; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 800; }
.shop-product .product-card__body h2 { min-height: 2.6em; font-size: 1.12rem; line-height: 1.3; }
.shop-product__summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem 0 1rem; color: var(--muted); font-size: .8rem; }
.shop-product__summary .button { padding: .4rem .6rem; }
.shop-product__payments { display: flex; flex-direction: column; justify-content: flex-end; gap: .55rem; min-height: 9.6rem; margin-top: auto; }
button.shop-pay, a.shop-pay { min-width: 0; border: 1px solid; border-radius: .7rem; text-align: center; transition: filter 150ms ease, transform 150ms ease; }
.shop-product__payments .shop-pay { display: grid; grid-template-columns: 1fr; justify-items: center; align-content: center; gap: .12rem; min-height: 4.5rem; padding: .5rem .65rem; line-height: 1.25; }
.shop-pay > span { font-size: .72rem; font-weight: 500; }
.shop-pay strong { font-size: 1rem; overflow-wrap: anywhere; }
.shop-pay strong small { color: inherit; font-size: .84rem; font-weight: 650; }
.shop-pay del { font-size: .7rem; }
.shop-pay .shop-pay__discount { display: flex; align-items: center; gap: .45rem; font-size: .75rem; }
.shop-pay__discount b { padding: .08rem .35rem; border: 1px solid currentColor; border-radius: .3rem; font-size: .65rem; }
.shop-admin-price { display: grid; gap: .5rem; min-width: 8.5rem; max-width: 12rem; padding-left: .7rem; border-left: 3px solid #34748a; }
.shop-admin-price--gold { border-left-color: #b88720; }
.shop-admin-price label { display: grid; gap: .25rem; font-size: .75rem; }
.shop-item-table--prices th, .shop-item-table--prices td { padding: .7rem .55rem; }
.shop-item-table--prices th:first-child, .shop-item-table--prices td:first-child { width: 10rem; text-align: left; }
.shop-item-table--prices th:nth-child(3), .shop-item-table--prices td:nth-child(3) { width: 6rem; white-space: normal; }
.shop-item-table--prices td:nth-child(3) input { min-width: 4rem; }
.shop-item-table--prices th:last-child, .shop-item-table--prices td:last-child { width: auto; }
.button.shop-pay--cash { background: #123f54; border-color: #34748a; color: #f0faff; }
.button.shop-pay--gold { background: #f3c45b; border-color: #947015; color: #322107; box-shadow: inset 0 1px 0 #fff4c2; }
.button.shop-pay--cash:hover { background: #195267; border-color: #4d92aa; color: #fff; }
.button.shop-pay--gold:hover { background: #ffda7a; border-color: #80600f; color: #241804; }
.shop-pay:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.shop-pay:disabled { filter: grayscale(.7); opacity: .65; transform: none; }
.product-grid--list .shop-product { grid-template-columns: 10rem minmax(0, 1fr); }
.product-grid--list .shop-product .product-card__visual { width: 10rem; height: auto; min-height: 10rem; margin: -1.1rem 0 -1.1rem -1.1rem; }
.product-grid--list .shop-product .product-card__body h2 { min-height: 0; }
.product-grid--list .shop-product__payments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 3.55rem; max-width: 38rem; }
@media (max-width: 640px) {
  .product-grid--list .shop-product { grid-template-columns: 5rem minmax(0, 1fr); gap: .85rem; }
  .product-grid--list .shop-product .product-card__visual { width: 5rem; height: 6rem; min-height: 0; margin: 0; border-radius: .6rem; }
  .product-grid--list .shop-product .product-card__visual img { width: 4.7rem; height: 4.7rem; }
  .product-grid--list .shop-product .shop-product__quantity { right: .1rem; bottom: .1rem; font-size: .75rem; }
  .product-grid--list .shop-product__payments { grid-template-columns: 1fr; }
}

.product-grid--list .shop-product__payments > :only-child { grid-column: 1 / -1; }
