/* File: app/public/wp-content/themes/hello-elementor-child/assets/css/custom-mini-cart.css */

/* Quantity Controls */
.custom-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.qty-btn:disabled:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

.qty-display {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* Free Shipping Progress */
.free-shipping-progress {
    padding: 15px;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0d2);
    width: 60%; /* This will be dynamic */
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Recommended Products */
.recommended-products {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.recommended-products h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
}

.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommended-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s;
}

.recommended-item:hover {
    background: #f0f0f0;
}

.recommended-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    flex: 1;
}

.item-info h5 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #333;
}

.item-info .price {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: bold;
}


/* Add to your custom-mini-cart.css */
.recommended-products {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.recommended-products h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.recommended-product {
    text-align: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.recommended-product:hover {
    border-color: #007cba;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recommended-product .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 8px;
}

.recommended-product .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.recommended-product .product-name {
    font-size: 12px;
    margin: 5px 0;
    color: #333;
    line-height: 1.3;
}

.recommended-product .product-price {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

.add-to-cart-btn.loading {
    background: #6c757d;
    cursor: not-allowed;
    border: 1px solid #6c757d;
}

.add-to-cart-btn.success {
    background: #28a745;
    border: 1px solid #28a745;
}

.add-to-cart-btn.error {
    background: #dc3545;
    border: 1px solid #dc3545;
}

.loading-products {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.recommended-products-grid p {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    margin: 0;
}
.elementor-menu-cart__main {
    max-height: 100vh;
    overflow: auto;
    width: min(400px, 100%) !important;
}

.wgm-info.wgm-extra-costs-eu {
    display: none;
}

.cart-loading {
    position: relative;
}
.cart-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-spinner {
    border: 4px solid #eee;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.elementor-menu-cart__products {
    overflow-y: hidden !important;
}
.elementor-menu-cart__main .widget_shopping_cart_content {
    height: unset !important;
}