/* Vue Checkout Custom Styles */
.checkout-wrapper {
    background: #f5f7fa;
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Accordion Sections */
.accordion-section {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.accordion-section .card-header.collapsed {
    cursor: pointer;
    background: #f0fdf4 !important;
    border-bottom: 2px solid #28a745;
}

.accordion-section .card-header.collapsed:hover {
    background: #e8f9ec !important;
}

.accordion-section .expand-icon,
.accordion-section .collapse-icon {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.accordion-section .expand-icon {
    cursor: pointer;
}

.accordion-section .expand-icon:hover {
    color: #218838;
}

.accordion-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-info {
    font-size: 14px;
    font-weight: 600;
    color: #28a745;
}

/* Checkout Grid */
.checkout-content {
    padding: 20px 15px;
    width: 100%;
}

.checkout-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: block;
}

.checkout-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 30px !important;
    align-items: start;
    width: 100% !important;
}

.checkout-left {
    width: 100%;
}

.checkout-right {
    width: 100%;
}

/* White Cards */
.white-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.white-card .card-header {
    padding: 20px 30px;
    border-bottom: 2px solid #f0f0f0;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.white-card .card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 12px;
}

.white-card .card-header h3 i {
    color: #28a745;
    font-size: 22px;
}

.white-card .badge {
    background: #28a745;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.white-card .btn-link {
    background: none;
    border: none;
    color: #28a745;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.white-card .btn-link:hover {
    color: #218838;
    text-decoration: underline;
}

/* Cart Items */
.cart-items-list {
    padding: 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.cart-item-row:hover {
    background: #f9fafb;
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-row .item-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.cart-item-row .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-row .item-info {
    flex: 1;
}

.cart-item-row .item-info h4 {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
}

.cart-item-row .item-info .price {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 800;
    color: #28a745;
}

.cart-item-row .original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 16px;
    font-weight: 500;
}

.cart-item-row .discount-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: 500;
}

.cart-item-row .qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-row .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-item-row .qty-btn:hover:not(:disabled) {
    border-color: #28a745;
    color: #28a745;
    background: #f0fdf4;
}

.cart-item-row .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-item-row .qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #2d3748;
}

.cart-item-row .item-total {
    text-align: right;
    margin-left: 20px;
}

.cart-item-row .total-price {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
}

.cart-item-row .remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.2s;
    font-weight: 600;
}

.cart-item-row .remove-btn:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Address Section */
.address-list {
    padding: 20px 30px;
}

.address-card {
    display: flex;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.address-card:hover {
    border-color: #28a745;
    background: #f0fdf4;
}

.address-card.selected {
    border-color: #28a745;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.address-card .address-radio {
    margin-right: 15px;
}

.address-card .address-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.address-card .address-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.address-card .address-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.address-card .address-details .phone {
    color: #28a745;
    font-weight: 600;
    margin-top: 10px;
}

/* Order Summary */
.summary-card {
    position: sticky;
    top: 20px;
}

.summary-content {
    padding: 25px 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
}

.summary-row span:last-child {
    font-weight: 700;
    color: #2d3748;
}

.summary-row.discount span:last-child {
    color: #28a745;
}

.summary-divider {
    height: 2px;
    background: #e9ecef;
    margin: 20px 0;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 800;
    color: #2d3748;
}

.summary-row.total span:last-child {
    color: #28a745;
}

/* Payment Section */
.payment-section {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
}

.payment-section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #28a745;
    background: #f0fdf4;
}

.payment-option input[type="radio"]:checked + .payment-content {
    color: #28a745;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-option .payment-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.payment-option .payment-content i {
    font-size: 22px;
}

/* Place Order Button */
.btn-place-order {
    width: calc(100% - 60px);
    padding: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20803a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-place-order:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-text {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 0 30px 25px 30px;
}

.secure-text i {
    color: #28a745;
}

/* Empty & Loading States */
.loading-state,
.empty-state {
    padding: 80px 30px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p,
.empty-state p {
    color: #666;
    font-size: 16px;
    margin: 15px 0;
}

.empty-state i {
    font-size: 70px;
    color: #ccc;
    margin-bottom: 25px;
}

.empty-state h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #28a745;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999;
    animation: slideIn 0.4s ease;
    min-width: 350px;
}

.toast.success {
    border-left: 5px solid #28a745;
}

.toast.error {
    border-left: 5px solid #dc3545;
}

.toast i {
    font-size: 24px;
}

.toast.success i {
    color: #28a745;
}

.toast.error i {
    color: #dc3545;
}

.toast span {
    flex: 1;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.toast-close-btn:hover {
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .summary-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .steps-progress .step-title {
        font-size: 12px;
    }
    
    .steps-progress .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-row .item-img {
        margin-bottom: 15px;
    }
    
    .cart-item-row .item-total {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        margin-left: 0;
    }
    
    .toast {
        left: 15px;
        right: 15px;
        min-width: auto;
    }
    
    .white-card .card-header {
        padding: 15px 20px;
    }
    
    .cart-items-list,
    .address-list,
    .summary-content,
    .payment-section {
        padding: 15px 20px;
    }
    
    .btn-place-order {
        width: calc(100% - 40px);
        margin: 20px 20px;
    }
}

/* Add Address Form */
.add-address-form {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.form-header h4 {
    color: #28a745;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row:has(.form-group:nth-child(3)) {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-save {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-save:hover:not(:disabled) {
    background: #218838;
}

.btn-save:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

