/** Your theme modifications here **/
.box-success {
    background:#e8f0fe;/*#e6f2ff*/
}

/* To mantain the navbar at the top once it is affixed */
.affix {
    top: 0;
    width: 100%;
    z-index: 9999;
}

/* Padding for a smoth affix */
.affix + .container {
    padding-top: 72px;
}

.info {
    font-size:11px;
}

.nowrap {
    white-space: nowrap;
}

.nazwa_towaru {
    color: #000000;

}

.producent {
    font-size:11px;
}

.cena_netto {
    font-weight: bold;
    font-size:20px;
}

.cena_netto_skreslona {
    font-weight: normal;
    font-size:15px;
    text-decoration: line-through;
    color: #8aa4af;
}

.navbar #search {
    border-top: 0;
    padding: 15px 0 15px 0;
}

img {
    margin:auto;
    /*width:100%;*/
}

.label {
    font-size:12px;
    font-weight: normal;
}

.modal-dialog {
    z-index: 999999;
}
#content .product .text h3 {
    font-size:12px;
}
#content #mainImage {
    background: #fff;
    padding: 10px;
}

#content .info-bar {
    line-height: 16px;
}

@media (min-width: 1200px) {
    .header {
        grid-template-columns: calc(100% / 2 - 1350px / 2) min-content 1fr max-content calc(100% / 2 - 1350px / 2);
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header {
        grid-template-columns: calc(100% / 2 - 1110px / 2) min-content 1fr max-content calc(100% / 2 - 1110px / 2);
    }
}

.header__search {
    min-width: 0;
    width: 100%;
    align-self: center;
}

.header__search > .search,
.header__search .typeahead__container,
.header__search .typeahead__field,
.header__search .typeahead__query {
    width: 100%;
}

.header__search .search__body {
    max-width: none;
    width: 100%;
}

/* Spinner ładowania — na końcu pola input, przed ikoną lupy */
.header__search .typeahead__container.loading .typeahead__query:before,
.header__search .typeahead__container.loading .typeahead__query:after {
    right: 44px;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -.55rem;
    z-index: 4;
}

.typeahead__container {
    font: inherit;
    position: relative;
    width: 100%;
}

.typeahead__container.result .typeahead__result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 4px;
    z-index: 9999;
}

.typeahead__list {
    border: 1px solid #dde3ea;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(30, 45, 62, 0.14);
    padding: 4px 0;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

.typeahead__list .typeahead__group > a {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a949e;
    padding: 10px 14px 4px;
    pointer-events: none;
    background: transparent;
}

.typeahead__list .typeahead__item {
    padding: 0 !important;
}

.typeahead__list .typeahead__item > a {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none;
    color: inherit;
}

.typeahead__list .typeahead__item:not([disabled]) > a:hover,
.typeahead__list .typeahead__item:not([disabled]).active > a {
    background-color: transparent !important;
    color: inherit !important;
}

.ta-hit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: background-color 0.15s ease;
}

.typeahead__item:not([disabled]):hover .ta-hit,
.typeahead__item.active .ta-hit {
    background-color: #f4f7fa;
}

.ta-hit__body {
    flex: 1;
    min-width: 0;
}

.ta-hit__name {
    font-size: 13px;
    line-height: 1.35;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ta-hit__meta {
    font-size: 11px;
    color: #9aa5b1;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ta-hit__meta i,
.ta-hit__icon {
    margin-right: 5px;
    font-size: 10px;
    color: #7a8c9e;
}

.ta-hit--producer .ta-hit__name {
    font-weight: 500;
}

.ta-hit__price {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    white-space: nowrap;
}

.ta-hit__price--promo {
    background: #d9534f;
    color: #fff;
}

.ta-hit__price--sale {
    background: #00a65a;
    color: #fff;
}

.ta-hit__price--default {
    background: #eef2f6;
    color: #3c4d5c;
}

.ta-hit__badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 500;
    color: #6c7a89;
    background: #eef2f6;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ta-empty {
    padding: 18px 16px;
    text-align: center;
    color: #8a949e;
    font-size: 13px;
    line-height: 1.5;
}

.ta-empty i {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
    opacity: 0.5;
}

.product--layout--full .product__prices-stock {
    align-items: flex-start;
    padding-bottom: 14px;
}

.product--layout--full .product__prices {
    display: block;
    padding-bottom: 0;
}

.product--layout--full .product__price--current {
    line-height: 1.1;
}

.product--layout--full .product__price--current small {
    font-size: 0.55em;
    font-weight: 400;
}

.product--layout--full .product__price--brutto {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.3;
}

.product--layout--full .product__info-card .product__form {
    background: #f9f9f9;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    padding: 14px 20px 16px;
    margin: 0;
}

.product--layout--full .product__info-card .product__actions--cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 18px;
    margin: 0;
    background: #fff;
    border: none;
    position: relative;
    min-height: 84px;
}

