/* Sepet Sayfası CSS */

.cart-page {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-page h1 {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.empty-cart i {
    font-size: 80px;
    color: #e9ecef;
    margin-bottom: 30px;
}

.empty-cart h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 300;
}

.empty-cart p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-continue-shopping {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-continue-shopping:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 20px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 60px;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Item Product */
.item-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-details h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-details h3 a:hover {
    color: #007bff;
}

.stock-warning {
    color: #dc3545;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* Item Price */
.item-price {
    text-align: center;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.price-new {
    font-size: 16px;
    font-weight: 600;
    color: #dc3545;
}

/* Item Quantity */
.item-quantity {
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e9ecef;
}

.quantity-controls input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 500;
    background: white;
}

/* Item Total */
.item-total {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Item Actions */
.item-actions {
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #f8d7da;
    transform: scale(1.1);
}

/* Cart Actions */
.cart-actions {
    padding: 25px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-clear-cart {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-clear-cart:hover {
    background: #c82333;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.free-shipping {
    color: #28a745;
    font-weight: 600;
}

.free-shipping-info {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #28a745;
}

.free-shipping-info i {
    font-size: 16px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: #28a745;
    color: white;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Payment Methods */
.payment-methods {
    margin-top: 25px;
    text-align: center;
}

.payment-methods h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-icons img:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-header {
        display: none;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .item-product {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .item-product img {
        width: 100px;
        height: 100px;
    }
    
    .cart-actions {
        flex-direction: column;
        text-align: center;
    }
    
    .empty-cart {
        padding: 60px 20px;
    }
    
    .empty-cart i {
        font-size: 60px;
    }
    
    .empty-cart h2 {
        font-size: 24px;
    }
}
