/* ===================================
   VIBO GLOBAL CART STYLES - ARGOS INSPIRED
   =================================== */

/* Cart Modal - Slide in from RIGHT like Argos */
.vibo-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
}

.vibo-cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.vibo-cart-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 100000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.vibo-cart-modal[style*="display: flex"] .vibo-cart-modal-content,
.vibo-cart-modal.active .vibo-cart-modal-content {
    transform: translateX(0);
}

/* Modal Header */
.vibo-cart-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.vibo-cart-modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.vibo-cart-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.vibo-cart-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.vibo-cart-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.vibo-cart-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Modal Body */
.vibo-cart-modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.vibo-cart-added-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
}

.vibo-cart-added-item-image {
    flex-shrink: 0;
}

.vibo-cart-added-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.vibo-cart-added-item-details {
    flex: 1;
}

.vibo-cart-added-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.vibo-cart-added-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #024C33;
    margin-bottom: 4px;
}

.vibo-cart-added-item-quantity {
    font-size: 14px;
    color: #666;
}

/* Modal Footer */
.vibo-cart-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

.vibo-cart-modal-summary {
    margin-bottom: 20px;
}

.vibo-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.vibo-cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 2px solid #e5e5e5;
    margin-top: 8px;
}

.vibo-cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.btn-vibo-primary,
.btn-vibo-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-vibo-primary {
    background: #FE0000;
    color: white;
}

.btn-vibo-primary:hover {
    background: #DA241B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 0, 0, 0.3);
}

.btn-vibo-secondary {
    background: white;
    color: #024C33;
    border: 2px solid #024C33;
}

.btn-vibo-secondary:hover {
    background: #024C33;
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

@media (max-width: 768px) {
    .vibo-cart-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100%;
    }
    
    .vibo-cart-modal-header {
        padding: 16px;
    }
    
    .vibo-cart-success-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .vibo-cart-modal-title {
        font-size: 20px;
    }
    
    .vibo-cart-modal-body {
        padding: 16px;
    }
    
    .vibo-cart-added-item {
        flex-direction: column;
        text-align: center;
    }
    
    .vibo-cart-added-item-image img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .vibo-cart-modal-footer {
        padding: 16px;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Cart Sidebar */
.vibo-cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    z-index: 99998;
    transition: right 0.3s ease;
}

.vibo-cart-sidebar.active {
    right: 0;
}

.vibo-cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(2, 76, 51, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: -100vw;
}

.vibo-cart-sidebar.active .vibo-cart-sidebar-overlay {
    opacity: 1;
}

.vibo-cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 99999;
}

.vibo-cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vibo-cart-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vibo-cart-count-badge {
    background: #FE0000;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.vibo-cart-sidebar-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.vibo-cart-sidebar-close:hover {
    background: #f5f5f5;
    color: #000;
}

.vibo-cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.vibo-cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
}

/* Cart Sidebar Items */
.vibo-cart-sidebar-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vibo-cart-sidebar-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.vibo-cart-sidebar-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vibo-cart-sidebar-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.vibo-cart-sidebar-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #FE0000;
}

.vibo-cart-sidebar-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* Quantity Dropdown */
.vibo-cart-qty-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}

.vibo-cart-qty-select:hover {
    border-color: #024C33;
}

.vibo-cart-qty-select:focus {
    outline: none;
    border-color: #024C33;
    box-shadow: 0 0 0 3px rgba(2, 76, 51, 0.1);
}

/* Remove Button */
.vibo-cart-remove-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #FE0000;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibo-cart-remove-btn:hover {
    background: #FE0000;
    color: white;
    border-color: #FE0000;
}

.vibo-cart-remove-btn i {
    font-size: 14px;
}

/* Empty Cart State */
.vibo-cart-sidebar-empty {
    text-align: center;
    padding: 60px 20px;
}

.vibo-cart-sidebar-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.vibo-cart-sidebar-empty p {
    color: #666;
    margin-bottom: 20px;
}

/* Recommended Items Section */
.vibo-cart-recommended-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.vibo-cart-recommended-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vibo-cart-recommended-header i {
    color: #FFD700;
    font-size: 18px;
}

.vibo-cart-recommended-header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.vibo-cart-recommended-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vibo-cart-recommended-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.vibo-cart-recommended-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vibo-cart-recommended-item-image {
    width: 100%;
    height: 80px;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.vibo-cart-recommended-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vibo-cart-recommended-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vibo-cart-recommended-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #FE0000;
    margin-bottom: 8px;
}

.vibo-recommended-add-btn {
    background: #024C33;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.vibo-recommended-add-btn:hover {
    background: #035A44;
}

.vibo-recommended-add-btn i {
    margin-right: 4px;
}

.vibo-cart-recommended-loading,
.vibo-cart-recommended-empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    grid-column: 1 / -1;
}

.vibo-cart-recommended-loading i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #024C33;
}

@media (max-width: 768px) {
    .vibo-cart-sidebar {
        max-width: 100%;
    }
    
    .vibo-cart-sidebar-content {
        max-width: 100%;
    }
    
    .vibo-cart-sidebar-body {
        padding: 16px;
    }
    
    .vibo-cart-sidebar-footer {
        padding: 16px;
    }
}
