#cookieConsentBanner {
    display: none; /* Šis tagad reāli strādās, jo izdzēsīsim flex */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    color: #212529;
    padding: 15px 20px;
    z-index: 1050;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    /* display: flex; <--- ŠO RINDIŅU OBLIGĀTI IZDZĒS */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #dee2e6;
}

#cookieConsentBanner p {
    margin: 0 0 10px 0;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

#cookieConsentBanner .buttons-container {
    margin-left: 20px;
    flex-shrink: 0;
}

#cookieConsentBanner a {
    color: #007bff; /* Standard blue link, or use your header red: #dc3545 */
    text-decoration: underline;
}

#cookieConsentBanner a:hover {
    color: #0056b3; /* Darker blue on hover, or a darker red */
}

#cookieConsentBanner .btn {
    margin-left: 10px;
}

/* "Sapratu" button using website's red */
#cookieConsentBanner #acceptCookies.btn-primary {
    background-color: #dc3545; /* Header red */
    border-color: #dc3545;
    color: #fff;
}
#cookieConsentBanner #acceptCookies.btn-primary:hover {
    background-color: #c82333; /* Darker red */
    border-color: #bd2130;
}

/* "Atteikties" button */
#cookieConsentBanner #declineCookies.btn-outline-secondary {
    color: #6c757d; /* Standard secondary color */
    border-color: #6c757d;
}
#cookieConsentBanner #declineCookies.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}




body {
    color: white;
    font-family: "DM Sans", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-y: scroll; /* <--- PIEVIENO ŠO RINDIŅU */
    overflow-wrap: anywhere;
}
.header-container,
.header-container .container-fluid {
    background-color: #9B2915;
}

.site-footer {
    background-color: #9B2915;
    font-family: "DM Sans", sans-serif;
    color: white;
    --bs-secondary-color: white;
    text-align: center;
}

.site-content {
    flex: 1; /* Aizņem visu pieejamo vietu, izstumjot kājeni uz leju */
}

.site-footer .nav-link {
    color: white;
    display: block;
    width: 100%;
    padding: 0.25rem 0;
    text-align: center;
    text-decoration: none;
}

.site-footer .nav-item {
    width: 100%;
}

.site-footer .price-comparison-logos {
    flex-wrap: nowrap;
}

.site-footer .price-comparison-logos > a {
    flex: 1 1 0;
    min-width: 0;
}

.site-footer .price-comparison-logos img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.site-footer .cookie-settings-link {
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.text-b {
    color:rgb(0, 0, 0);
}

.dropdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-wrapper .nav-link {
    padding: 10px 15px;
}

.main-wrapper {
    width: 100%;
    max-width: 100%;
}

img,
video,
iframe {
    max-width: 100%;
}

.google-maps iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

.cart-actions {
    gap: 0.5rem;
}

.cart-actions > .btn {
    min-width: 0;
}

.google-places-autocomplete {
    display: block;
    width: 100%;
}

.row1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}
  
.column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0px;
    min-width: 50px;
    max-width: 400px;
}

.icon-l {
    color: white;
    text-decoration: none;
    padding-left: 20px; /* 👈 Add padding: top-bottom 10px, left-right 15px */
    padding-bottom: 15px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px; /* 👈 Space between icon and text */
}

.icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    background-color: red;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 5px;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(50%, 50%); /* Moves badge a little outwards */
}

.search-wrapper input {
    padding: 10px 15px;
    width: 300px;
    border: 2px solid #ccc;
    border-radius: 10px 0 0 10px;
    border-right: none;
    outline: none;
}

