/* ============================================================
   KOLORY MARKI: primary #006DB5 / secondary #FAA828
   ============================================================ */

:root,
[data-bs-theme=light] {
    --bs-primary:              #006DB5;
    --bs-primary-rgb:          0, 109, 181;
    --bs-primary-text-emphasis:#006DB5;
    --bs-link-color:           #006DB5;
    --bs-link-color-rgb:       0, 109, 181;
    --bs-link-hover-color:     #005090;
    --bs-link-hover-color-rgb: 0, 80, 144;

    --bs-secondary:            #FAA828;
    --bs-secondary-rgb:        250, 168, 40;
}

.btn-primary {
    --bs-btn-color:                #fff;
    --bs-btn-bg:                   #006DB5;
    --bs-btn-border-color:         #006DB5;
    --bs-btn-hover-color:          #fff;
    --bs-btn-hover-bg:             #005a96;
    --bs-btn-hover-border-color:   #005090;
    --bs-btn-active-bg:            #004e82;
    --bs-btn-active-border-color:  #004070;
    --bs-btn-disabled-bg:          #006DB5;
    --bs-btn-disabled-border-color:#006DB5;
}

.btn-outline-primary {
    --bs-btn-color:              #006DB5;
    --bs-btn-border-color:       #006DB5;
    --bs-btn-hover-color:        #fff;
    --bs-btn-hover-bg:           #006DB5;
    --bs-btn-hover-border-color: #006DB5;
    --bs-btn-active-color:       #fff;
    --bs-btn-active-bg:          #006DB5;
}

.btn-secondary {
    --bs-btn-color:                #fff;
    --bs-btn-bg:                   #FAA828;
    --bs-btn-border-color:         #FAA828;
    --bs-btn-hover-color:          #fff;
    --bs-btn-hover-bg:             #e09520;
    --bs-btn-hover-border-color:   #d08810;
    --bs-btn-disabled-bg:          #FAA828;
    --bs-btn-disabled-border-color:#FAA828;
}

/* Badges / labels */
.badge.bg-primary,
.text-bg-primary {
    background-color: #006DB5 !important;
}

/* Links ogólne */
a {
    color: #006DB5;
}
a:hover {
    color: #005090;
}


/* ============================================================
   GÓRNY PASEK INFORMACYJNY (secondary #FAA828, czarny tekst)
   ============================================================ */

#info-top-bar {
    background-color: #FAA828;
    color: #000;
    font-size: 11px;
    line-height: 1.4;
    padding: 5px 0;
    width: 100%;
    z-index: 10000;
    position: relative;
}

.info-top-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.info-top-bar-left,
.info-top-bar-right {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .info-top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
    }
    .info-top-bar-left,
    .info-top-bar-right {
        white-space: normal;
    }
}


/* ============================================================
   DRUGI PASEK INFORMACYJNY (jasnoszary, czarny tekst)
   ============================================================ */

#info-second-bar {
    background-color: #f5f5f5;
    color: #212529;
    font-size: 11px;
    line-height: 1.4;
    padding: 4px 0;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 9999;
}

.info-second-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.info-second-bar-left,
.info-second-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.info-second-bar-sep {
    color: #bbb;
}

.info-second-bar-item {
    white-space: nowrap;
}

@media (max-width: 575px) {
    .info-second-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .info-second-bar-left,
    .info-second-bar-right {
        white-space: normal;
    }
}


/* ============================================================
   SLIDER W KONTENERZE (max-width zamiast full-width)
   ============================================================ */

body#index section.ps-imageslider {
    max-width: 1320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border-radius: 4px;
}

body#index section.ps-imageslider img {
    width: 100%;
    object-fit: cover;
}


/* ============================================================
   HEADER — odstępy menu głównego i logo
   ============================================================ */

.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu:is(.ps-mainmenu--desktop) .ps-mainmenu__tree > li .ps-mainmenu__tree-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.header-bottom .navbar-brand .logo {
    max-height: 5rem;
}


/* ============================================================
   MENU — kolory specjalnych pozycji
   ============================================================ */

/* OUTLET — pomarańczowy (#FAA828) */
.ps-mainmenu__tree-item[data-id="category-10"] > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link {
    color: #FAA828;
    font-weight: 600;
}
.ps-mainmenu__tree-item[data-id="category-10"] > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link:hover {
    color: #e09520;
}

/* WYPOŻYCZALNIA LAKTATORÓW — niebieski (#006DB5) */
.ps-mainmenu__tree-item[data-id="lnk-wypozyczalnia-laktatorow"] > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link {
    color: #006DB5;
    font-weight: 600;
}
.ps-mainmenu__tree-item[data-id="lnk-wypozyczalnia-laktatorow"] > .ps-mainmenu__tree-item-wrapper > .ps-mainmenu__tree-link:hover {
    color: #005090;
}


/* ============================================================
   MEGA MENU — flat jednopozioмowy dropdown
   ============================================================ */

.ps-mainmenu:is(.ps-mainmenu--desktop) .submenu.megamenu {
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: var(--bs-box-shadow-md);
}

.megamenu__inner {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.megamenu__flat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem 0;
}

.megamenu__flat-item {
    flex: 0 0 auto;
    width: 25%;
}

@media (max-width: 1399px) {
    .megamenu__flat-item { width: 33.333%; }
}

@media (max-width: 991px) {
    .megamenu__flat-item { width: 50%; }
}

/* Grouped multi-column megamenu: one link per row, full column width */
.megamenu__column .megamenu__flat-item {
    width: 100%;
}

.megamenu__flat-link {
    display: block;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: var(--bs-border-radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.megamenu__flat-link:hover {
    color: var(--bs-link-hover-color);
    background-color: var(--bs-tertiary-bg);
}


/* ============================================================
   ADMIN PANEL — ukryj zbędny blok tips
   ============================================================ */

.cdc-tips-and-update-container {
    display: none !important;
}

/* =============================================================
   CENA PROMOCYJNA — czerwona gdy jest rabat
   ============================================================= */

/* Podstrona produktu */
.product__discount-price ~ .product__prices-inline .product__price {
    color: #d9000d !important;
}

/* Listing produktów */
.product-miniature .product__discount-price ~ .product__prices-inline .product__price,
.products .product__discount-price ~ .product__prices-inline .product__price {
    color: #d9000d !important;
}

/* Listing — miniatura: cena po rabacie jest przed divem discount, więc :has() */
.product-miniature__prices:has(.product-miniature__discount-price) .product-miniature__price {
    color: #d9000d !important;
}


/* ============================================================
   STOPKA — jasnoszare tło
   ============================================================ */

#footer {
    background-color: #e9ecef;
}

/* .footer__main ma własne tło (var(--bs-dark)) + jasny tekst dopasowany
   do ciemnego tła - trzeba nadpisać oba */
#footer .footer__main {
    background-color: #e9ecef;
    color: #212529;
}

#footer .footer-block__title,
#footer .footer-block__title a,
#footer .footer-block a,
#footer .copyright,
#footer .copyright a {
    color: #212529;
}

#footer .footer-block a:hover,
#footer .copyright a:hover {
    color: #006DB5;
}

#footer .copyright {
    font-size: 0.5rem;
}