.product--layout--full .product__info-card .product__actions--cart--loading {
    pointer-events: none;
    user-select: none;
}

.product--layout--full .product__info-card .product__actions--cart--loading .product__actions-cart-loader {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.product--layout--full .product__info-card .product__actions--cart > .product__actions-item--quantity {
    width: 100px;
    flex: 0 0 100px;
    margin-right: 0;
}

.product--layout--full .product__info-card .product__actions--cart > .product__actions-item--addtocart {
    flex: 1 1 calc(100% - 108px);
    width: calc(100% - 108px);
    min-width: 0;
}

.product--layout--full .product__info-card .product__actions--cart > .info_kosz,
.product--layout--full .product__info-card .product__actions--cart > .product__cart-status {
    flex: 0 0 100%;
    width: 100%;
}

.product--layout--full .product__info-card .product__actions--cart > .product__cart-status {
    margin-top: 4px;
}

.product--layout--full .product__info-card .product__cart-status-badge {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
}

/* Przycisk „do koszyka” – blokada i spinner */
.do_koszyka.btn-loading,
.do_koszyka_tp.btn-loading {
    pointer-events: none;
    cursor: default;
}

.btn-warning.btn-loading,
.btn-warning.btn-loading:hover,
.btn-warning.btn-loading:focus,
.btn-warning.btn-loading:disabled {
    color: transparent;
    opacity: 1;
}

.btn-warning.btn-loading:after {
    border-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.85);
}

.product-card__footer--cart-loading {
    pointer-events: none;
    user-select: none;
}

.product-card__footer--cart-loading .ilosc,
.product-card__footer--cart-loading .ilosc_plus,
.product-card__footer--cart-loading .ilosc_minus,
.product-card__footer--cart-loading .input-number__sub,
.product-card__footer--cart-loading .input-number__add {
    opacity: 0.55;
}

.ribbon .theribbon  {
    width: 100px;
    background-color: #d9534f;
}

.ribbon .theribbon:after {
    border-color: #d9534f #d9534f transparent transparent;
}

.ribbon.wyprzedaz_ribbon {
    top: 0;
}

.ribbon.wyprzedaz_ribbon .theribbon  {
    width: 150px;
    background-color: #00a65a;
    font-size:15px;

}

.ribbon.wyprzedaz_ribbon .theribbon:after {
    border-color: #00a65a #00a65a transparent transparent;
}


.promocja {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: #fff;
    font-size:12px;
    line-height: 18px;
    padding: 10px;
}

.wyprzedaz {
    background-color: #00a65a;
    border-color: #3C510C;
    color: #d1f1a9;
    font-size:12px;
    line-height: 18px;
    padding: 5px;
}


.srednia_ilosc {
    background-color: #51A351;
    border-color: #3C510C;
    color: #fff;
    font-size:14px;
    line-height: 18px;
    padding: 10px;
}

.nav > li > a {
    padding: 10px 10px;
}

.owl-carousel .owl-wrapper-outer {
    background-color: #fff;
}

.site__body {
   margin-top:160px;
}

@media (max-width: 1199.98px) {
   .site__body {
      margin-top:0;
   }

   .block-header__breadcrumb {
      padding-bottom:12px;
   }

   .block-header__title {
      padding-top:8px;
      padding-bottom:12px;
   }

   .block-header__breadcrumb + .block-header__title {
      margin-top:0;
   }
}

.departments__megamenu {
    max-height: 90vh;
    overflow-y: auto;
}

.kosz-container {
    position: relative;
    min-height: 120px;
}

.kosz-container__loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s, visibility 0s .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kosz-container__loader:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    opacity: .85;
}

