/**
 * Shopping Cart Modal - Stiluri adiționale
 * Stiluri pentru funcționalitățile custom ale modalului de coș
 */

/* Loading indicator */
.cart-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.cart-loading i {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Empty cart message */
.tf-mini-cart-items .text-center p {
    color: #999;
    font-size: 16px;
    padding: 40px 20px;
}

/* Tool openable state */
.tf-mini-cart-tool-openable {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.tf-mini-cart-tool-openable.open {
    max-height: 500px;
}

/* Recommendation products hover effect */
.recommendation-product-link {
    transition: color 0.3s ease;
}

.recommendation-product-link:hover {
    color: #000;
    text-decoration: none;
}

/* Cart item remove button hover */
.tf-btn-remove.remove {
    cursor: pointer;
    transition: color 0.3s ease;
}

.tf-btn-remove.remove:hover {
    color: #dc3545;
}

/* Progress bar animation */
.tf-progress-bar .value {
    transition: width 0.5s ease-in-out;
}

/* Cart item fade effect */
.tf-mini-cart-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tf-mini-cart-tool-openable.open {
        max-height: 600px;
    }
}

/* Price styling in recommendations */
.list-cart-item .price del {
    color: #999;
    margin-right: 5px;
}

/* Badge styling for cart count */
.nav-cart .count-box {
    transition: transform 0.3s ease;
}

.nav-cart .count-box.updated {
    transform: scale(1.2);
}

/* Shipping threshold styles */
.tf-mini-cart-threshold {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.tf-mini-cart-threshold .text-caption-1 {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Tool buttons styling */
.tf-mini-cart-tool-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 4px;
}

.tf-mini-cart-tool-btn:hover {
    background-color: #f0f0f0;
}

.tf-mini-cart-tool-btn svg {
    margin-right: 8px;
    vertical-align: middle;
}

/* Form styling */
.tf-mini-cart-tool-wrap textarea,
.tf-mini-cart-tool-wrap input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.tf-mini-cart-tool-wrap textarea:focus,
.tf-mini-cart-tool-wrap input[type="text"]:focus {
    outline: none;
    border-color: #181818;
}

/* Button group styling */
.tf-cart-tool-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tf-cart-tool-btns button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-cart-tool-btns button:hover {
    opacity: 0.9;
}

/* Close button styling */
.tf-mini-cart-tool-close {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.tf-mini-cart-tool-close:hover {
    color: #333;
}

/* Select dropdown styling */
.tf-select select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.tf-select select:focus {
    outline: none;
    border-color: #181818;
}

/* Cart item image styling */
.tf-mini-cart-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
}

.tf-mini-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recommendation image styling */
.list-cart-item .image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 12px;
}

.list-cart-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Smooth transitions for all elements */
* {
    transition-property: background-color, color, border-color, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Disabled state for checkout button when terms not accepted */
.tf-mini-cart-view-checkout a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* Voucher aplicat styling */
.voucher-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.voucher-applied strong {
    color: #155724;
    font-size: 14px;
}

.voucher-applied .remove-voucher {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.voucher-applied .remove-voucher:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Discount display in subtotal */
.tf-totals-total-value del {
    color: #999;
    font-size: 14px;
}

.tf-totals-total-value .discount-info {
    color: #28a745;
    font-weight: bold;
    margin-top: 5px;
}

/* Simple notification animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.simple-notification {
    animation: slideInRight 0.3s ease;
}

/* Form buttons loading state */
.form-add-note button[type="submit"]:disabled,
.form-add-coupon button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Textarea pentru notițe */
.form-add-note textarea {
    min-height: 100px;
    resize: vertical;
}

/* Success state pentru forms */
.form-success {
    border-left: 4px solid #28a745;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Voucher code input styling */
.form-add-coupon input[type="text"] {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Tool openable enhanced */
.tf-mini-cart-tool-openable {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.tf-mini-cart-tool-openable.open {
    opacity: 1;
    pointer-events: all;
}

/* Enhanced button styling for forms */
.tf-cart-tool-btns button.btn-style-2 {
    background: #181818;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tf-cart-tool-btns button.btn-style-2:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Close button enhanced */
.tf-mini-cart-tool-close {
    font-weight: 600;
    transition: all 0.3s ease;
}

.tf-mini-cart-tool-close:hover {
    color: #000;
    text-decoration: underline;
}
