/* Cart Styles */
.cart-table-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-table {
    width: 100%;
    margin-bottom: 0;
}

.cart-table thead th {
    border-bottom: 2px solid #eee;
    padding: 15px;
    font-weight: 600;
    color: #111;
}

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

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

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

.cart-product-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cart-product-info h5 a {
    color: #111;
    transition: color 0.3s ease;
}

.cart-product-info h5 a:hover {
    color: var(--theme-color, #ef1d26);
}

.cart-price .price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.cart-price .price-new {
    color: var(--theme-color, #ef1d26);
    font-weight: 600;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: var(--theme-color, #ef1d26);
    color: #fff;
    border-color: var(--theme-color, #ef1d26);
}

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

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
}

.btn-remove {
    background: #fff;
    border: 1px solid #ddd;
    color: #dc3545;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.cart-summary {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

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

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

.cart-summary-note {
    padding: 10px 0;
    color: var(--theme-color, #ef1d26);
    font-size: 14px;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #eee;
    font-size: 20px;
    font-weight: 700;
}

/* Checkout Styles */
.checkout-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method-item {
    display: flex;
    align-items: center;
}

.payment-method-item input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.payment-method-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
}

.payment-method-item input[type="radio"]:checked + label {
    border-color: var(--theme-color, #ef1d26);
    background: rgba(239, 29, 38, 0.05);
}

.payment-method-item label i {
    font-size: 24px;
    color: var(--theme-color, #ef1d26);
}

.checkout-summary {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.checkout-summary-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h5 {
    font-size: 14px;
    margin: 0 0 5px 0;
}

.checkout-item-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--theme-color, #ef1d26);
}

.checkout-summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #eee;
    font-size: 20px;
    font-weight: 700;
}

/* Order Success Styles */
.order-success-content {
    background: #fff;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.order-detail-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.order-detail-box h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.order-number,
.order-total,
.order-payment {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Order Tracking Styles */
.track-order-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.track-order-form-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

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

.track-order-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.contact-info-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-list li i {
    color: var(--theme-color, #ef1d26);
    width: 20px;
}

/* Order Details Styles */
.order-details-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.order-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.order-status-badge .badge,
.payment-status-badge .badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge-success {
    background: #28a745;
    color: #fff;
}

.badge-warning {
    background: #ffc107;
    color: #000;
}

.badge-info {
    background: #17a2b8;
    color: #fff;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.order-items-table {
    overflow-x: auto;
}

.order-items-table table {
    width: 100%;
    margin-bottom: 0;
}

.order-items-table thead th {
    background: #f9f9f9;
    padding: 15px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

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

.order-item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order-item-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.order-item-info h5 a {
    color: #111;
    transition: color 0.3s ease;
}

.order-item-info h5 a:hover {
    color: var(--theme-color, #ef1d26);
}

.order-info-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
}

.address-info p {
    margin-bottom: 8px;
}

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

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #eee;
    font-size: 20px;
    font-weight: 700;
}

.order-payment-method {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-notes {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-notes p {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .cart-table {
        font-size: 14px;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkout-item {
        flex-direction: column;
    }
    
    .order-actions {
        flex-direction: column;
    }

    .order-details-wrapper {
        padding: 20px;
    }

    .order-item-product {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-items-table {
        font-size: 14px;
    }
}