.search-wrapper button {
    background: #ececec;
    border: 2px solid #ccc;
    padding: 12px 15px;
    border-radius: 0 10px 10px 0;
    border-left: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.search-wrapper button svg {
    width: 20px;
    height: 20px;
    fill: rgb(0, 0, 0);
}

.search-wrapper button:hover {
    background: #bebebe;
}

.nav-link.dropdown-toggle {
    color: white;
    display: flex;         /* 👈 turn into flex container */
    align-items: center;   /* 👈 vertically center icon and text */
    gap: 8px;              /* 👈 nice spacing between icon and text */
    padding: 10px 15px;    /* already maybe in your code */
    text-decoration: none; /* optional, just to be safe */
}

.dropdown-item{
    color:black;
}

.nav-link.dropdown-toggle{
    color: white; /* Set dropdown toggle text to white */

}

@media (min-width: 992px) {
    .header-container .dropdown:hover > .dropdown-menu,
    .header-container .dropdown:focus-within > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .header-container .navbar-nav .dropdown-menu {
        width: max-content;
        min-width: 14rem;
        max-width: min(24rem, calc(100vw - 2rem));
    }

    .header-container .navbar-nav .dropdown-menu .dropdown-item {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .header-container .navbar-nav .dropdown-menu .dropdown-item img,
    .header-container .navbar-nav .dropdown-menu .dropdown-item > .bg-light {
        flex: 0 0 35px;
    }

    .header-container .navbar-nav .dropdown-menu .dropdown-item > span {
        min-width: 0;
    }
}

.carousel-item img {
    max-height: 400px; /* Adjust to desired height */
    object-fit: cover; /* Keeps the image aspect ratio */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product {
    background: rgb(255, 255, 255);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    color: #000000;

    
}

.product img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.price {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #000000;
}

.cart-table tfoot .cart-summary-row > * {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-weight: 500;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

@media (min-width: 1600px) {
    .header-container .navbar-collapse > .d-flex {
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }

    .header-search-form {
        flex: 0 1 12rem;
        min-width: 10rem;
    }

    .header-search-form .input-group,
    .header-search-form input {
        min-width: 0;
        width: 100%;
    }

    .header-container .auth-links {
        flex-shrink: 0;
    }

    .language-switcher {
        flex: 0 0 7.5rem;
    }
}

@media (max-width: 767.98px) {
    .cart-table {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: grid;
        gap: 0.875rem;
    }

    .cart-table .cart-item-row {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr) auto;
        grid-template-areas:
            "image product remove"
            "quantity quantity quantity"
            "unit unit total";
        align-items: center;
        gap: 0.75rem;
        padding: 0.875rem;
        border: 1px solid var(--bs-border-color);
        border-radius: 0.75rem;
        background: var(--bs-body-bg);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .cart-table .cart-item-row > td {
        min-width: 0;
        padding: 0;
        border: 0;
        text-align: left !important;
    }

    .cart-table .cart-item-image {
        grid-area: image;
    }

    .cart-table .cart-item-image img {
        width: 4.5rem;
        height: 4.5rem;
    }

    .cart-table .cart-item-product {
        grid-area: product;
        overflow-wrap: anywhere;
    }

    .cart-table .cart-item-product > a {
        display: block;
        font-weight: 600;
        line-height: 1.35;
    }

    .cart-table .cart-item-remove {
        grid-area: remove;
        align-self: start;
    }

    .cart-table .cart-item-quantity {
        grid-area: quantity;
        padding-top: 0.75rem !important;
        border-top: 1px solid var(--bs-border-color) !important;
    }

    .cart-table .cart-item-quantity form {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .cart-table .cart-item-quantity input {
        width: 5rem;
    }

    .cart-table .cart-item-quantity .btn {
        margin-left: 0 !important;
    }

    .cart-table .cart-item-unit-price {
        grid-area: unit;
    }

    .cart-table .cart-item-total {
        grid-area: total;
    }

    .cart-mobile-label {
        display: block;
        margin-bottom: 0.2rem;
        color: var(--bs-secondary-color);
        font-size: 0.8rem;
    }

    .cart-table .cart-item-unit-price small,
    .cart-table .cart-item-total small {
        font-size: 0.75rem;
    }

    .cart-table tfoot {
        display: block;
        margin-top: 1rem;
        padding: 0.25rem 0.875rem;
        border: 1px solid var(--bs-border-color);
        border-radius: 0.75rem;
        background: var(--bs-tertiary-bg);
    }

    .cart-table tfoot tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--bs-border-color);
    }

    .cart-table tfoot tr:last-child {
        border-bottom: 0;
    }

    .cart-table tfoot tr > td {
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 0.9rem !important;
        text-align: left !important;
        overflow-wrap: anywhere;
    }

    .cart-table tfoot tr > td:nth-child(2) {
        text-align: right !important;
        white-space: nowrap;
    }

    .cart-table tfoot tr > td:last-child {
        display: none;
    }

    .cart-table tfoot tr:last-child > td {
        font-size: 1.05rem !important;
        font-weight: 700;
    }

    .header-container .navbar > .container-fluid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .header-container .navbar-brand {
        margin-right: 0.5rem !important;
        max-width: calc(100% - 3.5rem);
    }

    .header-container .navbar-brand .logo-image {
        height: auto;
        max-height: 36px;
        max-width: 100%;
    }

    .header-container .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }

    .header-container .navbar-collapse > .navbar-nav .nav-link {
        display: flex;
        min-height: 44px;
        align-items: center;
    }

    .header-container .navbar-collapse > .d-flex {
        align-items: stretch !important;
        gap: 0.5rem !important;
        min-width: 0;
    }

    .header-search-form {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .header-container .navbar-collapse form .btn,
    .header-container .cart-button,
    .header-container .auth-links > * {
        min-height: 44px;
    }

    .cart-table .form-control,
    .cart-table .btn {
        min-height: 44px;
    }

    .cart-table .btn {
        min-width: 44px;
    }

    .cart-actions > .btn {
        width: 100%;
    }

    #cookieConsentBanner {
        padding: 0.875rem;
    }

    #cookieConsentBanner .buttons-container {
        display: flex;
        width: 100%;
        gap: 0.5rem;
        margin-left: 0;
    }

    #cookieConsentBanner .buttons-container .btn {
        flex: 1 1 0;
        min-height: 44px;
        margin-left: 0;
    }

    .toast-container {
        max-width: 100vw;
    }

    .toast-container .toast {
        width: min(350px, calc(100vw - 2rem));
    }
}