.kosz-container__loader:after {
    content: '';
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.45);
    animation: loader-animation .7s linear infinite;
}

.kosz-container__loader-text {
    position: absolute;
    z-index: 1;
    top: calc(50% + 40px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.kosz-container--loading {
    pointer-events: none;
    user-select: none;
}

.kosz-container--loading .kosz-container__loader {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* Koszyk — dostępność towarów */
.cart-availability-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding: 14px 16px;
    border-radius: 0;
    border: 1px solid #f0d9a8;
    background: #fff8e8;
    color: #6b4f1d;
    font-size: 14px;
    line-height: 1.5;
}

.cart-availability-alert__icon {
    color: #d39e00;
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.cart-availability-alert__time {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8a7348;
}

.cart-table__row--partial {
    background: #fffdf5;
    box-shadow: inset 3px 0 0 #f0ad4e;
}

.cart-table__row--unavailable {
    background: #fff8f8;
    box-shadow: inset 3px 0 0 #dc3545;
}

.cart-table__column--image .image--type--product .image__placeholder i {
    font-size: 1.35rem;
}

.cart-table__column--image .image--type--product .image__placeholder-text {
    font-size: 0.6rem;
}

.cart-table__sku {
    font-size: 12px;
    color: #8aa4af;
    margin: 2px 0 6px;
}

.cart-table__uwagi {
    margin-top: 8px;
    max-width: 320px;
    font-size: 12px;
}

.cart-table__availability {
    min-width: 140px;
}

.cart-table__availability-badge {
    margin-bottom: 6px;
}

.cart-table__stan-info {
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
    max-width: 220px;
}

.cart-table__qty-hint {
    font-size: 11px;
    color: #d39e00;
    margin-top: 4px;
    text-align: center;
}

.cart__totals-stan {
    font-size: 13px;
}

.cart__totals--sticky {
    position: relative;
}

@media (max-width: 1199.98px) {
    .cart__totals--sticky {
        position: sticky;
        bottom: 0;
        z-index: 15;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .cart__totals--sticky .card {
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }

    .cart-table__column--availability {
        min-width: 0;
    }

    .cart-table__uwagi {
        max-width: 100%;
    }
}

.cart-empty {
    display: flex;
    justify-content: center;
    padding: 2.5rem 0 3.5rem;
}

.cart-empty__card {
    width: 100%;
    max-width: 520px;
    text-align: center;
    padding: 2.75rem 2rem 2.5rem;
    background: linear-gradient(160deg, #fff 0%, #faf6f8 55%, #f5eef2 100%);
    border-radius: 16px;
    border: 1px solid rgba(166, 58, 112, 0.1);
    box-shadow: 0 8px 32px rgba(166, 58, 112, 0.08);
}

.cart-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 1.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a63a70 0%, #8b2f5c 100%);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 28px rgba(166, 58, 112, 0.28);
}

.cart-empty__title {
    margin: 0 0 0.65rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.3;
}

.cart-empty__text {
    margin: 0 auto 1.75rem;
    max-width: 380px;
    font-size: 15px;
    line-height: 1.55;
    color: #6c757d;
}

.cart-empty__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.cart-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 220px;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(166, 58, 112, 0.22);
    transition: transform .15s, box-shadow .15s;
}

.cart-empty__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(166, 58, 112, 0.3);
}

.cart-empty__link {
    font-size: 14px;
    font-weight: 500;
    color: #a63a70;
    text-decoration: none;
    transition: color .15s;
}

.cart-empty__link:hover {
    color: #8b2f5c;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .cart-empty {
        padding: 1.5rem 0 2.5rem;
    }

    .cart-empty__card {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 12px;
    }

    .cart-empty__icon {
        width: 72px;
        height: 72px;
        font-size: 1.65rem;
    }

    .cart-empty__title {
        font-size: 1.25rem;
    }
}

.account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem 2.25rem;
    background: linear-gradient(160deg, #fff 0%, #faf6f8 55%, #f5eef2 100%);
    border-radius: 12px;
    border: 1px solid rgba(166, 58, 112, 0.1);
}

.account-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a63a70 0%, #8b2f5c 100%);
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 8px 22px rgba(166, 58, 112, 0.24);
}

