.cart-header {
    padding: 25px;
    border-bottom: 2px solid rgba(193, 154, 107, 0.2);
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.08) 0%, rgba(139, 105, 61, 0.08) 100%);
}

.cart-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    min-height: 0;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: rgba(250, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.1);
    border: 2px solid rgba(193, 154, 107, 0.3);
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(139, 105, 61, 0.2);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(193, 154, 107, 0.2);
    transition: all 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
    border-color: rgba(139, 105, 61, 0.4);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-item-price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.15) 0%, rgba(139, 105, 61, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8b6f47;
    font-weight: 600;
}

.quantity-button:hover {
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    color: #faf5eb;
    transform: scale(1.1);
}

.quantity-value {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    color: #a0522d;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: #8b4513;
    transform: scale(1.2) rotate(90deg);
}

.cart-footer {
    padding: 25px;
    border-top: 2px solid rgba(193, 154, 107, 0.2);
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.08) 0%, rgba(139, 105, 61, 0.08) 100%);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.cart-total .total-price {
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    color: #faf5eb;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.checkout-button:hover::before {
    width: 400px;
    height: 400px;
}

.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(101, 67, 33, 0.4);
}

.checkout-button:disabled {
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-button i {
    font-size: 14px;
}

/* Обновленные стили для счетчика корзины */
#cart-button .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%);
    color: #faf5eb;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.5);
    border: 2px solid #faf5eb;
    animation: cartCountPulse 2s ease infinite;
}

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


