/* Магазин использует общие поля mm-input и кнопки mm-btn-primary. */
.mm-shop { color: var(--mm-text); padding: 2rem 0 3rem; font-size: 1rem; line-height: 1.5; }
.mm-shop *, .mm-shop *::before, .mm-shop *::after { box-sizing: border-box; }
.mm-shop-header { margin-bottom: 2rem; }
.mm-shop-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.mm-shop-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .9rem; }
.mm-shop-nav a { color: #666; text-decoration: none; }
.mm-shop-nav a:hover, .mm-shop-nav a[aria-current="page"] { color: var(--mm-text); text-decoration: underline; text-underline-offset: .3rem; }
.mm-shop h2, .mm-shop h3 { text-align: left !important; font-weight: 600; margin-bottom: 1rem !important; }
.mm-shop p { font-size: 1rem; }
.mm-shop .small, .mm-shop .form-text { font-size: .875rem; }
.mm-shop .mm-label { display: block; font-size: .95rem; margin-bottom: .5rem; }
.mm-shop .mm-input { min-height: 48px; padding: .65rem .85rem; font-size: 1rem; }
.mm-shop .form-select { background-color: white; padding-right: 2.5rem; }
.mm-shop .btn { min-height: 44px; border-radius: .5rem; padding: .6rem 1rem; font-size: 1rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.mm-shop .mm-btn-primary { font-weight: 600; }
.mm-shop .mm-btn-secondary { border: 1px solid var(--mm-border); background: white; color: var(--mm-text); }
.mm-shop .mm-btn-secondary:hover { border-color: var(--mm-accent); background: #fff9ed; }
.mm-shop .mm-link { color: var(--mm-text); text-decoration: underline; text-underline-offset: .2rem; }
.mm-shop button.mm-link { border: 0; padding: 0; background: none; font: inherit; }
.mm-shop a:focus-visible, .mm-shop button:focus-visible, .mm-shop [tabindex]:focus-visible { outline: 2px solid var(--mm-accent); outline-offset: 3px; }
.mm-shop .card, .mm-shop-panel { border: 1px solid var(--mm-border); border-radius: .75rem; background: white; }
.mm-shop-panel { padding: 1.5rem; margin-bottom: 1.5rem; }
.mm-shop-panel > :last-child { margin-bottom: 0; }
.mm-shop-step { display: flex; align-items: center; gap: .75rem; font-size: 1.125rem; }
.mm-shop-step span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff3d9; display: inline-flex; align-items: center; justify-content: center; color: var(--mm-text); font-size: .9rem; }
.mm-shop-summary { background: #f5f5f5; border: 1px solid var(--mm-border); border-radius: .75rem; padding: 1.5rem; position: sticky; top: 1.5rem; }
.mm-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.mm-summary-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.mm-summary-row > :last-child { white-space: nowrap; }
.mm-summary-total { font-size: 1.25rem; }
.mm-shop .mm-form { padding: 1.75rem; box-shadow: 0 4px 20px rgb(0 0 0 / 4%); }
.mm-account-entry { max-width: 960px; margin: 1rem auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mm-account-intro { align-self: start; padding-top: 2.25rem; }
.mm-account-intro h2 { font-size: 1.75rem; line-height: 1.25; }
.mm-account-intro p { color: #666; max-width: 360px; }
.mm-account-benefits { list-style: none; padding: 0; margin: 1.75rem 0; }
.mm-account-benefits li { display: flex; gap: .8rem; margin: 1rem 0; }
.mm-account-benefits i { color: #a66b07; font-size: 1.2rem; }
.mm-auth-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--mm-border); margin-bottom: 1.5rem; }
.mm-auth-tabs button { flex: 1; border: 0; background: transparent; padding: .75rem .25rem; border-bottom: 3px solid transparent; font: inherit; color: #666; }
.mm-auth-tabs button[aria-selected="true"] { border-bottom-color: var(--mm-accent); color: var(--mm-text); font-weight: 600; }
.mm-password { position: relative; }
.mm-password input { padding-right: 3rem !important; }
.mm-password button { position: absolute; right: 2px; top: 2px; border: 0; padding: .6rem; min-width: 44px; background: transparent; color: #666; }
.mm-autocomplete { position: relative; }
.mm-suggestions { position: absolute; top: 48px; left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--mm-border); border-radius: .5rem; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); max-height: 280px; overflow-y: auto; }
.mm-suggestions [role="option"] { padding: .8rem 1rem; cursor: pointer; font-size: 1rem; overflow-wrap: anywhere; }
.mm-suggestions [role="option"] + [role="option"] { border-top: 1px solid #f0f0f0; }
.mm-suggestions [role="option"]:hover, .mm-suggestions [aria-selected="true"] { background: #fff3d9; }
.mm-shop .mm-suggestion-status:empty { display: none; }
.mm-delivery-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 1.5rem; }
.mm-delivery-option { position: relative; }
.mm-delivery-option input { position: absolute; opacity: 0; width: 1px; }
.mm-delivery-option label { display: flex; height: 100%; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid var(--mm-border); border-radius: .5rem; cursor: pointer; }
.mm-delivery-option i { font-size: 1.3rem; }
.mm-delivery-option small { color: #666; }
.mm-delivery-option input:checked + label { border-color: var(--mm-accent); background: #fff9ed; box-shadow: 0 0 0 1px var(--mm-accent); }
.mm-delivery-option input:focus-visible + label { outline: 2px solid var(--mm-accent); outline-offset: 3px; }
.mm-shop .form-check { display: flex; align-items: flex-start; gap: .75rem; padding-left: 0; }
.mm-shop .form-check-input { float: none; margin: .3rem 0 0; flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
.mm-shop .form-check-input:checked { background-color: var(--mm-accent); border-color: var(--mm-accent); }
.mm-shop .form-check-label { font-size: .9rem; color: #666; }
.mm-quote { display: flex; gap: .8rem; padding: 1rem; margin-top: .75rem; border: 1px solid var(--mm-border); border-radius: .5rem; cursor: pointer; }
.mm-quote:has(input:checked) { border-color: var(--mm-accent); background: #fff9ed; }
.mm-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.25rem; align-items: start; padding: 1.25rem; margin-bottom: 1rem; }
.mm-cart-item img { width: 96px; height: 96px; object-fit: contain; border-radius: .5rem; }
.mm-cart-price { white-space: nowrap; }
.mm-quantity { display: inline-flex; align-items: center; border: 1px solid var(--mm-border); border-radius: .5rem; background: #fff; overflow: hidden; }
.mm-shop .mm-quantity button { border: 0; background: #fff; padding: .5rem; min-width: 44px; }
.mm-shop .mm-quantity input { border: 0; width: 56px; text-align: center; border-radius: 0; padding: .5rem 0; min-height: 44px; appearance: textfield; }
.mm-quantity input::-webkit-inner-spin-button { appearance: none; }
.mm-empty { padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--mm-border); border-radius: .75rem; background: #fafafa; }
.mm-empty h2 { text-align: center !important; }
.mm-empty > i { font-size: 2.5rem; color: #a66b07; }
.mm-address-row { display: flex; align-items: start; gap: .5rem; }
.mm-address-row > .mm-field { flex: 1; min-width: 0; }
.mm-address-row > button { margin-top: 2rem; flex-shrink: 0; }
.mm-shop-status { border-radius: 2rem; background: #fff3d9; color: #705011; padding: .4rem .85rem; font-size: .875rem; font-weight: 600; }
.mm-order-link { color: var(--mm-text); text-decoration: none; display: block; padding: 1.25rem; margin-bottom: .75rem; }
.mm-order-link:hover { border-color: var(--mm-accent); box-shadow: 0 3px 14px rgb(0 0 0 / 4%); }
.mm-shop .mm-order-id { overflow-wrap: anywhere; color: #666; font-size: .875rem; }
.mm-shop .alert { font-size: 1rem; border-radius: .5rem; }
.mm-shop [hidden] { display: none !important; }
.mm-suggestion-attribution a { font-size: .75rem; color: #666; text-decoration: underline; }
@media (max-width: 991px) {
  .mm-account-entry { gap: 2rem; }
  .mm-shop-summary { position: static; }
}
@media (max-width: 575px) {
  #scrollTopBtn { display: none !important; }
  .mm-shop { padding-top: 1.25rem; }
  .mm-shop-header { margin-bottom: 1.5rem; }
  .mm-shop-nav { gap: 1rem; font-size: .85rem; }
  .mm-account-entry { display: block; margin-top: 0; }
  .mm-account-intro { padding-top: 0; margin-bottom: 1.5rem; }
  .mm-account-intro h2 { font-size: 1.25rem; }
  .mm-account-benefits { display: none; }
  .mm-shop .mm-form, .mm-shop-panel, .mm-shop-summary { padding: 1.25rem; }
  .mm-delivery-options { gap: .5rem; }
  .mm-delivery-option label { padding: .75rem .5rem; font-size: .875rem; }
  .mm-delivery-option small { font-size: .75rem; }
  .mm-cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; padding: 1rem; }
  .mm-cart-item img { width: 64px; height: 64px; }
  .mm-cart-price { grid-column: 2; }
}
