@import url('fonts.css');
@import url('colors.css');

body {
    font-family: "Josefin Sans", sans-serif;
    color: var(--bs-body-color);
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
}

.header-bottom .navbar-brand .logo {
    max-width: 180px;
    height: auto;
}

.footer .footer__main {
    background-color: var(--bs-secondary);
    background-image: url("/img/cms/footer-bg.jpeg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

.badge.discount {
    color: var(--bs-white) !important;
    background-color: var(--bs-danger) !important;
    border: 0 !important;
}

ul.sub-menu {
    border-color: #c7c7c7 !important;
    padding: 10px !important;
}


/*
** Product miniature
*/
.product-miniature .product-miniature__infos {
    padding: 10px;
    text-align: center;
}

.product-miniature .product-miniature__quickview {
    background-color: transparent;
    padding: 0;
    width: 100%;
    right: 0;
}

.product-miniature .product-miniature__quickview_button:hover {
    color: #fff !important;
}

.product-miniature .quantity-button {
    display: none;
}

.product-miniature button.btn-primary {
    border-radius: 7px;
    cursor: pointer;
    width: 100%;
    color: #fff;
    border: 2px solid transparent;
    font-size: 13px;
    padding: 10px 20px;
    display: inline-block;
    line-height: 1;
    fill: currentColor;
    text-align: center;
    transition: .5s;
}

.product-miniature button.btn-primary i {
    margin-right: 8px;
}

.product-miniature .product-miniature__title {
    color: #000;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.2;
}

.product-miniature .product-miniature__category {
    margin-top: 5px;
    color: #000;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.2;
}

.product-miniature .product-miniature__prices {
    font-size: 16px;
    text-align: center;
    color: #000;
    justify-content: center;
    align-items: center;
}

.product-miniature .product-miniature__prices .product-miniature__price {
    font-weight: normal;
}

/*
** Product page
*/
.page-product ul li {
    line-height: 1.8;
}

/*
** Footer
*/
.footer .footer__block__title {
    font-size: 18px;
    font-weight: 800;
}

/*
** Sedestral module
*/
.sedestral.blog-container-home {
    margin: 0 !important;
}

.sedestral.blog-container-home h2 {
    font-size: 24px !important;
}

@media (max-width: 576px) {
    .sedestral.blog-container-home {
        padding: 15px !important;
    }
}

/*
** Newsleter module
*/
.email-subscription__content__infos {
    color: var(--bs-gray-600) !important;
}

/*
** Product comment module
*/
.page-product .product-comment-list-item .comment-buttons {
    display: none !important;
}

.product-miniature .product-list-reviews {
    justify-content: center;
}

/*
** Wishlist module
*/
.product-miniature .wishlist-button-add {
    position: absolute;
    top: 1px;
    right: .635rem;
    z-index: 10;
}

.wishlist-button-add {
    background-color: transparent;
    border: 1px solid var(--bs-secondary) !important;
    color: var(--bs-secondary) !important;
    box-shadow: none !important;
}

.product-miniature .wishlist-button-add:hover {
    background-color: var(--bs-secondary);
    color: #fff !important;
}

.wishlist-button-add i {
    color: inherit !important;
}

/*
** Cart
*/
.cart-voucher__list {
    color: var(--bs-secondary);
}

.cart-voucher__list .cart-voucher__item {
    margin-bottom: 10px;
}

/*
** Checkout
*/
.checkout__steps--current:before,
.checkout__steps--success .checkout__steps__number {
    background: var(--bs-secondary) !important;
}

.checkout__steps--success:after,
.checkout__steps--success:before {
    background: var(--bs-primary);
}

.js-conditions-to-approve {
    margin-top: 35px;
}

.form-check-input:checked {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

/* Naredi, da vsaka opcija plačila izgleda kot čista 'kartica' */
.payment__option {
    border: 1px solid #dee2e6;
    /* Nežna siva obroba */
    border-radius: 8px;
    /* Zaobljeni robovi */
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.2s ease-in-out;
    /* Gladka animacija za hover/izbiro */
    cursor: pointer;
}

/* Stil za hover efekt */
.payment__option:hover {
    border-color: var(--bs-primary, #6c757d);
    /* Nežna barva na hover */
}

/* Poskrbi, da labela zapolni celo širino kartice, da je klikljiv cel prostor */
.payment__option>label.form-check-label {
    width: 100%;
    margin-bottom: 0 !important;
    /* Odstrani nepotreben Bootstrap margin */
    padding: 0;
}

/* Skrije neurejeno border-bottom, ki je ostal v HTML-u */
#payment-option-1-container[style*="border-bottom: 1px soliu;"] {
    border-bottom: none !important;
}

/* ======================================= */
/* 2. Stil za aktivno (izbrano) opcijo */
/* ======================================= */

/* Uporabimo :has() za izbiro starša, ko je radio gumb znotraj njega izbran.
   To je ključni element za dinamično obarvanje. */
.payment__option:has(input[type="radio"]:checked) {
    /* Uporabimo vašo nežno primarno barvo za obrobo */
    border-color: var(--bs-primary, #5a2e9b);

    /* Nežna barva ozadja za poudarek */
    background-color: color-mix(in srgb, var(--bs-primary, #5a2e9b) 10%, transparent);

    /* Dodamo blag shadow, da kartica izstopa */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ======================================= */
/* 3. Stil za Vsebino, ki se razpre (podatki o banki/opozorilo) */
/* ======================================= */

.payment__definitions {
    /* Odstranimo 'margin-bottom: 20px' iz inline stila za boljšo kontrolo */
    margin-bottom: 20px !important;

    /* Ohranimo horizontalno črto, vendar jo stiliramo */
    border-bottom: 1px solid var(--bs-primary, #5a2e9b) !important;

    /* Notranji padding zgoraj in spodaj */
    padding-top: 10px;
    padding-bottom: 0px;

    /* Odstrani lev padding, če je preveč zamaknjen */
    padding-left: 0 !important;
}