.account-empty__icon--success {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    box-shadow: 0 8px 22px rgba(67, 160, 71, 0.24);
}

.account-empty__title {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.35;
}

.account-empty__text {
    margin: 0 auto 1.35rem;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.55;
    color: #6c757d;
}

.account-empty__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.account-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 240px;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(166, 58, 112, 0.2);
    transition: transform .15s, box-shadow .15s;
}

.account-empty__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(166, 58, 112, 0.28);
}

.account-empty__link {
    font-size: 14px;
    font-weight: 500;
    color: #a63a70;
    text-decoration: none;
    transition: color .15s;
}

.account-empty__link:hover {
    color: #8b2f5c;
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .account-empty {
        padding: 1.5rem 0.75rem 1.75rem;
    }

    .account-empty__icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .account-empty__title {
        font-size: 1.1rem;
    }

    .account-empty__btn {
        min-width: 0;
        width: 100%;
    }
}

/* --- Panel klienta / Moje konto --- */

.account-panel__main {
    position: relative;
    min-height: 200px;
}

.account-panel__body {
    animation: account-fade-in .35s ease-out;
}

@keyframes account-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.account-panel__loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s, visibility 0s .2s;
    pointer-events: none;
    border-radius: 4px;
}

.account-panel__loader:before {
    position: absolute;
    content: '';
    inset: 0;
    background: rgba(250, 250, 250, 0.9);
    border-radius: 4px;
}

.account-panel__loader-panel {
    position: sticky;
    top: max(22vh, 160px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.account-panel__loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(166, 58, 112, 0.15);
    border-top-color: #a63a70;
    animation: loader-animation .7s linear infinite;
}

.account-panel__loader-text {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
}

.account-panel--loading {
    pointer-events: none;
    user-select: none;
}

.account-panel--loading .account-panel__loader {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
}

.account-panel--loading .account-panel__body {
    opacity: .35;
}

/* --- Sklep / filtry --- */

.sklep-container {
    position: relative;
}

.sklep-container__loader {
    position: absolute;
    inset: 0;
    z-index: 30;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s, visibility 0s .15s;
    pointer-events: none;
}

.sklep-container__loader:before {
    position: absolute;
    content: '';
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
}

.sklep-container__loader-panel {
    position: sticky;
    top: max(22vh, 160px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.sklep-container__loader-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(166, 58, 112, 0.15);
    border-top-color: #a63a70;
    animation: loader-animation .7s linear infinite;
}

.sklep-container__loader-text {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.sklep-container--loading {
    pointer-events: none;
    user-select: none;
}

.sklep-container--loading .sklep-container__loader {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
    pointer-events: auto;
}

/* Sidebar nawigacji konta */
.account-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    position: sticky;
    top: 180px;
}

.account-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(135deg, #a63a70 0%, #8b2f5c 100%);
    color: #fff;
}

.account-sidebar__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.account-sidebar__info {
    min-width: 0;
    flex: 1;
}

.account-sidebar__greeting {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.account-sidebar__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-sidebar__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.account-sidebar__section-title {
    margin: 0;
    padding: 1rem 1.25rem 0.5rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aa0a6;
}

.account-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
}

.account-sidebar__item {
    margin-bottom: 2px;
}

.account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.account-sidebar__link:hover {
    background: #f5f0f3;
    color: #a63a70;
    text-decoration: none;
}

.account-sidebar__item--active .account-sidebar__link {
    background: #f9eef3;
    color: #a63a70;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #a63a70;
}

.account-sidebar__icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: 0.85;
}

.account-sidebar__text {
    font-size: 14px;
    line-height: 1.3;
}

.account-sidebar__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0.75rem 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
}

.account-sidebar__quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.account-sidebar__quick-link:hover {
    background: #f0e8ed;
    color: #a63a70;
    text-decoration: none;
}

.account-sidebar__quick-link i {
    font-size: 16px;
}

.account-sidebar__footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #eee;
}

.account-sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    color: #dc3545;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s;
}

.account-sidebar__logout:hover {
    background: #fff5f5;
    color: #c82333;
    text-decoration: none;
}

/* Dashboard */
.account-dashboard__header {
    margin-bottom: 1.5rem;
}

.account-dashboard__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #212529;
}

