.cart-section {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 50px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 0;
}

.cart-item-info p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark-color);
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.remove-item {
    color: var(--gray-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #dc3545;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
}

.empty-cart i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.cart-summary {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.btn-checkout {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #b50a52;
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.checkout-step {
    display: none;
    margin-bottom: 2rem;
}

.checkout-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.checkout-step h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(215, 15, 100, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--dark-color);
}

.btn-secondary:hover:not(:disabled) {
    background: #e0e0e0;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #b50a52;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-success {
    background: #00C851;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #007E33;
}

/* Order Summary Styles */
.order-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

/* Radio Button Styling */
.form-group label[for="payment"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.form-group label[for="payment"]:hover {
    border-color: var(--primary-color);
    background: rgba(215, 15, 100, 0.05);
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .cart-item-info {
        grid-column: 2;
    }

    .cart-item-quantity {
        grid-column: 2;
        justify-content: flex-start;
    }

    .cart-item-price {
        grid-column: 2;
    }

    .remove-item {
        grid-column: 2;
        justify-self: flex-end;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .checkout-nav {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        flex: 1;
    }
}

.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.confirmation-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.confirmation-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.confirmation-content p {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.confirmation-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btns .btn {
    min-width: 150px;
    padding: 12px 25px;
}

.confirmation-icon {
    font-size: 4rem;
    color: #00C851;
    margin-bottom: 1.5rem;
}

.confirmation-icon i {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Hide any stray confirmation messages */
.order-confirmation {
    display: none !important;
}

/* Additional styles for the buttons */
.btn-back-home {
    background: var(--primary-color);
    color: white;
}

.btn-track-order {
    background: #f0f0f0;
    color: var(--dark-color);
}

.btn-back-home:hover {
    background: #b50a52;
}

.btn-track-order:hover {
    background: #e0e0e0;
}