/* Cart Page Styles */
.cart-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #F8F4E3 0%, #fef9e7 50%, #F8F4E3 100%);
    position: relative;
}

.cart-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(235, 196, 42, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(235, 196, 42, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1C1C1C 0%, #3C3C3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cart-header h1 i {
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    animation: cart-icon-bounce 2s ease-in-out infinite;
}

@keyframes cart-icon-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

.cart-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

/* Cart Items Section */
.cart-items-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(235, 196, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cart-items-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(235, 196, 42, 0.15);
    transform: translateY(-2px);
}


.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.cart-items-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C1C1C;
}

.item-count {
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    color: #1C1C1C;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(235, 196, 42, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cart-items {
    min-height: 200px;
}

/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    animation: fadeIn 0.6s ease-in-out;
}

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

.cart-empty i {
    font-size: 6rem;
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cart-empty h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 0.75rem;
}

.cart-empty p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #666;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1C1C1C;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #EBC42A;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(235, 196, 42, 0.2);
}

.btn-primary:hover {
    background: #EBC42A;
    color: #1C1C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(235, 196, 42, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Cart Item Styles */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid transparent;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, rgba(235, 196, 42, 0.2), rgba(235, 196, 42, 0.05)) border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #EBC42A, #d4b023);
    transition: height 0.4s ease;
}

.cart-item:hover::before {
    height: 100%;
}

.cart-item:hover {
    border-color: #EBC42A;
    box-shadow: 0 8px 30px rgba(235, 196, 42, 0.15);
    transform: translateX(5px);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #f8f8f8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05) rotate(2deg);
    border-color: #EBC42A;
    box-shadow: 0 6px 20px rgba(235, 196, 42, 0.2);
}

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

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1C1C1C;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cart-item-name:hover {
    color: #EBC42A;
    transform: translateX(5px);
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-item-size {
    font-size: 0.9rem;
    color: #666;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

.quantity-btn {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border: 2px solid #e0e0e0;
    color: #666;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 700;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    color: #1C1C1C;
    border-color: #EBC42A;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(235, 196, 42, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 55px;
    height: 38px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    background: white;
    transition: all 0.3s ease;
    /* Number input oklarını gizle */
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.quantity-input:focus {
    outline: none;
    border-color: #EBC42A;
    box-shadow: 0 0 0 4px rgba(235, 196, 42, 0.1);
}

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

.remove-item-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.remove-item-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.remove-item-btn:hover::before {
    left: 100%;
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff4444 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.remove-item-btn:active {
    transform: scale(0.95);
}

/* Cart Summary Section */
.cart-summary-section {
    position: sticky;
    top: 120px;
}

.cart-summary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(235, 196, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EBC42A, #d4b023, #EBC42A);
    border-radius: 24px 24px 0 0;
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.cart-summary:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(235, 196, 42, 0.15);
    transform: translateY(-2px);
}

.cart-summary h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 0; /* Progress bar'a tam yapışık */
    text-align: center;
}

/* Free Shipping Progress Bar */
.free-shipping-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #EBC42A;
    border-top: none; /* Üst border'ı kaldır */
    border-radius: 0 0 12px 12px; /* Sadece alt köşeleri yuvarlak */
    padding: 1.5rem;
    margin: 0 0 1.5rem 0; /* Üst boşluğu kaldırıldı, sadece alt boşluk */
    position: relative;
    overflow: hidden;
    display: none; /* Default olarak gizli, sepet dolu olduğunda gösterilecek */
}

.free-shipping-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EBC42A 0%, #d4b023 100%);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1C1C1C;
    font-size: 1rem;
}

.progress-title i {
    color: #EBC42A;
    font-size: 1.1rem;
}

.progress-amount {
    font-weight: 700;
    color: #EBC42A;
    font-size: 1rem;
}

.progress-bar-container {
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #EBC42A 0%, #d4b023 50%, #c4a020 100%);
    border-radius: 6px;
    transition: width 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Shimmer animasyonu kaldırıldı - progress bar'ın boyutunu değiştiriyordu */

/* Shimmer keyframes kaldırıldı */

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.progress-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.progress-message {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* Free shipping achieved state */
.free-shipping-progress.achieved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.free-shipping-progress.achieved .progress-title i {
    color: #28a745;
}

.free-shipping-progress.achieved .progress-amount {
    color: #28a745;
}

.free-shipping-progress.achieved .progress-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
}

.free-shipping-progress.achieved .progress-message {
    color: #28a745;
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.summary-item:hover {
    padding-left: 0.5rem;
}

.summary-item span:first-child {
    color: #666;
    font-weight: 600;
}

.summary-item span:last-child {
    font-weight: 700;
    color: #1C1C1C;
}

.summary-item.total {
    font-size: 1.4rem;
    font-weight: 800;
    border-top: 2px solid #f0f0f0;
    padding-top: 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(235, 196, 42, 0.1), rgba(235, 196, 42, 0.05));
    padding: 1.5rem 1rem;
    border-radius: 12px;
    margin-left: -1rem;
    margin-right: -1rem;
}

.summary-item.total span:last-child {
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 1rem 0;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #EBC42A 0%, #d4b023 100%);
    color: #1C1C1C;
    border: none;
    padding: 1.5rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(235, 196, 42, 0.3);
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-checkout:hover:not(:disabled)::before {
    left: 100%;
}

.btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4b023 0%, #c4a020 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(235, 196, 42, 0.4);
}

.btn-checkout:active:not(:disabled) {
    transform: translateY(-1px) scale(0.98);
}

.btn-checkout:disabled {
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.cart-actions {
    text-align: center;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn-continue-shopping:hover {
    color: #EBC42A;
    background: #f8f8f8;
}

/* Loading States */
.cart-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.cart-loading i {
    font-size: 2rem;
    color: #EBC42A;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-header h1 i {
        font-size: 2rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: 1.5rem;
    }
    
    .cart-items-section:hover,
    .cart-summary:hover {
        transform: none;
    }
    
    .summary-item.total {
        margin-left: 0;
        margin-right: 0;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }
    
    .cart-item:hover {
        transform: none;
    }
    
    .cart-item::before {
        display: none;
    }
    
    .cart-item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-item:hover .cart-item-image {
        transform: scale(1.02);
    }
    
    .cart-item-quantity {
        justify-content: center;
    }
    
    .cart-item-actions {
        align-items: center;
    }
    
    .free-shipping-progress {
        padding: 1rem;
    }
    
    .progress-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .progress-title {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart-main {
        padding: 1rem 0;
    }
    
    .cart-header {
        margin-bottom: 2rem;
    }
    
    .cart-header h1 {
        font-size: 1.8rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: 1rem;
    }
    
    .cart-items-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
