/* Mini-cart */

.cart-widget-side {
    width: 500px !important;
    max-width: 100% !important;
}

/* === Minicart personalizat (v2) === */


.cart-widget-side .wd-heading {
    padding: 20px !important;
    background: linear-gradient(135deg, #035597 0%, #023f70 100%);
}
.cart-widget-side .wd-heading .title {
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Buton de inchidere - cerc clar, X vizibil, text mutat doar pt accesibilitate */
.cart-widget-side .close-side-widget {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15) !important;
    padding: 0 !important;
    transition: background .15s ease;
}
.cart-widget-side .close-side-widget:hover {
    background: rgba(255,255,255,0.3) !important;
}
.cart-widget-side .close-side-widget a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.cart-widget-side .close-side-widget .wd-action-icon::before {
    color: #fff !important;
    font-size: 14px !important;
}
.cart-widget-side .close-side-widget .wd-action-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fiecare produs devine un "card" */
.woocommerce-mini-cart-item.mini_cart_item {
    padding: 14px !important;
    margin: 10px 12px !important;
    border-bottom: none !important;
    background: #f8f9fb !important;
    border-radius: 10px !important;
    transition: box-shadow .2s ease;
}
.woocommerce-mini-cart-item.mini_cart_item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.cart-item-image {
    border-radius: 8px !important;
    overflow: hidden;
    border: 1px solid #eee;
}
.cart-item-image img {
    border-radius: 8px !important;
}


.widget_shopping_cart .wd-entities-title {
    font-size: 17px !important;
    line-height: 1.3 !important;
}

.wd-product-detail.wd-product-sku {
    font-size: 11px !important;
    opacity: .6;
}

.woocommerce-mini-cart-item div.quantity {
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    overflow: hidden;
    background: #fff !important;
}
.woocommerce-mini-cart-item div.quantity .btn {
    background: transparent !important;
    border: none !important;
}
.woocommerce-mini-cart-item div.quantity .qty {
    border: none !important;
    background: transparent !important;
}

.woocommerce-mini-cart-item span.quantity .woocommerce-Price-amount {
    color: #035597 !important;
    font-weight: 700 !important;
}

.woocommerce-mini-cart-item .remove {
    opacity: .4;
    transition: opacity .2s ease;
}
.woocommerce-mini-cart-item:hover .remove {
    opacity: 1;
}

.shopping-cart-widget-footer {
    padding: 0 20px 20px !important;
    border-top: 1px solid #eee !important;
    background: #fff !important;
}

.woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #035597 !important;
    font-weight: 800 !important;
}

/* Bara de progres - specificitate mai mare ca sa bata regulile temei */
.shopping-cart-widget-footer .wd-progress-bar .progress-area {
    background: #e9edf2 !important;
    height: 10px !important;
    border-radius: 20px !important;
}
.shopping-cart-widget-footer .wd-progress-bar .progress-area .progress-bar {
    background: linear-gradient(90deg,#035597,#0a7fd1) !important;
    min-width: 6px !important;
}
.shopping-cart-widget-footer .wd-progress-bar .progress-msg {
    font-size: 12px !important;
    margin-bottom: 6px !important;
}

/* Butoane egale ca inaltime, text care incape corect indiferent de limba */
.woocommerce-mini-cart__buttons.buttons {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
}
.woocommerce-mini-cart__buttons .btn-cart,
.woocommerce-mini-cart__buttons .checkout {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 12.5px !important;
    padding: 10px 8px !important;
    min-height: 44px !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 22px !important;
}
.woocommerce-mini-cart__buttons .btn-cart {
    background: #fff !important;
    color: #035597 !important;
    border: 1.5px solid #035597 !important;
    font-weight: 600 !important;
}
.woocommerce-mini-cart__buttons .btn-cart:hover {
    background: #035597 !important;
    color: #fff !important;
}
.woocommerce-mini-cart__buttons .checkout {
    background: #FD6800 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
}
.woocommerce-mini-cart__buttons .checkout:hover {
    background: #e35c00 !important;
}

/* Mobil */
@media (max-width: 480px) {
    .cart-widget-side {
        width: 100% !important;
        max-width: 400px !important;
    }
    .woocommerce-mini-cart__buttons .btn-cart,
    .woocommerce-mini-cart__buttons .checkout {
        font-size: 12px !important;
        padding: 10px 6px !important;
    }
}
@media (max-width: 360px) {
    .woocommerce-mini-cart__buttons.buttons {
        flex-wrap: wrap !important;
    }
    .woocommerce-mini-cart__buttons .btn-cart,
    .woocommerce-mini-cart__buttons .checkout {
        flex: 1 1 100% !important;
    }
}


.woocommerce-mini-cart .remove:after{
	font-size:13px !important;	
}


@media (max-width: 1024px) {
    .wd-side-hidden {
        --wd-side-hidden-w: min(375px, 80vw);
			width: 375px !important;
			max-width: 100% !important;
    }
}
