/* Wspólna warstwa podstron sklepu: ta sama siatka, typografia i powierzchnie co na stronie głównej. */
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-header, .shop-toolbar, .site-footer { flex-shrink: 0; }
#shop-content { flex: 1; min-width: 0; width: 100%; }
#shop-content .keep-height { min-height: 0; }
:is(#shop-content, .wk-dialog) .btn { border-radius: 7px; font-weight: 700; line-height: 1.35; }
:is(#shop-content, .wk-dialog) .btn-grey, :is(#shop-content, .wk-dialog) .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
:is(#shop-content, .wk-dialog) .btn-grey:hover, :is(#shop-content, .wk-dialog) .btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
:is(#shop-content, .wk-dialog) .btn-text { background: transparent; border-color: transparent; color: var(--blue); }
:is(#shop-content, .wk-dialog) .btn-text:hover { background: transparent; border-color: transparent; color: var(--blue-hover); }
:is(#shop-content, .wk-dialog) .btn:disabled, :is(#shop-content, .wk-dialog) .btn.btn--disabled { background: #edf1f4; border-color: #edf1f4; color: #8a99a5; cursor: not-allowed; }
:is(#shop-content, .wk-dialog) .btn:focus-visible, #shop-content button:focus-visible { outline: 3px solid #92bad8; outline-offset: 3px; }
#shop-content .text-grey { color: #607383; }

/* Ścieżka nawigacji i nagłówki. */
.brcr-section { padding: 8px 0 22px; }
.brcr-section__heading, .shop-page-heading { margin: 0 0 18px; color: #142f48; font-size: 30px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.brcr-section__heading:only-child { margin-bottom: 0; }
.brcr-section__heading--small { font-size: 18px; }
.brcr-section__hsubline { display: block; margin-top: 8px; color: #607383; font-size: 14px; font-weight: 400; }
.brcr-section__links { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-width: 0; color: #607383; font-size: 13px; line-height: 1.5; }
.brcr-section__links:empty { display: none; }
.brcr-section__item { margin: 0; min-width: 0; }
.brcr-section__item[aria-current] { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brcr-section__item img { display: block; width: 13px; height: 13px; transform: scaleX(-1); opacity: .45; }

/* Wspólne ustawienia konta. */
.account-settings__section { scroll-margin-top: 110px; }
.account-settings__section + .account-settings__section { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e7edf2; }
.account-settings__section h3 { margin: 0 0 18px; color: #142f48; font-size: 18px; line-height: 1.4; }
.account-settings__section .account-form { max-width: 480px; }
.account-settings__section .account-form__block { width: 100%; }

/* Katalog i wyniki wyszukiwania. */
.category, .seres { padding-bottom: 40px; }
.category__grid, .seres__grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.category-sidebar, .seres-sidebar { width: auto; margin: 0; padding: 20px 16px; border: 1px solid #e1ebf3; border-radius: 12px; background: #fff; }
.category-main, .seres-main { width: auto; min-width: 0; }
.category-pcontent, .seres-pcontent { width: 100%; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.category-sidebar__heading, .seres-sidebar__heading { margin-bottom: 12px; color: #142f48; font-size: 17px; line-height: 1.3; }
.category-sidebar__subheading, .seres-sidebar__subheading { margin-bottom: 10px; color: #142f48; font-size: 14px; font-weight: 600; }
.category-sidebar__section + .category-sidebar__section, .seres-sidebar__section + .seres-sidebar__section { padding-top: 20px; border-top: 1px solid #e5edf2; }
.category-subcategories li a, .seres-subcategories li a { display: block; padding: 8px; border-radius: 6px; font-size: 14px; line-height: 1.35; }
.category-subcategories li a:hover, .seres-subcategories li a:hover { background: #f1f7fc; }
.category-subcategories li a.active, .seres-subcategories li a.active { background: #dceefe; color: #155d92; }
.category-producers li label, .seres-producers li label, .category-ccf__item, .seres-ccf__item { padding-left: 25px; font-size: 14px; line-height: 1.6; }
.category-producers li label input[type=checkbox], .seres-producers li label input[type=checkbox], .category-ccf__item input[type=checkbox], .seres-ccf__item input[type=checkbox] { top: 3px; width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.category-prices input, .seres-prices input { min-width: 0; padding: 9px; border-color: var(--line); border-radius: 7px; font-size: 14px; }
.category-pcontent__topbar, .seres-pcontent__topbar { gap: 16px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #e1ebf3; border-radius: 10px; background: #fff; font-size: 14px; }
.category-pcontent__topbar-item, .seres-pcontent__topbar-item { width: auto; }
.category-pcontent__topbar .shop-catalog-sort, .seres-pcontent__topbar .shop-catalog-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.category-pcontent__topbar #products-sort, .seres-pcontent__topbar #products-sort { max-width: 100%; min-height: 38px; margin: 0; border-color: var(--line); border-radius: 7px; font-size: 14px; }
.category-pcontent__topbar-noi, .category-pcontent__topbar-nop, .seres-pcontent__topbar-noi, .seres-pcontent__topbar-nop { color: #607383; font-size: 12px; }
.category .product-tile:last-child, .seres .product-tile:last-child { border-bottom: 1px solid #dfebf4; }
.products-list__empty { width: 100%; padding: 32px 24px; border: 1px solid #e1ebf3; border-radius: 10px; background: #fff; color: #607383; text-align: center; line-height: 1.6; }
.shop-empty-link { display: block; margin-top: 14px; color: var(--blue); font-weight: 600; }
.products-pagination { gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.products-pagination__pc { align-items: center; }
.products-pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 36px; margin: 0; border-radius: 6px; }
.products-pagination__link:hover { background: #eaf1f7; }
.products-pagination__link--active { background: var(--blue); color: #fff; }
.products-pagination__link--active:hover { background: var(--blue-hover); color: #fff; }
#shop-content .products-pagination__previous, #shop-content .products-pagination__next { min-width: 36px; min-height: 36px; margin-inline: 5px; padding: 6px; border: 1px solid var(--line); background: #fff; }
.products-pagination__mform input[type=number] { min-height: 40px; border-color: var(--line); border-radius: 6px; }

/* Karta produktu. */
.product { padding-bottom: 40px; }
.product-card { width: 100%; margin: 0; padding: 28px; border: 1px solid #e1ebf3; border-radius: 12px; background: #fff; }
.product-main, .product-parameters, .product-description { margin-bottom: 22px; }
.product-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.product-main__images, .product-main__info { width: auto; min-width: 0; margin: 0; }
.product-main-photos__bph { padding-bottom: 85%; border: 1px solid #edf2f5; border-radius: 9px; background: #fff; }
.product-main-photos__bph img { object-fit: contain; padding: 16px; }
.product-main-photos__sph a { border-color: #e1ebf3; border-radius: 7px; background: #fff; }
.product-main__name { padding: 0; margin: 0 0 24px; color: #142f48; font-size: 27px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.product-main__prices { margin-bottom: 20px; padding: 18px; border-radius: 9px; background: #f0f7fc; }
.product-main__price { font-size: 32px; font-weight: 750; line-height: 1.2; color: #155d92; }
.product-main__prices .product-main-hrow__value > div { margin-top: 4px; color: #607383; font-size: 14px; }
.product-main-discount { margin: 18px 0; font-size: 14px; }
.product-main-hrow { gap: 8px; font-size: 15px; line-height: 1.5; }
.product-main-hrow__label { max-width: none; width: 110px; padding: 0; color: #607383; }
.product-main-hrow__value { min-width: 0; overflow-wrap: anywhere; }
.product-main__quantitys, .product-main__atb { margin-top: 22px; }
.product-main__quantitys input, .product-main__quantitybtn { height: 44px; border-color: var(--line); }
.product-main__quantitybtn { width: 44px; background: #f7fafc; color: #174c77; }
.product-main__atb .btn { min-height: 48px; font-size: 16px; }
.product-parameters__heading, .product-description__heading { margin-bottom: 20px; font-size: 23px; line-height: 1.25; }
.product-parameters__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; column-gap: 32px; }
.product-parameters__item { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 11px 0; border-bottom: 1px solid #edf2f5; font-size: 14px; line-height: 1.5; }
.product-parameters__pname { width: 46%; padding: 0; color: #607383; }
.product-parameters__pvalue { width: auto; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.product-parameters__pvalue a { color: var(--blue); }
.product-description__content { max-width: 850px; color: #40586a; line-height: 1.65; overflow-wrap: anywhere; }
.product-description__content table { display: block; max-width: 100%; overflow-x: auto; }
.product-description__content img, .product-description__content iframe { max-width: 100%; }

/* Formularze, logowanie i konto. Zachowane klasy stanów walidacji. */
.auth { min-height: 0; padding: 12px 0 44px; }
.auth__wrapper { width: min(480px, calc(100% - 40px)); max-width: none; padding: 0; }
.auth .brcr-section .wrapper { width: 100%; }
.auth-form { width: 100%; max-width: 480px; margin: 12px auto 40px; }
.auth-form .brcr-section { padding: 0 0 18px; }
.auth-form__window, .auth__page { padding: 26px; border: 1px solid #e1ebf3; border-radius: 12px; background: #fff; }
.auth-form__input { padding: 0; margin-bottom: 12px; }
.auth-form__window > .auth-form__input:last-child { margin-bottom: 0; }
.auth-form__forgot { margin-top: 3px; font-size: 14px; }
.auth-form__else { margin-top: 18px; color: #607383; font-size: 14px; line-height: 1.6; }
.auth-form__submit .btn { min-height: 46px; }
.auth-form__head { font-size: 23px; line-height: 1.3; }
.auth__page p:first-child { color: #607383; font-size: 15px; line-height: 1.6; }
.wk-input__label { margin-bottom: 7px; }
.wk-input__label-content { white-space: normal; font-size: 14px; line-height: 1.4; color: #29465e; }
.wk-text-field, .wk-select { min-height: 44px; border-color: var(--line); border-radius: 7px; background: #fff; }
.wk-text-field__tfield, .wk-select__sfield { min-width: 0; }
.wk-text-field__input { font-size: 16px; }
.wk-text-field--focused, .wk-select--focused { border-color: var(--blue); box-shadow: 0 0 0 3px #24609215; }
.wk-text-field--invalid, .wk-select--invalid { border-color: var(--danger); }
.wk-text-field--disabled, .wk-select--disabled { background: #f5f7f8; border-color: #e5edf2; }
.wk-textarea { border-color: var(--line); border-radius: 7px; background: #fff; }
.wk-textarea--focused { border-color: var(--blue); }
.wk-textarea--invalid { border-color: var(--danger); }
.wk-checkbox__label, .wk-radio__label { font-size: 14px; line-height: 1.5; }
.account { padding: 8px 0 40px; min-height: 0; }
.account-content { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 26px; }
.account-sidebar { width: auto; max-width: none; padding: 18px 12px; border: 1px solid #e1ebf3; border-radius: 12px; }
.account-sidebar__heading { padding: 0 10px 14px; font-size: 21px; }
.account-sidebar__tab { padding: 12px 10px; border-radius: 7px; color: #174c77; }
.account-sidebar__tab:hover { background: #f1f7fc; }
.account-sidebar__tab--active { background: #dceefe; }
.account-sidebar__logout { display: block; margin-top: 8px; padding: 12px 10px; border-top: 1px solid #e7edf2; color: #174c77; font-size: 15px; line-height: 22px; }
.account-sidebar__logout:hover { color: var(--blue-hover); }
.account-panel { width: 100%; min-width: 0; margin: 0; padding: 26px; border: 1px solid #e1ebf3; border-radius: 12px; background: #fff; }
.account-panel h2 { margin-bottom: 22px; font-size: 24px; }
.account-detiterator__row { gap: 8px; padding: 12px; border-bottom: 1px solid #edf2f5; background: #fff; font-size: 14px; line-height: 1.5; }
.account-detiterator__row:nth-child(even) { background: #f7fafc; }
.account-detiterator__name { padding: 0; color: #607383; }
.account-detiterator__value { padding: 0; width: auto; min-width: 0; flex: 1; font-weight: 600; overflow-wrap: anywhere; }
.account-detsh { gap: 12px; margin-bottom: 12px; }
.account-detsh__text { padding: 0; color: #142f48; font-size: 17px; font-weight: 700; line-height: 1.4; text-transform: none; }
.account-salert { gap: 14px; padding: 18px; border-radius: 9px; background: #eaf4fc; }
.account-salert__icon { width: 30px; padding: 0; }
.account-form--divided { gap: 24px; }
.account-form__block { flex: 1; min-width: 0; }
.mac-orders, .mac-order { padding-bottom: 40px; }
.account-panel > .mac-orders, .account-panel > .mac-order { padding: 0; }
.mac-orders__card, .mac-order__card { padding: 26px; border: 1px solid #e1ebf3; border-radius: 12px; }
.mac-orders-item { padding: 20px 0; border-color: #e5edf2; }
.mac-orders-item__title { font-weight: 700; }
.mac-orders-item__head, .mac-order-product__info { min-width: 0; overflow-wrap: anywhere; }
.mac-orders__empty svg { max-width: 250px; }
.mac-order__addrblock { padding: 14px; border-color: #e5edf2; border-radius: 8px; background: #f7fafc; }
.mac-order-product, .mac-order__summrow { padding-block: 12px; border-color: #e5edf2; }
.mac-order__summrow--total { color: #155d92; font-size: 20px; font-weight: 700; }

/* Koszyk i kolejne kroki zamówienia. */
.cart, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 26px; align-items: start; width: 100%; margin: 0; padding-bottom: 40px; min-height: 0; }
.cart-grid, .checkout__main { width: 100%; min-width: 0; }
.cart-grid { overflow: hidden; border: 1px solid #e1ebf3; border-radius: 12px; }
.cart-summary, .checkout-summary { position: sticky; top: 96px; width: 100%; margin: 0; padding: 22px; border: 1px solid #e1ebf3; border-radius: 12px; }
.cart-summary__head, .checkout-summary__head { width: auto; margin-bottom: 20px; font-size: 21px; line-height: 1.3; }
.cart-summary__element, .checkout-summary__element { align-items: baseline; gap: 16px; margin-bottom: 10px; font-size: 14px; }
.cart-summary__element > span:last-child, .checkout-summary__element > span:last-child { text-align: right; }
.cart-summary__total, .checkout-summary__total { align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid #e5edf2; }
.cart-summary__totalprice, .checkout-summary__totalprice { color: #155d92; font-size: 24px; white-space: nowrap; }
.cart-summary__cta, .checkout-summary__cta { width: 100%; max-width: none; margin-top: 20px; min-height: 46px; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 20px; border-color: #e5edf2; }
.cart-item__img { grid-column: 1; grid-row: 1 / span 2; width: 80px; height: 90px; margin: 0; }
.cart-item__name { grid-column: 2; width: auto; min-width: 0; margin: 0; text-align: left; overflow-wrap: anywhere; }
.cart-item__name h4 { color: #142f48; font-size: 15px; line-height: 1.35; }
.cart-item__quantity { grid-column: 2; grid-row: 2; min-width: 0; margin: 0; align-self: start; }
.cart-item__price { grid-column: 3; grid-row: 1; width: auto; margin: 0; align-items: flex-end; }
.cart-item__remove { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; }
.cart-item__mobileremove { grid-column: 3; grid-row: 2; width: auto; margin: 0; text-align: right; }
.cart-item-qupicker__button { width: 36px; height: 38px; background: #f7fafc; border-color: var(--line); }
.cart-item-qupicker__input { width: 48px; height: 38px; border-color: var(--line); }
.cart-item__validmsg { position: static; width: 100%; }
.cart-oper { gap: 18px; padding: 16px 20px; }
.cart-oper a { font-size: 12px; line-height: 1.5; }
.cart-disc { padding: 20px; border-color: #e5edf2; background: #f7fafc; }
.cart__empty { padding: 28px 22px; color: #607383; }
.cart-mobile-summary { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e1ebf3; box-shadow: none; z-index: 35; }
.checkout-page { padding: 8px 0 0; }
.checkout-page .brcr-section { padding-top: 0; }
.checkout-step { margin-bottom: 16px; border: 1px solid #e1ebf3; border-radius: 12px; }
.checkout-step__header { gap: 12px; padding: 20px; }
.checkout-step__icon { margin: 0; }
.checkout-step__name { font-size: 17px; font-weight: 700; }
.checkout-step__body { padding: 20px; }
.checkout__subheading { margin-bottom: 12px; color: #29465e; font-size: 15px; font-weight: 600; text-transform: none; }
.checkout__pmradio { padding: 13px; border: 1px solid #e5edf2; border-radius: 8px; }
.checkout-bablock { padding: 15px; border-color: #e5edf2; border-radius: 8px; background: #f7fafc; font-size: 14px; line-height: 1.6; }
.checkout__spacer { margin-block: 22px; background: #e5edf2; }

/* Informacje, stany płatności i błędy. */
.static-content { padding-bottom: 40px; }
.static-content__wrapper { width: 100%; margin: 0; padding: 28px; border: 1px solid #e1ebf3; border-radius: 12px; background: #fff; line-height: 1.65; }
.shop-status { margin-top: 12px; }
.thanks { align-items: center; gap: 40px; min-height: 300px; }
.thanks__left { flex: 1; min-width: 0; width: auto; padding: 0; }
.thanks__head { margin-bottom: 18px; font-size: 30px; line-height: 1.2; }
.thanks p { margin-bottom: 10px; color: #607383; }
.thanks__right { width: 36%; padding: 12px; }
.thanks__right img { max-width: 280px; max-height: 220px; margin: auto; object-fit: contain; }
.e404 { padding: 16px 0; }
.e404__img { max-width: 260px; max-height: 180px; }
.shop-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shop-info-grid h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #142f48; font-size: 22px; }
.shop-info-grid p { margin: 0; color: #607383; }
.shop-info-contact { margin-top: 26px; padding-top: 20px; border-top: 1px solid #e5edf2; color: #607383; }
.shop-info-contact a { color: var(--blue); font-weight: 700; white-space: nowrap; }
.wk-dialog { --dialog-border-radius: 12px; --dialog-shadow: 0 16px 48px #142f4826; }
.wk-dialog-window__title-text { white-space: normal; line-height: 1.3; }
.wk-dialog-window__content { border-color: #e5edf2; }
.product-atcdialog__footer { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; }

@media (max-width: 1120px) {
    .category__grid, .seres__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
    .account-content { grid-template-columns: 205px minmax(0, 1fr); gap: 20px; }
    .cart, .checkout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .product-main__grid { gap: 26px; }
}
@media (max-width: 980px) {
    .category__grid, .seres__grid, .account-content { grid-template-columns: minmax(0, 1fr); }
    .category-sidebar, .seres-sidebar { position: fixed; z-index: 99; width: min(350px, calc(100% - 24px)); height: 100%; height: 100dvh; padding: 22px; border-radius: 0 12px 12px 0; overscroll-behavior: contain; }
    .category-sidebar__smheading, .seres-sidebar__smheading { font-size: 22px; line-height: 1.3; }
    .category-sidebar__close, .seres-sidebar__close { width: 36px; height: 36px; padding: 8px; }
    .category-smbar, .seres-smbar { margin-bottom: 18px; }
    #shop-content .category-sidebar-open, #shop-content .seres-sidebar-open { min-height: 44px; padding-inline: 16px; border: 1px solid var(--line); background: #fff; color: var(--blue); }
    .product-main__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
    .product-main__name { font-size: 23px; }
    .cart, .checkout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .cart-summary, .checkout-summary { position: static; max-width: 480px; margin-left: auto; }
    .account-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 8px; background: #fff; }
    .account-sidebar__heading { margin: 0; padding: 0 4px; }
    .account-sidebar__menu { position: static; grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; width: 100%; max-width: none; max-height: none; padding: 4px; border-radius: 9px; background: #f3f6f8; box-shadow: none; }
    .account-sidebar__tab { justify-content: center; min-width: 0; min-height: 44px; padding: 10px 4px; border: 1px solid transparent; background: transparent; font-size: 14px; line-height: 20px; text-align: center; white-space: nowrap; }
    .account-sidebar__tab--active { border-color: #dce7ef; background: #fff; }
    .account-sidebar__logout { grid-column: 2; grid-row: 1; display: flex; align-items: center; min-height: 36px; margin: 0; padding: 6px 8px; border: 0; font-size: 13px; }
    .account-panel { margin: 0; }
}
@media (max-width: 650px) {
    .brcr-section { padding: 8px 0 18px; }
    .brcr-section__heading, .shop-page-heading { font-size: 25px; margin-bottom: 16px; }
    .brcr-section__links { gap: 4px 6px; font-size: 12px; }
    .brcr-section__item[aria-current] { max-width: 100%; }
    .category-pcontent__topbar, .seres-pcontent__topbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; }
    .category-pcontent__topbar-item, .seres-pcontent__topbar-item { width: 100%; }
    .category-pcontent__topbar-noi, .category-pcontent__topbar-nop, .seres-pcontent__topbar-noi, .seres-pcontent__topbar-nop { display: inline; margin: 0 10px 0 0; text-align: left; }
    .category .products-list .product-tile__image, .seres .products-list .product-tile__image { height: 90px; }
    .category .products-list .product-tile:last-child, .seres .products-list .product-tile:last-child { border-bottom: 0; }
    .product-card { padding: 18px; }
    .product-main__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .product-main__name { font-size: 23px; margin-bottom: 20px; }
    .product-main-photos__bph { padding-bottom: 76%; max-height: 300px; }
    .product-main-hrow { display: flex; }
    .product-main-hrow__label { width: 100px; max-width: 38%; margin: 0; }
    .product-main__prices { padding: 15px; }
    .product-main__price { font-size: 29px; }
    .product-parameters__grid { grid-template-columns: minmax(0, 1fr); }
    .product-parameters__heading, .product-description__heading { font-size: 21px; }
    .product-parameters__pname { width: 44%; }
    .product-description__content { font-size: 15px; }
    .auth__wrapper { width: calc(100% - 28px); }
    .auth-form { width: 100%; max-width: 480px !important; margin: 8px auto 28px; }
    .auth-form .brcr-section { padding: 0 0 16px; }
    .auth-form__window, .auth__page { padding: 20px 16px; }
    .auth-form__else span { display: block; }
    .account-panel { padding: 20px 16px; }
    .account-sidebar { padding: 12px 10px; }
    .account-sidebar__heading { font-size: 20px; }
    .account-form--divided { gap: 0; }
    .account-form__block { width: 100%; }
    .account-detiterator__row { padding: 10px 8px; font-size: 13px; }
    .account-detiterator__name { width: 43%; }
    .account-detsh__text { font-size: 16px; }
    .cart, .checkout { width: 100%; margin: 0; padding-bottom: 28px; }
    .cart-summary, .checkout-summary { max-width: none; padding: 20px; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 12px; padding: 16px; }
    .cart-item__img { width: 64px; height: 80px; }
    .cart-item__name { grid-column: 2; grid-row: 1; font-size: 14px; }
    .cart-item__price { grid-column: 2; grid-row: 2; align-items: flex-start; }
    .cart-item__quantity { grid-column: 2; grid-row: 3; }
    .cart-item__mobileremove { grid-column: 2; grid-row: 4; justify-self: start; }
    .cart-oper { padding: 16px; flex-wrap: wrap; }
    .cart-disc { padding: 16px; }
    .checkout-step__header, .checkout-step__body { padding: 16px; }
    .checkout-step__header { gap: 9px; }
    .checkout-step__name { font-size: 16px; }
    .checkout-step__editbtn { margin-left: 0; }
    .checkout-step__editbtn svg { display: none; }
    .static-content__wrapper { padding: 20px; }
    .shop-info-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .shop-info-grid h2 { font-size: 20px; }
    .thanks { display: flex; flex-direction: column; gap: 24px; min-height: 0; padding-block: 12px; }
    .thanks__left { width: 100%; text-align: left; }
    .thanks__head { font-size: 25px; }
    .thanks__right { width: 100%; padding: 0; }
    .thanks__right img { max-width: 190px; max-height: 150px; }
    .mac-orders__card, .mac-order__card { padding: 20px 16px; }
    .mac-orders-item { text-align: left; }
    .mac-orders-item__cta .btn { width: 100%; }
    .product-atcdialog__footer { align-items: stretch; flex-direction: column-reverse; }
    .product-atcdialog__footer .btn { width: 100%; margin: 0; }
}
@media (max-width: 359px) {
    .category .products-list, .seres .products-list { grid-template-columns: minmax(0, 1fr); }
    .cart-summary__totalprice, .checkout-summary__totalprice { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    #shop-content *, #shop-content *::before, #shop-content *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; }
}

@media (max-width: 980px) {
    .category-sidebar:not(.category-sidebar--active), .seres-sidebar:not(.seres-sidebar--active) { visibility: hidden; }
}

.mac-order__mcol { min-width: 0; }
.mac-order__drow { overflow-wrap: anywhere; }
.saeditor__address, .saeditor-addbtn { padding: 16px; border: 1px solid #e1ebf3; border-radius: 9px; background: #f7fafc; }
.saeditor__address { padding-bottom: 48px; font-size: 14px; line-height: 1.5; }
.saeditor__adrcontent { min-width: 0; overflow-wrap: anywhere; }
.saeditor__actions { gap: 8px; padding: 8px 12px; }
.saeditor__editbtn, .saeditor__delbtn, .saeditor__selectbtn { padding: 8px 4px; font-size: 12px; text-transform: none; }
.saeditor__loadercol { width: 100%; }

.adac-dropdown { visibility: hidden; max-width: calc(100vw - 28px); border-color: var(--line); border-radius: 8px; }
.adac-dropdown--visible { visibility: visible; }

.auth-form__grid > .auth-form__input { padding: 4px; margin-bottom: 8px; }

/* Ścieżka bezpośrednio pod nazwą kategorii lub produktu. */
.category, .seres, .product { padding-top: 8px; }
.category-main > .shop-page-heading, .seres-main > .shop-page-heading, .product-main__name { margin-bottom: 8px; }
.shop-location.brcr-section { padding: 0 0 18px; }

.shop-location .brcr-section__item[aria-current='page'] { max-width: none; white-space: normal; overflow: visible; color: #29485f; font-weight: 600; overflow-wrap: anywhere; }

/* Filtry i sortowanie tworzą wspólny pasek listy na mniejszych ekranach. */
@media (max-width: 980px) {
    #shop-content .shop-catalog-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 10px; padding: 12px; }
    .shop-catalog-controls .category-smbar, .shop-catalog-controls .seres-smbar { display: block; min-width: 0; margin: 0; }
    #shop-content .shop-catalog-controls .category-sidebar-open, #shop-content .shop-catalog-controls .seres-sidebar-open { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 44px; padding: 8px; border-color: #d8e3eb; background: #f2f7fb; font-size: 13px; line-height: 1.2; }
    .shop-catalog-controls .category-sidebar-open img, .shop-catalog-controls .seres-sidebar-open img { width: 16px; height: 16px; flex-shrink: 0; margin: 0; }
    .shop-catalog-controls .shop-catalog-sort { display: block; min-width: 0; width: 100%; }
    .shop-catalog-sort > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    #shop-content .shop-catalog-controls #products-sort { display: block; width: 100%; min-height: 44px; padding: 8px; font-size: 13px; }
    .shop-catalog-controls .shop-catalog-summary { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; width: 100%; }
    .shop-catalog-summary .category-pcontent__topbar-noi, .shop-catalog-summary .category-pcontent__topbar-nop, .shop-catalog-summary .seres-pcontent__topbar-noi, .shop-catalog-summary .seres-pcontent__topbar-nop { margin: 0; text-align: left; }
}