.account-dashboard__subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 15px;
}

.account-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.account-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.account-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.account-stat-card__icon--discount { background: #e8f5e9; color: #2e7d32; }
.account-stat-card__icon--price { background: #e3f2fd; color: #1565c0; }
.account-stat-card__icon--branch { background: #fff3e0; color: #e65100; }

.account-stat-card__label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
}

.account-stat-card__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.account-stat-card__value--sm {
    font-size: 0.95rem;
    font-weight: 600;
}

.account-dashboard__actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.account-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.25rem 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    color: #495057;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: transform .15s, box-shadow .15s, color .15s;
}

.account-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(166, 58, 112, 0.18);
    color: #a63a70;
    text-decoration: none;
}

.account-action-card i {
    font-size: 22px;
    color: #a63a70;
}

.account-card {
    margin-bottom: 1.25rem;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

.account-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-card__link {
    font-size: 13px;
    font-weight: 500;
}

.account-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.account-details__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-details__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa0a6;
}

.account-details__value {
    font-size: 15px;
    color: #212529;
}

.account-table th {
    font-weight: 600;
    font-size: 13px;
}

/* Wskaźnik Moje konto w nagłówku */
.indicator--account .indicator__value {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.indicator--account .indicator__button:hover .indicator__value {
    color: #a63a70;
}

/* Wykresy dashboardu */
.account-dashboard__insights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.account-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #f3eef1;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
}

.account-insight i {
    color: #a63a70;
    margin-top: 2px;
}

.account-insight--info {
    background: #e8f4fd;
}

.account-insight--info i {
    color: #1565c0;
}

.account-insight--warn {
    background: #fff4e5;
}

.account-insight--warn i {
    color: #e65100;
}

.account-charts {
    margin-bottom: 1.5rem;
}

.account-charts__header {
    margin-bottom: 1rem;
}

.account-charts__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.account-charts__subtitle {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.account-charts__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-charts__row {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.account-charts__row--hero {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
}

.account-charts__row--hero.account-charts__row--single-col {
    grid-template-columns: 1fr;
}

.account-charts__row--single {
    grid-template-columns: 1fr;
}

.account-chart-card {
    min-width: 0;
}

.account-chart-card__body {
    position: relative;
    height: 240px;
    padding: 0.75rem 1rem 1rem;
}

.account-chart-card__body--hero {
    height: 300px;
}

.account-chart-card__body--donut {
    height: 280px;
}

.account-chart-card__body--hero.account-chart-card__body--donut {
    height: 300px;
}

.account-chart-card__body--tall {
    height: 320px;
}

.account-chart-card__empty-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    background: #fafafa;
}

.account-chart-card__empty-msg i {
    font-size: 2rem;
    color: #26a69a;
}

.account-charts__empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.account-charts__empty i {
    font-size: 2rem;
    color: #c4c9cc;
    margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
    .account-charts__row--hero {
        grid-template-columns: 1fr;
    }

    .account-chart-card__body--hero,
    .account-chart-card__body--hero.account-chart-card__body--donut {
        height: 260px;
    }

    .account-sidebar {
        position: static;
        margin-bottom: 1rem;
    }

    .account-sidebar__nav {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .account-sidebar__item {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .account-sidebar__link {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        font-size: 12px;
        text-align: center;
        min-width: 90px;
    }

    .account-sidebar__item--active .account-sidebar__link {
        box-shadow: inset 0 -3px 0 #a63a70;
    }

    .account-sidebar__section-title,
    .account-sidebar__quick,
    .account-sidebar__footer {
        display: none;
    }

    .account-dashboard__stats {
        grid-template-columns: 1fr;
    }

    .account-dashboard__actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-details {
        grid-template-columns: 1fr;
    }
}

/* Szczegóły dokumentu / faktury */
.account-doc__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, border-color .15s, transform .15s;
}

.account-doc__back:hover {
    color: #a63a70;
    border-color: rgba(166, 58, 112, 0.25);
    text-decoration: none;
    transform: translateX(-2px);
}

.account-doc__pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.account-doc__hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, #faf6f8 100%);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(166, 58, 112, 0.08);
}

.account-doc__hero-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-left: auto;
    align-self: flex-start;
}

