/* Modern Cart Design */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

:root {
    --primary-color: #066cfa;
    --secondary-color: #222021;
    --accent-color: #ff4f70;
    --background-color: #f9f9f9;
    --card-background: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --text-muted: #999999;
    --border-color: #e9e9e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

.modern-cart-area {
    padding: 60px 0;
}

/* Empty cart styles */
.empty-cart-container {
    text-align: center;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: rgba(6, 108, 250, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
}

.empty-cart-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.empty-cart-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn-continue-shopping {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-continue-shopping:hover {
    background-color: #0559cc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cart header styles */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cart-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.cart-items-count {
    font-size: 16px;
    color: var(--text-light);
    background-color: var(--card-background);
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
}

/* Cart container layout */
.cart-container {
    display: flex;
    gap: 30px;
}

.cart-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-right {
    width: 380px;
}

/* Business card styles */
.business-card {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.business-card-inner {
    display: flex;
    align-items: center;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.business-logo {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(6, 108, 250, 0.3);
}

.business-details {
    flex: 1;
}

.business-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--secondary-color);
}

.business-tagline {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Cart items container */
.cart-items-container {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Cart item styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #f0f0f0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    margin-right: 20px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--secondary-color);
}

.cart-item-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 12px;
}

.cart-item-price .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 8px;
}

.cart-item-price .price-current {
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-variations {
    margin-bottom: 10px;
}

.variation-detail {
    display: inline-block;
    font-size: 13px;
    background-color: #f5f5f5;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    margin-right: 8px;
    margin-bottom: 5px;
    color: var(--text-light);
}

.variation-detail strong {
    color: var(--text-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cart-item-subtotal {
    min-width: 120px;
    text-align: right;
}

.subtotal-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.subtotal-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Quantity control styles */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-btn:active {
    background-color: #d5d5d5;
}

.quantity-input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
}

.quantity-btn.minus {
    border-right: 1px solid var(--border-color);
}

.quantity-btn.plus {
    border-left: 1px solid var(--border-color);
}

.remove-item-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.remove-item-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

.remove-item-btn i {
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.remove-item-btn:hover i {
    color: white;
}

/* Loading state styles */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading-spinner {
    font-size: 12px;
    color: var(--text-light);
    display: none;
}

.remove-item-btn .loading-spinner {
    font-size: 12px;
}

.quantity-btn .loading-spinner {
    font-size: 10px;
}

button.loading .loading-spinner {
    display: inline-block;
}

/* Hide Bootstrap display none utility if not already present */
.d-none {
    display: none !important;
}

/* Order summary styles */
.order-summary {
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: var(--secondary-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.summary-label {
    font-size: 15px;
    color: var(--text-light);
}

.summary-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-row.total .summary-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.summary-row.total .summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.checkout-button {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-md);
    margin: 25px 0 15px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.checkout-button:hover {
    background-color: #0559cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.checkout-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-button.loading .checkout-loading {
    opacity: 1;
    visibility: visible;
}

.checkout-button.loading .checkout-text {
    opacity: 0;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.secure-checkout i {
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-method-icon {
    font-size: 24px;
    color: var(--text-muted);
}

/* Responsive styles */
@media (max-width: 1199px) {
    .cart-container {
        gap: 20px;
    }
    
    .cart-right {
        width: 340px;
    }
}

@media (max-width: 991px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-right {
        width: 100%;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .modern-cart-area {
        padding: 40px 0;
    }
    
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .cart-title {
        font-size: 24px;
    }
    
    .cart-item {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: calc(100% - 95px);
        margin-right: 0;
    }
    
    .cart-item-subtotal {
        margin-top: 15px;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .subtotal-label {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .remove-item-btn {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
    }
    
    .remove-item-btn i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .remove-item-btn {
        margin-left: 0;
    }
    
    .order-summary {
        padding: 20px;
    }
}