/* Cart and Checkout Styles */

/* Cart Section */
.cart-section {
    padding: 60px 0;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
}

.empty-cart-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cart-empty p {
    color: #777;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cart-table-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

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

.cart-product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-product-info p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 120px;
}

.quantity-btn {
    width: 30px;
    height: 36px;
    background: #f8f9fa;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-selector input {
    width: 60px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.coupon {
    display: flex;
    gap: 10px;
}

.coupon input {
    width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.update-cart {
    display: flex;
    gap: 10px;
}

.cart-summary-wrapper {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cart-summary {
    padding: 30px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    padding-top: 20px;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.shipping-options input {
    margin: 0;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Checkout Section */
.checkout-section {
    padding: 60px 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

.checkout-form-wrapper {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-form-wrapper h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

.mt-2 {
    margin-top: 10px;
}

.order-summary {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.order-summary h2 {
    font-size: 24px;
    font-weight: 600;
    padding: 20px 30px;
    margin: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.order-summary-content {
    padding: 30px;
}

.order-summary-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

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

.order-summary-row.total {
    font-size: 18px;
    font-weight: 600;
    border-bottom: none;
    padding-top: 20px;
}

.payment-methods {
    margin-top: 30px;
    margin-bottom: 30px;
}

.payment-methods h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-method {
    margin-bottom: 15px;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.payment-method-description {
    margin-top: 10px;
    margin-left: 25px;
    font-size: 14px;
    color: #777;
}

.payment-icons {
    margin-top: 10px;
    font-size: 24px;
}

.payment-icons i {
    margin-right: 10px;
}

.terms-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox input {
    margin-top: 4px;
}

.terms-checkbox label {
    font-size: 14px;
}

.terms-checkbox a {
    color: #007bff;
    text-decoration: underline;
}

/* Order Confirmation */
.confirmation-section {
    padding: 60px 0;
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.confirmation-icon {
    font-size: 80px;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.confirmation-message {
    color: #777;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.order-details {
    margin-bottom: 30px;
    text-align: left;
}

.order-details h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-info {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-info-row:last-child {
    margin-bottom: 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Notification */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 300px;
    max-width: 100%;
    animation: slideIn 0.3s ease forwards;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

.notification.success .notification-content i {
    color: #28a745;
}

.notification.error .notification-content i {
    color: #dc3545;
}

.notification.info .notification-content i {
    color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 20px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .coupon {
        width: 100%;
    }
    
    .coupon input {
        flex: 1;
    }
    
    .update-cart {
        width: 100%;
    }
    
    .update-cart button {
        flex: 1;
    }
    
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-product-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }
}