.account-doc__hero-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a63a70 0%, #8b2f5c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.account-doc__hero-body {
    min-width: 0;
    flex: 1;
}

.account-doc__type {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a63a70;
    background: rgba(166, 58, 112, 0.1);
    border-radius: 999px;
}

.account-doc__number {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.25;
}

.account-doc__intro {
    margin: 0;
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
}

.account-doc__summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.account-doc__summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.account-doc__summary-item--highlight {
    background: linear-gradient(135deg, #f9eef3 0%, #fff 100%);
    box-shadow: 0 2px 10px rgba(166, 58, 112, 0.12);
}

.account-doc__summary-item--highlight .account-doc__summary-value {
    color: #a63a70;
}

.account-doc__summary-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9aa0a6;
}

.account-doc__summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
}

.account-doc__section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.account-doc__positions-count {
    font-size: 13px;
    color: #6c757d;
}

.account-doc__product-link {
    color: #212529;
    font-weight: 500;
    text-decoration: none;
}

.account-doc__product-link:hover {
    color: #a63a70;
    text-decoration: underline;
}

.account-doc__tfoot th {
    font-weight: 500;
    color: #495057;
    border-top: 1px solid #eee;
}

.account-doc__tfoot-total th {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    background: #f8f9fa;
}

.account-doc__help {
    margin: 1.25rem 0 0;
    font-size: 14px;
}

.account-doc__hero-icon--order {
    background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%);
}

.account-doc__type--status {
    color: #e65100;
    background: rgba(230, 81, 0, 0.12);
}

.account-doc__notes {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffb300;
}

.account-doc__notes-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f57c00;
    margin-bottom: 6px;
}

.account-doc__notes-text {
    margin: 0;
    font-size: 15px;
    color: #495057;
    line-height: 1.5;
    white-space: pre-wrap;
}

@media (max-width: 767.98px) {
    .account-doc__hero {
        flex-wrap: wrap;
    }

    .account-doc__hero-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .account-doc__back,
    .account-doc__pdf {
        flex: 1 1 auto;
        justify-content: center;
    }

    .account-doc__summary {
        grid-template-columns: 1fr;
    }
}

.image--type--product .image__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f3f4f6;
    color: #9ca3af;
    text-align: center;
    padding: 0.75rem;
    user-select: none;
}

.image--type--product .image__placeholder i {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.9;
}

.image--type--product .image__placeholder-text {
    font-size: 0.6875rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.image--type--product .image__placeholder--fallback {
    display: none;
}

/* Przełącznik branż WET / FAR */
.branza-switcher {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}
.branza-switcher__btn {
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.branza-switcher__btn:hover {
    opacity: 1;
}
.branza-switcher__btn--active {
    opacity: 1;
    font-weight: 600;
}
.branza-switcher__btn--wet.branza-switcher__btn--active {
    box-shadow: inset 0 -3px 0 #3d8b40;
}
.branza-switcher__btn--far.branza-switcher__btn--active {
    box-shadow: inset 0 -3px 0 #1a79ff;
}

.main-menu__link--active {
    font-weight: 700;
}
body.branza-wet .main-menu__link--active {
    color: #3d8b40;
}
body.branza-far .main-menu__link--active {
    color: #1a79ff;
}

/* Topbar — kolory branż (variant-five + nadpisanie #333 / białego tła) */
body.branza-wet .header__topbar-classic-bg,
body.branza-wet .topbar--classic {
    background: #006847;
}
body.branza-far .header__topbar-classic-bg,
body.branza-far .topbar--classic {
    background: #1a79ff;
}
body.branza-wet .topbar--classic .topbar__item-text,
body.branza-wet .topbar--classic .topbar__button-title,
body.branza-far .topbar--classic .topbar__item-text,
body.branza-far .topbar--classic .topbar__button-title {
    color: #fff;
}
body.branza-wet .topbar--classic .topbar__button-label,
body.branza-wet .topbar--classic .topbar__link,
body.branza-far .topbar--classic .topbar__button-label,
body.branza-far .topbar--classic .topbar__link {
    color: rgba(255, 255, 255, 0.75);
}
body.branza-wet .topbar--classic .topbar__button:hover,
body.branza-far .topbar--classic .topbar__button:hover {
    background: rgba(255, 255, 255, 0.12);
}
