/* Compact header and nonblocking cart confirmation. */
.header--compact .header-top { padding-top: 10px; padding-bottom: 10px; }
.header--compact .header-logo { width: clamp(145px, 12vw, 176px); height: 56px; }
.header--compact .header-logo img { object-fit: contain; }
.header--compact .header-bottom { padding-top: 10px; padding-bottom: 10px; }
.header-top__phones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; }
.header-top__phones .header-top__info-phone, .header-mobile__info-phone { white-space: nowrap; }
.header-mobile__info-phone { display: inline-flex; align-items: center; min-height: 44px; }
#modal-add-product { position: fixed; inset: auto 20px 20px auto; width: min(360px, calc(100% - 24px)); height: auto; background: transparent; z-index: 110; overflow: visible; pointer-events: none; font-family: 'Inter', sans-serif; color: var(--text-primary); }
#modal-add-product:not(.is-open) { visibility: hidden; }
#modal-add-product.is-open { visibility: visible; pointer-events: auto; }
#modal-add-product, #modal-add-product *, #modal-add-product *::before, #modal-add-product *::after { box-sizing: border-box; }
#modal-add-product .cart-toast__content { padding: 12px 16px 6px; border: 1px solid var(--divider-main); border-radius: 10px; background: var(--modal-inner); box-shadow: 0 8px 28px rgba(0,0,0,.22); }
#modal-add-product .cart-toast__heading { font: 600 16px/1.35 'Inter', sans-serif; margin: 0 28px 6px 0; }
#modal-add-product .cart-toast__product { font-size: 14px; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
#modal-add-product .cart-toast__details { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; line-height: 1.4; opacity: .8; }
#modal-add-product .cart-toast__details > span:not([hidden]) { display: inline-flex; align-items: baseline; gap: 8px; }
#modal-add-product .cart-toast__details > span:not([hidden]) + span:not([hidden])::before { content: '·'; }
#modal-add-product .cart-toast__link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); font-size: 14px; line-height: 1.35; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#modal-add-product .modal-close { display: block; position: absolute; top: 0; right: 0; width: 44px; height: 44px; background-size: 20px; z-index: 2; }
html[data-theme=light] #modal-add-product .modal-close { filter: invert(1); }
#modal-add-product button:focus-visible, #modal-add-product a:focus-visible { outline: 2px solid var(--gold-base); outline-offset: 2px; }
#modal-add-product [hidden] { display: none !important; }
@media (max-width: 600px) {
    #modal-add-product { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 1150px) {
    .header--compact .header-top { padding-top: 8px; padding-bottom: 8px; }
    .header--compact .header-logo { width: clamp(125px, 22vw, 153px); height: 46px; }
    .header--compact .header-mobile__button { width: 46px; height: 46px; padding: 14px 12px; }
}
