 /* overlay */
 .sin-minicart-dropdown {
    position: relative;
}
.sin-minicart-dropdown::after {
    content: '';
    position: fixed;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* LOADER minicart */
#sin-minicart-loader .loader-circle {
    width: 30px;
    height: 30px;
    border: 4px solid var(--project);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* sin minicart styles */
#sin-minicart { position: relative; }
.sin-cart-header {
    display: flex;
    align-items: center;
    background-color: var(--project-light);

    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.sin-cart-header:hover { 
    background-color: var(--project);
}
.sin-cart-header__icon { position: relative; margin-right: 10px; }
.sin-cart-header__icon--quantity {
    position: absolute;
    top: -5px; right: -8px;
    min-width: 18px; height: 18px;
    background-color: #ff6b6b;
    border-radius: 50%;
    color: white; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.sin-price { color: white; font-size: 16px; font-weight: 600; }
@media (max-width: 991px) {
    .sin-price {
        display: none;
    }
}

/* Hlavný kontajner minicart */
.sin-minicart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 380px;
    background-color: #f9f9f9;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}

/* Keď je minicart aktívny/otvorený */
.sin-minicart-dropdown.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* Prekrytie pozadia pri otvorenom košíku */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Hlavička košíka v novom dizajne */
.cart-title {
    background-color: #0075fa;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    height: 70px;
}

.cart-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.cart-title .item-count {
    display: inline-block;
    margin-left: 8px;
    background-color: white;
    color: #0075fa;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
}

.close-cart {
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Položky v košíku */
#sin-minicart-dropdown .woocommerce-mini-cart {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 67vh;
}

#sin-minicart-dropdown a.button:hover {
    border: 2px solid var(--purple-dark-2) !important;
    background:var(--purple-dark-2) !important;
    color: #fff !important;
    box-shadow: 0px 10px 12px rgb(0 37 87 / 11%);
}

#sin-minicart-dropdown .woocommerce-mini-cart-item {
    position: relative;
    padding: 8px 15px;
    border-bottom: 1px solid #e5e5e5;
    display: block;
}

#sin-minicart-dropdown .woocommerce-mini-cart-item .remove_from_cart_button {
    position: absolute;
    top: 15px;
    right: 10px;
    font-size: 24px;
    color: #ccc;
    text-decoration: none;
    background: none;
    border: none;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.woocommerce-mini-cart-item a:not(.remove_from_cart_button) {
    display: flex;
    text-decoration: none;
    color: #333;
    margin-bottom: 15px;
}

#sin-minicart-dropdown ul.product_list_widget li {
    padding: 8px 15px;
}
#sin-minicart-dropdown ul.product_list_widget li:hover {
    background: rgba(139, 186, 250, 0.1);
}
#sin-minicart-dropdown ul.product_list_widget li a:not(.remove_from_cart_button) {
    padding-right: 2.5vw;
}

#sin-minicart-dropdown ul.product_list_widget li a {
    color: var(--purple-dark-2) !important;
    font-weight: 700 !important;
}
#sin-minicart-dropdown ul.product_list_widget li a.remove_from_cart_button:hover {
    background: #a00 !important;
    color: #fff !important;
}

#sin-minicart-dropdown ul.product_list_widget li img {
    width: 5vw;
    min-width: 60px;
}

#sin-minicart-dropdown .woocommerce-mini-cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #f0f0f0;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

.product-name {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    padding-right: 20px;
}

/* Množstvo produktov - nový dizajn */
.quantity-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background-color: white;
    height: 36px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

input.qty {
    height: 36px;
    border: none;
    width: 30px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    padding: 0;
    margin: 0;
    background: white;
}

/* Ceny produktov - nový dizajn */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.item-price-per-unit {
    color: #999;
    font-size: 12px;
    margin-bottom: 3px;
}

.price {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

/* Medzisúčet - nový dizajn */
.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    background-color: white;
}

.woocommerce-mini-cart__total strong {
    font-weight: 600;
    color: #242f4b;
}

.woocommerce-mini-cart__total .amount {
    color: #242f4b;
    font-size: 20px;
    font-weight: 700;
}

/* Navigačné bodky - nový prvok */
.cart-navigation-dots {
    text-align: center;
    padding: 10px 0;
    background-color: white;
}

.cart-navigation-dots .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 3px;
}

.cart-navigation-dots .dot.active {
    background-color: #666;
}

/* Tlačidlá pre košík - nový dizajn */
.woocommerce-mini-cart__buttons {
    margin: 0;
    padding: 20px;
}

.woocommerce-mini-cart__buttons a {
    display: block;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart__buttons a.button {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}
.woocommerce a.button,
.woocommerce-mini-cart__buttons a {
background-color: #ffffff !important;
    color: #ffa800 !important;
    border: 2px solid  !important;
}
.woocommerce-mini-cart__buttons a.checkout {
    background-color: #ffa800 !important;
    color: white !important;
}

.woocommerce-mini-cart__buttons a.button:hover {
    background-color: #f9f9f9;
}

.woocommerce-mini-cart__buttons a.checkout:hover {
    background-color: #ff9900;
}

/* Responzívne úpravy */
@media (max-width: 480px) {
    .sin-minicart-dropdown {
        width: 100%;
        max-width: 100%;
    }
}


.minicart-content {
    display: flex;
    flex-direction: column;
    height: 92vh;
}
.minicart-header {
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(1.35em,5vw,1.625em);
    color: #fff;
    background-color: var(--purple-dark-2);
}
.minicart-header-left {
    display: flex;
    align-items: center;
}
.minicart-title {
    font-size: clamp(1.35em,5vw,1.5em);
    font-weight: 600;
line-height: 1;

}
.minicart-count {
    display: flex;
align-items: center;
justify-content: center;
width: clamp(1.35em,5vw,1.5em);
height: clamp(1.35em,5vw,1.5em);
margin-left: .75em;
padding:
.25em;
border-radius:
50%;
color: #2b2d59;
background-color: #fff;
font-size: .75em;
line-height: 1;
}


/* LOADER Side cart */
.quantity-control.loading {
    position: relative;
    opacity: 0.6;
}

.quantity-control.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #999;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* .qty-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
} */

/* @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */
