/* Sepet Sayfası Özel Stilleri */
.page-header {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: #777;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb i {
    font-size: 10px;
    margin: 0 5px;
}

/* Cart Content Styles */
.cart-content {
    padding: 30px 0 60px;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
}

.cart-items h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f9f9f9;
}

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

.item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.cart-item:hover .item-image {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.item-details {
    flex: 1;
    position: relative;
}

.item-name h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.item-variant {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.item-price {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #0066cc;
    margin-right: 10px;
}

.old-price {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
}

.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background-color: #f9f9f9;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.quantity-btn.minus {
    border-right: 1px solid #ddd;
}

.quantity-btn.plus {
    border-left: 1px solid #ddd;
}

.quantity-input {
    width: 40px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 500;
}

.item-remove {
    margin-left: 15px;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.remove-btn i {
    margin-right: 5px;
}

.remove-btn:hover {
    color: #e60000;
}

.item-total {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
}

.total-amount {
    font-weight: 600;
    color: #0066cc;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.continue-shopping i {
    margin-right: 8px;
}

.continue-shopping:hover {
    color: #004c99;
}

.clear-cart {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.clear-cart i {
    margin-right: 8px;
}

.clear-cart:hover {
    color: #e60000;
}

/* Cart Summary Styles */
.cart-summary {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    position: sticky;
    top: 20px;
}

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

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

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.summary-item.discount {
    color: #38b000;
    font-weight: 500;
}

.coupon-area {
    margin: 25px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px dashed #ddd;
}

.coupon-area h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.coupon-form {
    display: flex;
}

.coupon-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.btn-apply {
    padding: 10px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #004c99;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.checkout-button {
    margin: 25px 0;
}

.btn-checkout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout i {
    margin-left: 10px;
}

.btn-checkout:hover {
    background-color: #004c99;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.2);
}

.payment-info {
    text-align: center;
    margin-top: 25px;
}

.secure-checkout {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.secure-checkout i {
    margin-right: 5px;
    color: #38b000;
}

.payment-methods img {
    max-width: 200px;
    opacity: 0.7;
}

/* Recommended Products Section */
.recommended-products {
    background-color: #f8f9fa;
    padding: 50px 0;
}

.recommended-products .section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 40px 0;
}

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

.empty-cart h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.empty-cart p {
    font-size: 16px;
    color: #777;
    margin-bottom: 25px;
}

.btn-shop-now {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-shop-now:hover {
    background-color: #004c99;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.2);
}

/* Loading State */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.cart-item, .cart-summary {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
    }
    
    .item-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto 20px;
    }
    
    .item-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-remove {
        margin: 15px 0 0 0;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .clear-cart {
        margin-top: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .coupon-form {
        flex-direction: column;
    }
    
    .coupon-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .btn-apply {
        border-radius: 4px;
        width: 100%;
    }
    
    .item-total {
        text-align: right;
        margin-top: 15px;
    }
}

/* Cart Empty Animation */
.cart-empty-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.cart-empty-animation .cart-icon {
    font-size: 80px;
    color: #ddd;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cart-empty-animation .pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* Item added notification */
.item-added-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s forwards, fadeOut 0.3s 2.5s forwards;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Quantity change highlight */
.quantity-changed {
    animation: highlight 0.5s;
}

@keyframes highlight {
    0% {
        background-color: #f8f9fa;
    }
    50% {
        background-color: rgba(0, 102, 204, 0.1);
    }
    100% {
        background-color: #f8f9fa;
    }
}

/* Price update animation */
.price-update {
    animation: updatePrice 0.5s;
}

@keyframes updatePrice {
    0% {
        color: #0066cc;
    }
    50% {
        color: #38b000;
    }
    100% {
        color: #0066cc;
    }
}